Ancordia_PRC8/_module/nss/craft_onlysimple.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

19 lines
574 B
Plaintext

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;
}