void main() { // Get the creature who triggered this event. object oPC = GetLastUsedBy(); // Give 3000 experience to the PC. GiveXPToCreature(oPC, 30000); // Send a message to the player's chat window. SendMessageToPC(oPC, "" + GetName(oPC) + " received XP"); }