• 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!

Lua SkilL (Advanced Message)

Joined
May 23, 2010
Messages
185
Reaction score
23
Hey it's a short question but i changed the name of skills on my console like fist fighting for Fight Ability, but when it up in game, i sill get the messagem You advanced in FIST FIGHTING. How can i change it, if it on sources, where?
 
it s in sources. I think the function is called "getSkillName" or smth. You need to edit the names in there (magic level and normal level names need to be changed elsewhere)
To change names in client (skill window) you need hex client.
 
Thank you, but do you remember the file that has this function?

I found the function :
s << "You advanced in " << getSkillName(skill);
if(g_config.getBool(ConfigManager::ADVANCING_SKILL_LEVEL))
s << " [" << skills[skill][SKILL_LEVEL] << "]";

but i did't find the name of the skills to change
 
Don't have compiler right now. Just use Ctrl + Alt + F to search in all files..
 
In tools.cpp...


[cpp]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;
}

return "unknown";
}[/cpp]
 
Back
Top