View Full Version : NPC Heal Another NPC

11-25-2013, 09:58 AM
is it possible to make it so one npc heals another. like have a boss spawn npcs that heal him using Eluna

i know how to make the boss spawn mobs around him but not make them heal him.

Thanks in advance

11-25-2013, 10:52 AM
I'm not quite sure if it's possible using Eluna, one of the devs might have to correct me on that one.
Anyway, it should be possible using smart_scripts. Try looking here for a solution.


Since I'm guessing you're using TrinityCore.

11-25-2013, 11:07 AM
If you're having a hard time writing the SQL or writing it directly into the DB. You can use the SQL generator located here: http://gen.emudevs.com/?p=tc_smart_ai while looking at the: http://collab.kpsn.org/display/tc/smart_scripts
That might help you a bit aswell.

11-25-2013, 11:42 AM
Yes, it's possible. You can get the boss by scripting the healer, on spawn get nearest creature, check if entry matches the boss, then cast spell on the boss. Fairly easy really.

11-25-2013, 12:17 PM
ahh thanks GetNearestCreature() works great now! mob spawns and starts healing the boss.

11-25-2013, 02:30 PM
Awesome :)