• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Otclient custom skills

Itutorial

Legendary OT User
Joined
Dec 23, 2014
Messages
2,461
Solutions
68
Reaction score
1,123
How can I add new skills into Otclient. Which file do I need to edit?
 
In function refresh find -- file: skills.lua
Code:
  for i=0,6 do
6 is default ammount of skills, if you want to add some skills, just increase the second number.

Then in skills.otui add new button ex.
Code:
    SkillButton
      id: skillId6
      SkillNameLabel
        !text: tr('Fishing')
      SkillValueLabel
      SkillPercentPanel
 
So the problem is when I add new buttons. I figured out how to edit TFS for the new skills but when I add new buttons in client it bugs the skills menu
 
Last edited:
Like I said I did what he said. In the client though I cannot open skills menu when I do the changes.
 
I guess mine is bugged because my server sources are not edited but thats how it looks for me:
8wV6.png


You should edit in OTClient sources:
Code:
  enum Skill {
  Fist = 0,
  Club,
  Sword,
  Axe,
  Distance,
  Shielding,
  Fishing,
  //NewSkill,
  LastSkill
  };
 
Well thank you for the help Danger. I did have to edit the source code (in TFS) so it can recognize the new skills.

delted pics

Got it working....Now if someone could help me with connecting the skill to my database like the others?
 
Last edited by a moderator:
Got it working....Now if someone could help me with connecting the skill to my database like the others?
Just add a column in player for each skill and then add few custom functions which sets and gets the data, although you could use predefined functions.
 
Back
Top