Dist

Returns date-time of last successful disconnection to server. If no successful connection yet - result will be time of char profile loaded in Stealth.

Pascal

function Dist(X1 : Word;Y1 : Word;X2 : Word;Y2 : Word) : Word;

Python

def Dist(x1, y1, x2, y2) -> word

Example Pascal

if (Dist(GetX(Self), GetY(Self), GetX(creatureID), GetY(creatureID)) > 3 then
  AddToSystemJournal(GetName(creatureID) + 'too far');