roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
Hello everyone, I have the skill limits extended in the source, player can take skill > 255, and it work in old client 100%, because i changed client with a dll.
But if i login with OTClient, it show all skills = 0, why? How can i extended skills in OTclient?
protocolgame.cpp
But if i login with OTClient, it show all skills = 0, why? How can i extended skills in OTclient?
protocolgame.cpp
C++:
if (player->getOperatingSystem() >= CLIENTOS_OTCLIENT_LINUX) {
playermsg.addByte(std::min<int32_t>(player->getSkillLevel(i), std::numeric_limits<uint16_t>::max()));
} else {
playermsg.add<uint16_t>(std::min<int32_t>(player->getSkillLevel(i), std::numeric_limits<uint16_t>::max()));
}