EVENT_CAST_ON : Missing chunk of code
When EVEN_CAST_ON has been added a portion of the code has not been integrated, the one passing the "spell_id" to the Perl script :
Version 1108 : Code:
case EVENT_ZONE:{ Code:
case EVENT_ZONE:{ |
I already fixed it locally, it got missed on the merge or something initially I dunno.
|
How's this work? If an NPC is casted on with a spell by a player? Im assuming it returns which spell was used, such as if the mob was rooted etc. Does the type of spell matter, dec or benifit? Could be useful in quest.
|
It triggers the event, and in $spell_id (in Perl) you get the ID of the spell the NPC has been hit with. If you need more info about the spell you have to query for it (dunno if/how it can be done from Perl, possibly). The event is fired whether or not the NPC resists, is immune etc. It means the Spell is on the target.
Here is how you will be able to use it once KLS commits the missing part, to update a quest globals when a specific NPC is hit by a Courage (context : a cleric guildmaster quested the player with buffing this guard, the event sets the globals, and the NPC checks the globals before rewarding the PC for his action : Code:
sub EVENT_CAST_ON |
All times are GMT -4. The time now is 05:14 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.