23 lines
454 B
Plaintext
23 lines
454 B
Plaintext
|
|
||
|
#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 10 XP (to party) to the PC.
|
||
|
GiveXPToAll(oPC, 10);
|
||
|
|
||
|
// Destroy an object (not fully effective until this script ends).
|
||
|
DelayCommand(1.0, DestroyObject(oSelf));
|
||
|
}
|
||
|
|