Alright guys, so I used the formula for distance that Chris has supplied me with and it works great. I get a constant moving speed of 10. Not sure what the measurement for speed on Graal would be LOL but I got 10. That's enough for me to do my work. Anyways, here's the script if anybody wishes to use it themselves.
PHP Code:
//#CLIENTSIDE
function onCreated() {
onTimeOut();
}
function onTimeOut() {
this.x1 = player.x;
this.y1 = player.y;
sleep(1);
this.x2 = player.x;
this.y2 = player.y;
dist(this.x1, this.y1, this.x2, this.y2);
}
function dist(x1, y1, x2, y2) {
this.dist = (((x1 - x2) ^ 2) + ((y1 - y2) ^ 2)) ^ 0.5;
player.chat = this.dist;
setTimer(0.05);
}