void main() { int iPercy = GetLocalInt(OBJECT_SELF,"percy"); object oPC = GetPCSpeaker(); location lPC = GetLocation(oPC); int iLevel = GetHitDice(oPC); if (iPercy != 1) { SetLocalInt(OBJECT_SELF,"percy",1); CreateObject(OBJECT_TYPE_CREATURE,"percy",lPC,TRUE); GiveXPToCreature(oPC,100*iLevel); } }