Initial upload
Initial upload.
This commit is contained in:
17
_module/nss/lochestrespwn_sc.nss
Normal file
17
_module/nss/lochestrespwn_sc.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
#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();
|
||||
GenerateMediumTreasure(oLastOpener, OBJECT_SELF);
|
||||
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
|
||||
ShoutDisturbed();
|
||||
// Command added to delay the <span class="highlight">respawn</span>
|
||||
AssignCommand( OBJECT_SELF, DelayCommand (respawntime, SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",0) ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user