generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
13
_module/nss/tp_cond_custom.nss
Normal file
13
_module/nss/tp_cond_custom.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
/* tp_cond_custom
|
||||
* created by Glendale Nights
|
||||
* mofified by dluan on jan 2003 */
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
int nCount = GetLocalInt(OBJECT_SELF, "TP_ITEM");
|
||||
if (nCount) {
|
||||
SetLocalInt(OBJECT_SELF, "TP_ITEM", --nCount);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user