void main() { object oPC = GetLastAttacker(); if ((GetXP(oPC) >= 0) && (GetXP(oPC) <= 1000)) GiveXPToCreature(GetLastDamager(),25); else SpeakString( "You can gain no more experience from this " + "." ); }