TERA Hacking Guide - calcul distance between 2 Vectors
Posted: June 18th, 2012, 7:31 am
This is helpful to anyone trying to create a tele bot, or other hacking interests.
Reversed from the function that set the crosshair distance, here is the C# implementation of what it do exactly :
Register to unlock hidden link PRIME_BBCODE_SPOILER:float dx = X1 - X2;
float dy = Y1 - Y2;
float dz = Z1 - Z2;
double distance = Math.Sqrt((double)((dx * dx) + (dy * dy) + (dz * dz)));
distance = Math.Floor(distance);
distance = Math.Ceiling(distance * 0.04);Register to unlock hidden link PRIME_BBCODE_SPOILER:
I'm sure it will be usefull for someone else