generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
24
_module/nss/enhance_chek2.nss
Normal file
24
_module/nss/enhance_chek2.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName sc_022
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 26/01/2005 5:27:11 PM
|
||||
//:://////////////////////////////////////////////
|
||||
int StartingConditional()
|
||||
{
|
||||
int oFlag = 0;
|
||||
object oItem = GetFirstItemInInventory(OBJECT_SELF);
|
||||
while(GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetLocalInt(oItem, "enhancement_max")==1)
|
||||
{oFlag=1;}
|
||||
|
||||
oItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
}
|
||||
// Inspect local variables
|
||||
if(!(oFlag == 1))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
Reference in New Issue
Block a user