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

OTClient Otclient extended skills and magic limit (error)

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,188
Solutions
34
Reaction score
200
I removed skills limit and magic limit of my sources in protocolgame.cpp, changed IT:

C++:
playermsg.addByte(std::min<int32_t>(player->getSkillLevel(i), std::numeric_limits<uint16_t>::max()));
to it:

C++:
playermsg.add<uint16_t>(std::min<int32_t>(player->getSkillLevel(i), std::numeric_limits<uint16_t>::max()));

and it:
C++:
msg.addByte(std::min<uint32_t>(player->getMagicLevel(), std::numeric_limits<uint8_t>::max()));
to it:

C++:
msg.add<uint16_t>(static_cast<uint16_t>(player->getMagicLevel()));

To enter with the cipsoft client (I use a dll), and everything goes normally, I can log into the game and see the skills, magic level everything ok.

but when logging in with OTClient, several errors appear in the terminal, remembering that I changed in modules/game_features/features.lua
it:

Lua:
 if(version >= 860) then
        g_game.enableFeature(GameAttackSeq)
    end
to it:

Lua:
if(version >= 860) then
        g_game.enableFeature(GameMagicEffectU16)
        g_game.enableFeature(GameDistanceEffectU16)     
        g_game.enableFeature(GamePlayerStateU16)
        g_game.enableFeature(GameDoubleSkills)
        g_game.enableFeature(GameSkillsBase)
        g_game.enableFeature(GameBaseSkillU16)
        g_game.enableFeature(GameAttackSeq)
    end

and when i log in with otclient, get this erros:
1611770762212.png

gameServer.log -- log saved
packet.log -- here a packet.log file
 
Back
Top