// if trap is disarmed give EXP to someone and turn OFF the associated trigger void main() { GiveXPToCreature(GetLastDisarmed(),10); SetLocalInt(GetObjectByTag(GetTag(OBJECT_SELF)+"t"),"trapped",FALSE); DestroyObject(OBJECT_SELF); }