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

Lagged Boss

Ciosny

Member
Joined
Aug 16, 2024
Messages
116
Solutions
1
Reaction score
15
Hello!
I created the boss, but there is one problem.
When attacking a boss, e.g. with a Paladin, the boss runs towards the player and then suddenly stops where the player was, stands there for about a second and runs towards the player again instead of naturally chasing him without these "pauses". I don't know if the script itself has something to do with it, or maybe it's some setting in the server files where the monster recalculates the player's position, which makes it look less smooth.


TFS 1.4.2, 10.98 Tibia
 
the boss runs towards the player and then suddenly stops where the player was, stands there for about a second and runs towards the player again instead of naturally chasing him without these "pauses"
Monsters calculate new walk path to target once a second.
To fix this, you need to calculate it much more often, but I will heavily increase CPU usage. Code to make it calculate walk path each time target creature moves:
Benchmarks of CPU usage and other codes that fix that issue, but use less CPU - still much more than current algorithm - are here:
 
Back
Top