#include "hc_inc" #include "xp_inc" void main() { object oDM = GetLastSpeaker (); object oPC; oPC = GetLocalObject (oDM, "xpwand_target"); if (GetIsPC (oPC)) { SendMessageToPC (oPC, "Thank you for roleplaying!"); xp_GiveXPPercentage (oPC, 25.0f); } }