blueboy / portalclassic

playerbot support for C(ontinued)-MaNGOS (classic fork)
GNU General Public License v2.0
18 stars 32 forks source link

[Bug] Bots do no auto-accept quests #6

Closed cala closed 9 years ago

cala commented 11 years ago

When player accepts a quest from a NPC, bots do not auto accept them (even for quest series). Everything else works fine:

If player has GM right, they can give the quest to bots when quest is not sharable, but normal players are stuck.

This is not a new issue but I did not report it before. If quest is taken from a gameobject, bots seem to auto-accept it however (must be confirmed).

cala commented 11 years ago

Small update: unlike "over self-buffing" issue, this one was not fixed.

cala commented 9 years ago

I still did not find how to fix it. Any hints are welcome. :)

natedahl32 commented 9 years ago

Just fixed this in one of my branches. The error is in the PlayerbotMgr.cpp file.

In the HandleMasterIncomingPacket method under the CMSG_QUESTGIVER_ACCEPT_QUEST opcode change the following line:

from p >> guid >> quest >> unk1;

to p >> guid >> quest;

Apparently there wasn't enough data in the packet to pull out another unint32 data type so it was erroring out. My guess is that is something that was added in future patch/expansion and was just never removed for vanilla. Hope this helps!

cala commented 9 years ago

Nice, thank you for this, I'll try it soon. :+1: