NWNDS/nwn_dark_sun/cont_ondeath.nss
Jaysyn904 b01c5cc7db Added PnP Dire Rat.
Added PnP Dire Rat.
2021-07-21 17:48:43 -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 ) ) );
}