#include "NW_O2_CONINCLUDE" void main() { // Set respawntime float to the number of seconds. float respawntime = 1200.00; if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0) { return; } object oLastOpener = GetLastOpener(); int nOpenerLevel = GetHitDice(oLastOpener); if (nOpenerLevel > 10) { CreateItemOnObject("thestoryofxertlt"); } else { GenerateLowTreasure(oLastOpener, OBJECT_SELF); } SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1); ShoutDisturbed(); // Command added to delay the respawn AssignCommand( OBJECT_SELF, DelayCommand (respawntime, SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",0) ) ); }