WoR_PRC8/_module/nss/trap_ondisarm.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

19 lines
776 B
Plaintext

void CreateObject2(int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE);
void main()
{
// Determine who Disarmed Trap
object oPC = GetLastDisarmed();
ExecuteScript("trap_disarm_rwd", OBJECT_SELF);
// Give XP equal to DisarmDC <--- commented out for above script to run
//GiveXPToCreature(oPC, GetTrapDisarmDC(OBJECT_SELF)); <--- commented out see above
DelayCommand(598.0, CreateObject2(GetObjectType(OBJECT_SELF), GetResRef(OBJECT_SELF), GetLocation(OBJECT_SELF)));
DelayCommand(600.0, DestroyObject(OBJECT_SELF));
}
void CreateObject2(int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE)
{
CreateObject(nObjectType, sTemplate, lLocation, bUseAppearAnimation);
return;
}