#include "x0_i0_partywide" void main() { object oSelf = OBJECT_SELF; // Get the creature who triggered this event. object oPC = GetEnteringObject(); // Only fire for (real) PCs. if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) ) return; // Give 5 XP (to party) to the PC. GiveXPToAll(oPC, 5); // Destroy an object (not fully effective until this script ends). DelayCommand(1.0, DestroyObject(oSelf)); }