• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.
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

Marko999x

999x HIGHExP
Premium User
Joined
Dec 14, 2017
Messages
3,547
Solutions
95
Reaction score
2,697
Location
Germany
Marko999x submitted a new resource:

[TFS 1.5 Tested] Display real level in chat and skills - hi

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...

Read more about this resource...
 
LUA:
g_game.enableFeature(GameDoubleLevel)

I think this either doesn’t work in OTClient's version 8.60 or hasn’t been implemented in this OTClient. I made all the necessary changes for TFS and compiled successfully, but in OTClient— even with the feature enabled— it still doesn’t display the correct level ;-;

I'm working with these two:

TFS 1.6 - Downgrade - 8.60 | Mehah OTClient
 
C++:
void ProtocolGame::parsePlayerStats(const InputMessagePtr& msg)
void ProtocolGame::parseTalk(const InputMessagePtr& msg)
change level to u32
in otc

const uint32_t level = msg->getU32() ;
const uint32_t level = msg->getU32();


change
uint16_t getLevel() { return m_level; }
to
uint32_t getLevel() { return m_level; }
---------------------
uint16_t m_level{ 0 };
to
uint32_t m_level{ 0 };

change
C++:
void Game::processTalk(const std::string_view name, const uint16_t level,
to
void Game::processTalk(const std::string_view name, const uint32_t level,
-------------
static void processTalk(std::string_view name, uint16_t level,
to
static void processTalk(std::string_view name, uint32_t level,
 
Back
Top