63 lines
1.8 KiB
Plaintext
63 lines
1.8 KiB
Plaintext
#include "prc_misc_const"
|
|
|
|
int StartingConditional()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
int nType = GetLocalInt(oPC, "CRAFT_TYPE");
|
|
|
|
//If the item they are trying to craft is legal show this line..
|
|
if(nType== BASE_ITEM_ARMOR ||
|
|
nType== BASE_ITEM_BELT ||
|
|
nType== BASE_ITEM_BASTARDSWORD ||
|
|
nType== BASE_ITEM_BOOTS ||
|
|
nType== BASE_ITEM_BRACER ||
|
|
nType== BASE_ITEM_CLOAK ||
|
|
nType== BASE_ITEM_CLUB ||
|
|
nType== BASE_ITEM_DIREMACE ||
|
|
nType== BASE_ITEM_DOUBLEAXE ||
|
|
nType== BASE_ITEM_GLOVES ||
|
|
nType== BASE_ITEM_GREATAXE ||
|
|
nType== BASE_ITEM_GREATSWORD ||
|
|
nType== BASE_ITEM_HALBERD ||
|
|
nType== BASE_ITEM_HEAVYFLAIL ||
|
|
nType== BASE_ITEM_HELMET ||
|
|
nType== BASE_ITEM_LARGESHIELD ||
|
|
nType== BASE_ITEM_QUARTERSTAFF ||
|
|
nType== BASE_ITEM_RING ||
|
|
nType== BASE_ITEM_SCYTHE ||
|
|
nType== BASE_ITEM_SHORTSPEAR ||
|
|
nType== BASE_ITEM_SICKLE ||
|
|
nType== BASE_ITEM_SMALLSHIELD ||
|
|
nType== BASE_ITEM_TOWERSHIELD ||
|
|
nType== BASE_ITEM_TRIDENT ||
|
|
nType== BASE_ITEM_TWOBLADEDSWORD ||
|
|
nType== BASE_ITEM_HEAVYCROSSBOW ||
|
|
nType== BASE_ITEM_LIGHTCROSSBOW ||
|
|
nType== BASE_ITEM_LONGBOW ||
|
|
nType== BASE_ITEM_SHORTBOW ||
|
|
nType== BASE_ITEM_SLING ||
|
|
nType== BASE_ITEM_LIGHT_LANCE ||
|
|
nType== BASE_ITEM_HEAVY_PICK ||
|
|
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)
|
|
|
|
//If it's a weapon or amor show the line!
|
|
return TRUE;
|
|
|
|
else
|
|
//Otherwise don't show the line!
|
|
return FALSE;
|
|
}
|