EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Feature Requests (https://www.eqemulator.org/forums/forumdisplay.php?f=612)
-   -   Event_npc_cast (https://www.eqemulator.org/forums/showthread.php?t=31113)

RichardoX 04-21-2010 01:51 PM

Event_npc_cast
 
The title says it all. I think it would add some interesting functionality to encounters. When an NPC casts a specified spell, EVENT_NPC_CAST will listen. I can try to write this but I think it could be done much faster and efficiently in the hands of a skilled dev.

Here's an example of what I mean:

Code:

sub EVENT_NPC_CAST {
if($spell_id == "31") {
quest::say("Har har! I am casting spell id: $spell_id.");
}
if($spell_id == "32") {
quest::say("Ninja, VANISH!");
quest::depop();
}
}



All times are GMT -4. The time now is 07:44 PM.

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