Initial commit
Initial commit [v9.7]
This commit is contained in:
22
_module/nss/ent_xp_5.nss
Normal file
22
_module/nss/ent_xp_5.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
#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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user