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

TFS 0.X TFS 0.4 Serve 8.6 / exchange skills names

flakerzokejao

Member
Joined
Aug 18, 2020
Messages
38
Reaction score
7
how do I make the changes when you upa certain skill. example You advanced to magic level for You advanced to ninjutsu level
 
tools.cpp
SkillIdNames skillIdNames[]
and
std::string getSkillName(uint16_t skillId, bool suffix/* = true*/)

Change values in "" to the name you desire
 
player.cpp
sprintf(advMsg, "You advanced to magic level %d.", magLevel);
change this for what u want

for skils in tools.cpp
in getSkillName change what u want
 
Last edited:
1600137527240.png
Post automatically merged:

1600137802318.png1600137800907.png
Post automatically merged:

char advMsg[50];
sprintf(advMsg, "You advanced to ninjutsu level %d.", magLevel);
sendTextMessage(MSG_EVENT_ADVANCE, advMsg);
Post automatically merged:

std::string getSkillName(uint16_t skillId, bool suffix/* = true*/)
{
switch(skillId)
{
case SKILL_FIST:
{
std::string tmp = "speed";
if(suffix)
tmp += " attack";

return tmp;
}
case SKILL_CLUB:
{
std::string tmp = "club";
if(suffix)
tmp += " skill";

return tmp;
}
case SKILL_SWORD:
{
std::string tmp = "sword";
if(suffix)
tmp += " skill";

return tmp;
}
case SKILL_AXE:
{
std::string tmp = "axe";
if(suffix)
tmp += " skill";

return tmp;
}
case SKILL_DIST:
{
std::string tmp = "distance";
if(suffix)
tmp += " skill";

return tmp;
}
case SKILL_SHIELD:
return "defense";
case SKILL_FISH:
return "fishing";
case SKILL__MAGLEVEL:
return "Ninjutsu level";
case SKILL__LEVEL:
return "level";
default:
break;
}

return "unknown";
}
 

Attachments

Last edited:
try to change this too because skillsname = skillsid
in tools.cpp
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}
};
 
so I added that in the change.
and still continues, it looks like this
You have advanced in the skill of the glove.
You have advanced to ninjutsu 66.
I would like the example below
You advanced in glove 72.
You have advanced to ninjutsu 66.
which shows the amount of level the player has skill, glove, sword, distance ...
Post automatically merged:

😭😭😭😭😭😭😭😭😭😭😭
 
so I added that in the change.
and still continues, it looks like this
You have advanced in the skill of the glove.
You have advanced to ninjutsu 66.
I would like the example below
You advanced in glove 72.
You have advanced to ninjutsu 66.
which shows the amount of level the player has skill, glove, sword, distance ...
Post automatically merged:

😭😭😭😭😭😭😭😭😭😭😭
Do you refer to the client? If so, just edit it using a text editor (such as notepad ++), completing the spaces, if necessary.
 
is not on the client, when you reach a certain skill level, the message You have advanced to the ax fight 66.
when I change ax fights to glove skill, it doesn't show the skill level. it simply shows that you have advanced to the glove skill.
 
Back
Top