generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
22
_module/nss/s_modinit.nss
Normal file
22
_module/nss/s_modinit.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
s_modinit - sample module initialization
|
||||
*/
|
||||
|
||||
#include "X_O2_CONINCLUDE"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
if (!GetLocalInt(OBJECT_SELF, "MODULE_INITIALIZED")) {
|
||||
|
||||
SetLocalInt(OBJECT_SELF, "MODULE_INITIALIZED", TRUE);
|
||||
|
||||
SetLocalInt(OBJECT_SELF, GT_TREASURE_TABLE, TREASURE_LOW);
|
||||
SetLocalInt(OBJECT_SELF, GT_MAX_LEVEL, 1);
|
||||
SetLocalInt(OBJECT_SELF, GT_REFILL_DELAY, -1);
|
||||
SetLocalInt(OBJECT_SELF, GT_NO_REFILL, 1);
|
||||
SetLocalInt(OBJECT_SELF, GT_NO_RESPAWN, 1);
|
||||
|
||||
} /* if */
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user