• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Snow walk speed remove

I see 2 approaches XD

1st: make a script that checks if player is on snow, if is on snow then do addspeed +xxx (you will need to know how much snow decreases your speed)

2nd: Edit sources
 
I see 2 approaches XD

1st: make a script that checks if player is on snow, if is on snow then do addspeed +xxx (you will need to know how much snow decreases your speed)

2nd: Edit sources
Seriously sources? I bet this can be easily done via edit tibia.dat and items.otb files.
 
Editing tibia.dat won't make your character move faster on the server side. Download a compatible items.otb editor (OT Item Editor), then change speed value on the tile you want.
 
Both he DAT file and OTB file have to be edited and they both have to match. If you do not do this your Client will crash whenever it encounters snow.
 
Easiest: Make a quick script like Xanteria said, or do it in the source code. However this is going to be a real nightmare because you will have a script checking every player for every step they make. If its not made well it will being your server to its need because this script will be executing thousands of times every minute.

Best: Edit DAT and OTB; dont forget to distribute this edited DAT file in a "custom client"
 
Easiest: Make a quick script like Xanteria said, or do it in the source code. However this is going to be a real nightmare because you will have a script checking every player for every step they make. If its not made well it will being your server to its need because this script will be executing thousands of times every minute.

Best: Edit DAT and OTB; dont forget to distribute this edited DAT file in a "custom client"
There is nothing that nightmarish about building a script like this, the server checks what tile you are on regardless how do you think it knows what speed to set the player to when it walks on a tile anyway?

I've created a similar script and could alter it to check for the players current speed and then set it to that speed when the player walks on the tile the script would be not more then (with proper indentation for clarity) 6 lines of code without having to set any action or unique id's not everything has to be complicated.

But lets let matti450 make an attempt at coding it rather than just giving him the answer straight away.
 
There is nothing that nightmarish about building a script like this, the server checks what tile you are on regardless how do you think it knows what speed to set the player to when it walks on a tile anyway?

I've created a similar script and could alter it to check for the players current speed and then set it to that speed when the player walks on the tile the script would be not more then (with proper indentation for clarity) 6 lines of code without having to set any action or unique id's not everything has to be complicated.

But lets let matti450 make an attempt at coding it rather than just giving him the answer straight away.

I know the server and client check tiles every time, but they do it in fast compiled C++ code that is alot(Not lua benchmarks but it sort of shows how much faster compiled code is when compared to an interpreted language: here and here) faster than anything that can be done in Lua.

Another thing you might want to keep in mind is that you probably did not use this script on a production server so you dont have 150 players moving at once.

I'm thinking about this in my own limited interpretation as Lua is not something I'm well versed in. If you have a much more efficient way to do this in Lua let me know.
 
Back
Top