Lankhmar_PRC8/_module/nss/ent_xp_5.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

23 lines
452 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 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));
}