Lankhmar_PRC8/_module/nss/entr_dest_tracks.nss

26 lines
402 B
Plaintext
Raw Normal View History

2025-04-03 12:54:47 -04:00
#include "x0_i0_partywide"
void main()
{
object oSelf = OBJECT_SELF;
object oTarget;
object oPC = GetEnteringObject();
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
if (!GetIsPC(oPC)) return;
oTarget = GetObjectByTag("BloodyTracks");
DestroyObject(oTarget, 0.1);
// Destroy an object (not fully effective until this script ends).
DelayCommand(0.5, DestroyObject(oSelf));
}