EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bots (https://www.eqemulator.org/forums/forumdisplay.php?f=676)
-   -   erronious bot logic (https://www.eqemulator.org/forums/showthread.php?t=35936)

c0ncrete 10-30-2012 09:45 PM

erronious bot logic
 
i've come across a few places in the bot code where the decision making process is checking IsEngaged() on clients. IsEngaged() will ALWAYS return false on a client (unless that client is AI controlled), as it only checks for a populated hate list. as a result, GetFirstIncomingMobToMez() and other methods/functions like it are probably using more cycles than necessary due to checks failing where they should not. all instances where the mob in question is a client (and not AI controlled) should be checking the value of AggroCount. if the group member is a bot, IsEngaged() is correct.


All times are GMT -4. The time now is 09:19 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.