Log in

View Full Version : What part of the code prevents npcs from casting beneficial spells on players?


caravellex
01-18-2018, 05:11 PM
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/master/zone/mob_ai.cpp#L1363

https://github.com/EQEmu/Server/blob/master/zone/mob_ai.cpp#L1916

https://github.com/EQEmu/Server/blob/master/zone/mob_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.