void main() { location lHere = GetLocation(OBJECT_SELF); int iOn = GetLocalInt(OBJECT_SELF,"CEP_L_AMION"); if (iOn == 0) return; CreateObject(OBJECT_TYPE_CREATURE,"victim",lHere); object oPC = GetLastDamager(OBJECT_SELF); GiveXPToCreature(oPC,50); }