NPC casts on NPC
I might be missing something simple here, wouldn't be the first time. I'm trying to get one NPC/MOB to cast on another NPC/MOB. I've tried several variations of $mob->CastSpell and $npc->CastSpell, but nothing seems to work. Anyone have something workable out there?
|
I have asked simular question before, thought i never actualy got time to test the suggestions:
http://www.eqemulator.net/forums/showthread.php?t=25604 and I am still bot sure how to make NPC: -cast spell on player OTHEr than selfcast (cuase I belvie selfcast casted as if player casts on himself and may result in wrong landign when NPC suppsoe to NUKE the player) -make npc cast spell on HIMSELF |
I almost got something working, the problem I am having is getting the casting mob to recognize the target mob's Entity ID.
Unless I am doing something wrong the following lines do not reveal a mob's Entity ID by type, target, or name: PHP Code:
PHP Code:
|
We can get a mob's Entity ID from #listnpcs and #showstats, but how can we use/apply that to get and Entity ID by NPCtype or by Target or Name?
|
Ok I finally got it. A bizaare method but it works. I am sending the NPC's Entity ID as a signal to the other mob.
Code:
#this npc has an ID of 2900000 Code:
#this npc has an ID of 2900001 |
All times are GMT -4. The time now is 12:56 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.