Initial Commit
Initial Commit
This commit is contained in:
17
_module/nss/craft_canenhance.nss
Normal file
17
_module/nss/craft_canenhance.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
object oItem = GetFirstItemInInventory(oPC);
|
||||
int nValue;
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetLocalInt(oItem, "Prototype") == TRUE)
|
||||
{
|
||||
if (GetLocalString(oItem, "Type") == "Shooter" || GetLocalString(oItem, "Type") == "Ammo") return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
Reference in New Issue
Block a user