// Treasure respawn script created by Luni@luukku.com
//
// Creates a treasure, after the defined time, clears the remaining
// stuff from the chest and spawns new items.
#include "NW_O2_CONINCLUDE"

void main()
{
    float fDelay = 1800.0;
    if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0)
    {
       return;
    }
    object oLastOpener = GetLastOpener();

    //Halberd +1
    CreateItemOnObject("nw_wplmhb002", OBJECT_SELF,1);
    //Breastplate +1
    CreateItemOnObject("nw_maarcl049", OBJECT_SELF,1);

    SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
    DelayCommand(fDelay,SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",0));

    ShoutDisturbed();
}