generated from Jaysyn/ModuleTemplate
14 lines
287 B
Plaintext
14 lines
287 B
Plaintext
/* 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;
|
|
}
|