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

[TFS 1.5 & OTCv8 Tested] Display real level in chat and skills (Remove limit of 65535 level) 1.0

No permission to download
Hiho,
Since I couldn't really find it on otland and people request like 1000 euro for that simple thing, here we go:

Open protcolgame.cpp

go to
C++:
void ProtocolGame::sendChannelMessage(const std::string& author, const std::string& text, SpeakClasses type, uint16_t channel)
change this:
C++:
msg.add<uint16_t>(0x00);
to
C++:
msg.add<uint32_t>(0x00);

go to
C++:
void ProtocolGame::sendCreatureSay(const Creature* creature, SpeakClasses type, const std::string& text, const Position* pos/* = nullptr*/)
change this:
C++:
msg.add<uint16_t>(speaker->getLevel());
to
C++:
msg.add<uint32_t>(speaker->getLevel());
and
change this
C++:
msg.add<uint16_t>(0x00);
to
C++:
msg.add<uint32_t>(0x00);

go to
C++:
void ProtocolGame::sendPrivateMessage(const Player* speaker, SpeakClasses type, const std::string& text)
change this
C++:
msg.add<uint16_t>(speaker->getLevel());
to
C++:
msg.add<uint32_t>(speaker->getLevel());

go to
C++:
void ProtocolGame::sendToChannel(const Creature* creature, SpeakClasses type, const std::string& text, uint16_t channelId)
change this
C++:
msg.add<uint16_t>(speaker->getLevel());
to
C++:
msg.add<uint32_t>(speaker->getLevel());
and
change this
C++:
msg.add<uint16_t>(0x00);
to
C++:
msg.add<uint32_t>(0x00);

go to
C++:
void ProtocolGame::AddPlayerStats(NetworkMessage& msg)
change this
C++:
msg.add<uint16_t>(player->getLevel());
to
C++:
msg.add<uint32_t>(player->getLevel());

and enable the feature in features.lua
LUA:
g_game.enableFeature(GameDoubleLevel)
I hope I didn't forget anything :D

1745584294339.webp
1745584305928.webp
Author
Marko999x
Downloads
6
Views
688
First release
Last update

Ratings

5.00 star(s) 2 ratings

Latest reviews

:thumb: noice
Works very good, simple to aply changes :D
Back
Top