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

Break the limit of 255 effects of otxserv2.

Magnanimo

New Member
Joined
May 19, 2017
Messages
15
Solutions
1
Reaction score
1
I try to migrate my server from tfs 0.3.6 to otxserver2, however I am not able to break the limit of 255 effects of otxserver2.
to break the limit of effects I follow a tutorial available in tibiaking. With this tutorial I have succeeded in breaking the effect limit of tfs 0.4 and 0.3.6. However otxserver2 always has the limit of 255 effects, when I use an effect that exceeds the limit it starts repeating the effects.
 
Solution
On otx2 you also have to change the respective functions on spectators.h

On spectators.h find:
C++:
void sendDistanceShoot(const Position& from, const Position& to, uint8_t type)
void sendMagicEffect(const Position& pos, uint8_t type)

and change them to:
C++:
void sendDistanceShoot(const Position& from, const Position& to, uint16_t type)
void sendMagicEffect(const Position& pos, uint16_t type)
On otx2 you also have to change the respective functions on spectators.h

On spectators.h find:
C++:
void sendDistanceShoot(const Position& from, const Position& to, uint8_t type)
void sendMagicEffect(const Position& pos, uint8_t type)

and change them to:
C++:
void sendDistanceShoot(const Position& from, const Position& to, uint16_t type)
void sendMagicEffect(const Position& pos, uint16_t type)
 
Solution
On otx2 you also have to change the respective functions on spectators.h

On spectators.h find:
C++:
void sendDistanceShoot(const Position& from, const Position& to, uint8_t type)
void sendMagicEffect(const Position& pos, uint8_t type)

and change them to:
C++:
void sendDistanceShoot(const Position& from, const Position& to, uint16_t type)
void sendMagicEffect(const Position& pos, uint16_t type)
Thank you my friend, my problem has been solved.
 
Back
Top