Should not say that player is far.
According with tibiawiki:
Say that player is far.
Using Ubuntu 15.04 (64 bits)
Have you verified these changes?
The "source link" is dead and if you ask me I can't see any atleast major diffrences with out formulas compared to ... .
What changes are you refering? To LUA? If yes, that is exactly what I'm refering about. The old code in C++ you can find here.
The changes are the same, I did that Lua* port.
I ment that did you test it in RL and the changes being what you said, changes to the value of tiles x, y.
I didn't had time to test it yet but three different wikis (english, portuguese and polish) says what I said above about the squares, so it is pretty much legit.
One of them might have made it up and the rest follows and uses them as source, please verify it.
When you have I can update the script.
I really doubt about that.
Away like 40 squares.

Out side Thais.


With our code, if the player is in the depot and the other is in the boat already says far.

Keep in mind that the player is in the Depot:

Credits to @Mkalo for provided the screenshots.
It's because the formula is calculating distances radially, but Tibia is a square game. The formula is actually pretty wrong if you compare to the wiki, and the wiki is probably more correct than old scripts.
This issue won't have a label? @ranisalt
I can take a look at this later (with a thorough research beforehand), but no promises...