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

speed problem

  • Thread starter Thread starter verdehile95
  • Start date Start date
V

verdehile95

Guest
The item is supposed to add 40 speed, but it only adds 20. I set this in the source, but even then, it still adds 20 instead of 40. tfs 1.4.2 buty 1.webpspeed.webpspeeeeeeed.webp
 
in function sendChangeSpeed, before

msg.add<uint16_t>(speed);

add

std::cout << "[DEBUG] sendChangeSpeed - creature ID: " << creature->getID()
<< ", baseSpeed: " << creature->getBaseSpeed()
<< ", speed: " << speed << std::endl;

Once the server is up and running, any changes to your character's speed will be displayed in the console, allowing you to see if the issue is coming from this feature.
 
The server uses double the speed of the client, this allows the server to stay ahead of the clients speed, this is beneficial to higher ping and a lot of things. Don't mess with it unless you know what you're doing. Just double the speed on the item if you want it to add more. This is working as it should. This occurs in anything that changes your players speed, mounts, spells, items.
 
Back
Top