s.str("");
s << "You advanced in " << getSkillName(skill);
if(g_config.getBool(ConfigManager::ADVANCING_SKILL_LEVEL))
s << " [" << skills[skill][SKILL_LEVEL] << "]";
std::string getSkillName(uint16_t skillId, bool suffix/* = true*/)
{
switch(skillId)
{
case SKILL_FIST:
{
std::string tmp = "fist";
if(suffix)
tmp += " fighting";
return tmp;
}
case SKILL_CLUB:
{
std::string tmp = "club";
if(suffix)
tmp += " fighting";
return tmp;
}
case SKILL_SWORD:
{
std::string tmp = "sword";
if(suffix)
tmp += " fighting";
return tmp;
}
case SKILL_AXE:
{
std::string tmp = "axe";
if(suffix)
tmp += " fighting";
return tmp;
}
case SKILL_DIST:
{
std::string tmp = "distance";
if(suffix)
tmp += " fighting";
return tmp;
}
case SKILL_SHIELD:
return "shielding";
case SKILL_FISH:
return "fishing";
case SKILL__MAGLEVEL:
return "magic level";
case SKILL__LEVEL:
return "level";
default:
break;
SkillIdNames skillIdNames[] =
{
{"fist", SKILL_FIST},
{"club", SKILL_CLUB},
{"sword", SKILL_SWORD},
{"axe", SKILL_AXE},
{"distance", SKILL_DIST},
{"dist", SKILL_DIST},
{"shielding", SKILL_SHIELD},
{"shield", SKILL_SHIELD},
{"fishing", SKILL_FISH},
{"fish", SKILL_FISH},
{"level", SKILL__LEVEL},
{"magiclevel", SKILL__MAGLEVEL},
{"magic level", SKILL__MAGLEVEL}
};
I need the script 0.3.6 , I cant find it
Look at this : http://otland.net/f82/skill-up-message-20774/index10.html
That is just for 0.3.5
I havent try.. But it says 0.3.5
Im gonna test