PoA_PRC8/_module/nss/gc_ac_is_ok.nss

75 lines
2.4 KiB
Plaintext
Raw Permalink Normal View History

//:: gc_ac_is_ok
#include "prc_misc_const"
2022-10-07 14:20:31 -04:00
int StartingConditional()
{
object oPC = GetPCSpeaker();
int nType = GetLocalInt(oPC, "CRAFT_TYPE");
//If the item they are trying to craft is not legal show this line..
if(nType == BASE_ITEM_BASTARDSWORD ||
nType == BASE_ITEM_BATTLEAXE ||
nType == BASE_ITEM_CLUB ||
nType == BASE_ITEM_DAGGER ||
nType == BASE_ITEM_DIREMACE ||
nType == BASE_ITEM_DOUBLEAXE ||
nType == BASE_ITEM_DWARVENWARAXE ||
nType == BASE_ITEM_GREATAXE ||
nType == BASE_ITEM_GREATSWORD ||
nType == BASE_ITEM_HALBERD ||
nType == BASE_ITEM_HANDAXE ||
nType == BASE_ITEM_HEAVYFLAIL ||
nType == BASE_ITEM_KAMA ||
nType == BASE_ITEM_KATANA ||
nType == BASE_ITEM_KUKRI ||
nType == BASE_ITEM_LIGHTFLAIL ||
nType == BASE_ITEM_LIGHTHAMMER ||
nType == BASE_ITEM_LIGHTMACE ||
nType == BASE_ITEM_LONGSWORD ||
nType == BASE_ITEM_MORNINGSTAR ||
nType == BASE_ITEM_QUARTERSTAFF ||
nType == BASE_ITEM_RAPIER ||
nType == BASE_ITEM_SCIMITAR ||
nType == BASE_ITEM_SCYTHE ||
nType == BASE_ITEM_SHORTSPEAR ||
nType == BASE_ITEM_SHORTSWORD ||
nType == BASE_ITEM_SICKLE ||
nType == BASE_ITEM_TRIDENT ||
nType == BASE_ITEM_TWOBLADEDSWORD ||
nType == BASE_ITEM_WARHAMMER ||
nType == BASE_ITEM_WHIP ||
nType == BASE_ITEM_ARROW ||
nType == BASE_ITEM_BOLT ||
nType == BASE_ITEM_BULLET ||
nType == BASE_ITEM_DART ||
nType == BASE_ITEM_SHURIKEN ||
nType == BASE_ITEM_THROWINGAXE ||
2022-10-07 14:20:31 -04:00
nType == BASE_ITEM_HEAVYCROSSBOW ||
nType == BASE_ITEM_LIGHTCROSSBOW ||
nType == BASE_ITEM_LONGBOW ||
nType == BASE_ITEM_SHORTBOW ||
nType == BASE_ITEM_SLING ||
nType == BASE_ITEM_HEAVY_PICK || //:: New PRC weapons
nType == BASE_ITEM_LIGHT_PICK ||
nType == BASE_ITEM_SAI ||
nType == BASE_ITEM_NUNCHAKU ||
nType == BASE_ITEM_FALCHION ||
nType == BASE_ITEM_SAP ||
nType == BASE_ITEM_KATAR ||
nType == BASE_ITEM_HEAVY_MACE ||
nType == BASE_ITEM_MAUL ||
nType == BASE_ITEM_DOUBLE_SCIMITAR ||
nType == BASE_ITEM_GOAD ||
nType == BASE_ITEM_EAGLE_CLAW ||
nType == BASE_ITEM_ELVEN_LIGHTBLADE ||
nType == BASE_ITEM_ELVEN_THINBLADE ||
nType == BASE_ITEM_ELVEN_COURTBLADE)
2022-10-07 14:20:31 -04:00
//If it's a weapon don't show the line!
return FALSE;
//Otherwise show them the line
return TRUE;
}