• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

weapon types

This is from a 0.3.6 8.6, but probably the same for yours.

Code:
else if(tmpStrValue == "weapontype")
{
if(readXMLString(itemAttributesNode, "value", strValue))
{
tmpStrValue = asLowerCaseString(strValue);
if(tmpStrValue == "sword")
it.weaponType = WEAPON_SWORD;
else if(tmpStrValue == "club")
it.weaponType = WEAPON_CLUB;
else if(tmpStrValue == "axe")
it.weaponType = WEAPON_AXE;
else if(tmpStrValue == "shield")
it.weaponType = WEAPON_SHIELD;
else if(tmpStrValue == "distance")
it.weaponType = WEAPON_DIST;
else if(tmpStrValue == "wand" || tmpStrValue == "rod")
it.weaponType = WEAPON_WAND;
else if(tmpStrValue == "ammunition")
it.weaponType = WEAPON_AMMO;
else if(tmpStrValue == "fist")
it.weaponType = WEAPON_FIST;
else
std::cout << "[Warning - Items::loadFromXml] Unknown weaponType " << strValue << std::endl;
}
}
 
Back
Top