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:{
ExportVar(packagename.c_str(), "target_zone_id", data);
break;
}
//nothing special about these events
case EVENT_DEATH:
case EVENT_SPAWN:
case EVENT_ATTACK:
case EVENT_SLAY:
case EVENT_AGGRO:
case EVENT_ENTER:
case EVENT_EXIT:
case EVENT_ENTERZONE:
case EVENT_LEVEL_UP:
case EVENT_KILLED_MERIT:
case EVENT_CAST_ON:
break;
"My" version (as it was proposed) :
Code:
case EVENT_ZONE:{
ExportVar(packagename.c_str(), "target_zone_id", data);
break;
}
case EVENT_CAST_ON:{
ExportVar(packagename.c_str(), "spell_id", data);
break;
}
//nothing special about these events
case EVENT_DEATH:
case EVENT_SPAWN:
case EVENT_ATTACK:
case EVENT_SLAY:
case EVENT_AGGRO:
case EVENT_ENTER:
case EVENT_EXIT:
case EVENT_ENTERZONE:
case EVENT_LEVEL_UP:
case EVENT_KILLED_MERIT:
break;
Adding this change allows checking the spell ID cast on the NPC from the Perl script, a valuable information. Can this change be done by a developer ?