Initial upload
Initial upload.
This commit is contained in:
23
_module/nss/llamabarr_sc.nss
Normal file
23
_module/nss/llamabarr_sc.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
#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();
|
||||
int nOpenerLevel = GetHitDice(oLastOpener);
|
||||
if (nOpenerLevel > 10) {
|
||||
CreateItemOnObject("thestoryofxertlt");
|
||||
} else {
|
||||
GenerateLowTreasure(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