Initial Commit
Initial Commit
This commit is contained in:
18
_module/nss/craft_onlysimple.nss
Normal file
18
_module/nss/craft_onlysimple.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
object oItem = GetFirstItemInInventory(oPC);
|
||||
int nValue;
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetLocalInt(oItem, "Prototype") == TRUE)
|
||||
{
|
||||
if (GetBaseItemType(oItem) == BASE_ITEM_DART || GetBaseItemType(oItem) == BASE_ITEM_SHURIKEN ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_BULLET || GetBaseItemType(oItem) == BASE_ITEM_SLING) return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user