liyunfan1223 / mod-playerbots

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

Hunter auto attack #293

Closed shockcollar95 closed 3 months ago

shockcollar95 commented 3 months ago

I don't know if this is a low level bug, but at lower levels hunters don't do autoshots.

My hunter bot is 23 and is not doing any autoshots.

Dreathean commented 3 months ago

Can you confirm what commit you're on? I wonder if this is from https://github.com/liyunfan1223/mod-playerbots/commit/51a88063f895481e672877be375bdf8b725f6110, but it could also be related to the commit from today which impacted ammo generation https://github.com/liyunfan1223/mod-playerbots/commit/3556a38dcdd155473b468db2c7f840b0cd944517. Would be interested to see if this occurs to higher level bots or not as well.

shockcollar95 commented 3 months ago

I´m on this commit c63fd39, the fix should be implemented here right?

shockcollar95 commented 3 months ago

I updated the playerbot mod to the latest and still the hunters did not doing any autoshots.

liyunfan1223 commented 3 months ago

Can you check if the bot has the correct ammo? It is generally caused by the lack of ammo.

shockcollar95 commented 3 months ago

Oh, yes you are right. After I initiate the Bots and wrote autogear the bot got a gun but had still arrows in his gear. I think after autogear the bot, he should change his ammo with arrows or arrows to ammo depends on the weapon he gets.

If I only initiate the Bot its working. But if I write autogear and the weapon switched from gun to bow or from bow to gun its not working.

liyunfan1223 commented 3 months ago

Got it, I'll fix this later. You should now be able to use the maintenance command to generate the correct ammo.

shockcollar95 commented 3 months ago

Thanks :)