Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -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 ) ) );
}