Lankhmar_PRC8/_module/nss/ent_xp_10.nss

23 lines
454 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#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));
}