Here's my code:
if (GetclassByPosition(1, oPC)) == class_TYPE_BARBARIAN(
string sArmour = "hidearmour";
string sWeapon = "battleaxe";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_BARD(
string sArmour = "plainrobe";
string sWeapon = "staff";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_CLERIC(
string sArmour = "plainrobe";
string sWeapon = "mace";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_DRUID(
string sArmour = "plainrobe";
string sWeapon = "staff";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_FIGHTER(
string sArmour = "heavyleather";
string sWeapon = "longsword";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_MONK(
string sArmour = "plainrobe";
string sWeapon = "staff";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_PALADIN(
string sArmour = "chainmail";
string sWeapon = "longsword";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_RANGER(
string sArmour = "leatherarmour";
string sWeapon = "longsword";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_ROGUE(
string sArmour = "paddedcloth";
string sWeapon = "dagger";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_SORCEROR(
string sArmour = "plainrobe";
string sWeapon = "staff";
)
if (GetclassByPosition(1, oPC)) == class_TYPE_WIZARD(
string sArmour = "plainrobe";
string sWeapon = "staff";
)
CreateItemOnObject(sArmour, oPC);
CreateItemOnObject(sWeapon, oPC);
CreateItemOnObject(medicinalherb, oPC);
CreateItemOnObject(medicinalherb, oPC);
CreateItemOnObject(medicinalherb, oPC);
}
Here's my problem, I get the error of "UNKNOWN STATE IN THE COMPILER" on the first line of this snippet, also whenever I enter, regardless of my class, I am given a plainrobe and a staff.
Whats going wrong? the variable names for the classes were taken directly from Lexicon.