ChaosSlayer
06-30-2008, 11:07 PM
I am trying to determine casting example for various types of npc script casting.
1st type is when npc quets script makes player to cast spell on self - as if player has casted it and i belive these spells also unresisteable.
EXAMPLE:
quest::say("Binding your soul. You will return here when you die.");
quest::selfcast(2049);
Now there are types, are when npc casts spell on a player - like when npc trying to nuke the player OR on another npc - could anyone post simple exmaple?
and finaly, when npc would cast spell on itself (like buff) - again exmaple?
any other posible variations?
1st type is when npc quets script makes player to cast spell on self - as if player has casted it and i belive these spells also unresisteable.
EXAMPLE:
quest::say("Binding your soul. You will return here when you die.");
quest::selfcast(2049);
Now there are types, are when npc casts spell on a player - like when npc trying to nuke the player OR on another npc - could anyone post simple exmaple?
and finaly, when npc would cast spell on itself (like buff) - again exmaple?
any other posible variations?