liyunfan1223 / mod-playerbots

AzerothCore Playerbots Module
https://discord.gg/NQm5QShwf9
GNU Affero General Public License v3.0
244 stars 138 forks source link

`d loot` Always Fails #260

Open aquila-zyy opened 3 months ago

aquila-zyy commented 3 months ago

Describe the bug d loot command never works. The bot either fails to do it for some reason, or thinks the items are useless when the party looting option is set to FFA (自由拾取).

Commit hash f475b94

To Reproduce Steps to reproduce the behavior: On Herb/Ore Nodes

  1. Add an alt to your party;
  2. Make sure they have the correct profession;
  3. Right click on a node, which should supposedly add the object to their looting list;
  4. Whisper d loot;
  5. See error: The bot says the node is useless if party looting option is FFA, otherwise, it reports an error.

https://github.com/liyunfan1223/mod-playerbots/assets/48316194/e00416a1-bd1a-4170-9045-da0c02145ba9

On Mobs

  1. Add an alt to your party;
  2. Remove "loot" from the bot's non-combat strategy (nc -loot);
  3. Kill a mob. Make sure the bot has the privilage to loot the corpse;
  4. Click on the corpse, whisper d loot;
  5. See error: The bot agrees to loot the corpse, but doesn't do so. It then fails to execute the command on subsequent attempts.

https://github.com/liyunfan1223/mod-playerbots/assets/48316194/e20599f8-3fde-4fb7-b18e-39844a870e95

Expected behavior The bot should loot the corpses or nodes when using d loot.

Environment Game version: 3.3.5a Server OS: Ubuntu 22.04.4 LTS Client OS: Windows 10

Possible Related Issues

120

259

Zaedon33 commented 3 months ago

There is a setting in the conf to allow looting in FFA. I would expect that this is the intended behavior as selecting FFA allows only you to loot when with only bots. This allows you to not have to compete with the bots for quest loot.