Aschbourne_PRC8/_module/cont_ondeath.nss
GetOffMyYarn 8622e5ce08 Area Changes and other fixes
added areas and ccoh,
fixed some areas to work with crafting
fixed some on death issues
added server entry/ooc
2024-08-30 10:38:04 -04:00

17 lines
455 B
Plaintext

#include "treasuresys_inc"
void main()
{
string sTemplate = GetResRef(OBJECT_SELF);
string sTag = GetTag(OBJECT_SELF);
location lChest = GetLocation(OBJECT_SELF);
if ( !GetLocalInt( OBJECT_SELF, "NW_DO_ONCE" ))
{
ExecuteScript( sTreasureGenScript, OBJECT_SELF );
}
float fSeconds = TREASURE_RESPAWN_TIME;
AssignCommand ( GetArea(OBJECT_SELF),DelayCommand(fSeconds, Create_Chest( sTemplate, sTag, lChest ) ) );
}