Thread: Event_npc_cast
View Single Post
  #1  
Old 04-21-2010, 01:51 PM
RichardoX
Hill Giant
 
Join Date: Dec 2004
Location: in your closet....
Posts: 169
Default 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();
}
}
__________________
a hill giant slashes YOU for 25 points of damage!
You have been slain!
LOADING, PLEASE WAIT...
Reply With Quote