EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   What part of the code prevents npcs from casting beneficial spells on players? (https://www.eqemulator.org/forums/showthread.php?t=41702)

caravellex 01-18-2018 05:11 PM

What part of the code prevents npcs from casting beneficial spells on players?
 
Hey! I was having trouble finding this on the forums.
What is preventing npcs from healing and buffing players? I've scouted around in the source code and can't find anything.

Uleat 01-18-2018 05:28 PM

Call chain..

https://github.com/EQEmu/Server/blob...b_ai.cpp#L1363

https://github.com/EQEmu/Server/blob...b_ai.cpp#L1916

https://github.com/EQEmu/Server/blob...ob_ai.cpp#L382

..the last link is to a NPC-Only list iteration.

No clients are stored in the list, so they are excluded by exclusion and not by filter/criteria.

caravellex 01-18-2018 05:45 PM

TY for reply!
Ahh shoot! So it's disabled by the fact there simply isn't code for it..

Darkscis 01-18-2018 07:45 PM

Everything is changeable :)

You would need to modify the code to iterate through the full entity list instead of just the npc list, doing whatever additional checks that are required for it to function correctly.


All times are GMT -4. The time now is 12:51 PM.

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