• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

OTClient Client skill name changes.

KingKermit

New Member
Joined
Aug 15, 2022
Messages
3
Reaction score
0
I'm not very experienced in programming. I've found plenty of people asking this question, but no one gets a clear answer. I'm going to be as specific as I can. I am using mehah OTC version 2.0.1. In the skills list (the one made by the "game_skills" module), I want to hide the skills "Axe Fighting" and "Club Fighting", and change "Sword Fighting to "Melee Fighting". I have tried editing "modules/gamelib/const.lua" and "src/client/const.h" assuming that the word "Fighting" was added some other way (though I don't know why it would be). That only caused them to list incorrect values.
Lua:
Skill = {
    Fist = 0,
    Melee = 1,
    Distance = 2,
    Shielding = 3,
    Fishing = 4,
    CriticalChance = 5,
    CriticalDamage = 6,
    LifeLeechChance = 7,
    LifeLeechAmount = 8,
    ManaLeechChance = 9,
    ManaLeechAmount = 10
C++:
    enum Skill : uint8_t
    {
        Fist = 0,
        Melee,
        Distance,
        Shielding,
        Fishing,
        CriticalChance,
        CriticalDamage,
        LifeLeechChance,
        LifeLeechAmount,
        ManaLeechChance,
        ManaLeechAmount,
        Fatal,
        Dodge,
        Momentum,
        LastSkill
    };
I also edited "tools.cpp" in TFS. I figured I would just settle for having 2 unused skills showing if that worked, but it just seemed to affect level up messages.
C++:
std::string getSkillName(uint8_t skillid)
{
    switch (skillid) {
        case SKILL_FIST:
            return "fist fighting";

        case SKILL_CLUB:
            return "club fighting";

        case SKILL_SWORD:
            return "melee fighting";

        case SKILL_AXE:
            return "axe fighting";

        case SKILL_DISTANCE:
            return "distance fighting";

        case SKILL_SHIELD:
            return "shielding";

        case SKILL_FISHING:
            return "fishing";

        case SKILL_MAGLEVEL:
            return "magic level";

        case SKILL_LEVEL:
            return "level";

        default:
            return "unknown";
    }
}
I searched the entire project on both TFS and OTC for different words and found nothing that seemed to help. So, exactly which files must I change and how do I change them to do what I want?
 

Similar threads

Top