liyunfan1223 / mod-playerbots

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

nc "start duel" not working #493

Open Rozza122 opened 1 month ago

Rozza122 commented 1 month ago

Describe the bug bots with the nc strat "start duel" are not inviting other players / bots to duel.

To Reproduce Steps to reproduce the behavior:

  1. add nc strat "start duel" to each bot (i changed AiFactory.cpp line 609 so that it has 100% chance to add "start duel" to each bot)

Expected behavior bots randomly invite other players or bots to duel.

Screenshots nc

Desktop (please complete the following information):

i have tried waiting for around 30 minutes (have done in different pvp allowed areas) around several bots and received no invites to duel.

liyunfan1223 commented 1 month ago

You can check the source code that start duel only takes effect when the rpg duel action is triggered. You may need to uncomment this line of code. https://github.com/liyunfan1223/mod-playerbots/blob/7f961835010700e989f53a55895298ab714ee08d/src/strategy/generic/RpgStrategy.cpp#L70-L71

This does not mean that this will solve your issue as this is part ported from cmangos and I haven't fully checked yet.

Rozza122 commented 1 month ago

You can check the source code that start duel only takes effect when the rpg duel action is triggered. You may need to uncomment this line of code.

https://github.com/liyunfan1223/mod-playerbots/blob/7f961835010700e989f53a55895298ab714ee08d/src/strategy/generic/RpgStrategy.cpp#L70-L71

This does not mean that this will solve your issue as this is part ported from cmangos and I haven't fully checked yet.

Thanks for checking, i did try uncommenting that but still doesn't seem functional.