[Lands Of The Forgotten Release] Pull Back

09/08/2009 04:24 _tao4229_#16
You're both ignorant, arrogant, annoying, stupid, and wrong.

Yes that means both of you.
Holy fuck.
09/08/2009 05:15 hunterman01#17
Ouch
09/08/2009 15:11 ftplayer#18
Quote:
Originally Posted by Zion~ View Post
Incorrect usage, yes pull backs can stop you from trying to jump disconnect.
But they where actually made too stop speed hackers.

Your code is incomplete I believe.
You dont even know why its "incomplete".
Quote:
Originally Posted by Empty Project View Post
Incomplete? How so? It works perfectly fine...

Reads the distance between the previous step and the new step, If too great it will pull you back. To tell you the truth this was created for the very purpose of stopping people for disconnecting. Show your code and tell me your purpose, I can speed perfectly fine on a server with pullback. This pullback has nothing to do with speeding, It does not calculate how fast they are going but how far they are going in one single jump. So in fact, Your definition of pull back is incorrect.
Indeed Zion was right...it is incomplete but he doesnt really know why its incomplete.
Quote:
Originally Posted by Empty Project View Post
Code:
                                        if (MyMath.PointDistance(PrevX, PrevY, NewX, NewY) > 15)
                                        {
                                            MyChar.Teleport(MyChar.LocMap, MyChar.LocX, MyChar.LocY);
                                            SendPacket(General.MyPackets.SendMsg(MessageId,"SYSTEM", MyChar.Name, "PullBack!", 2011);
[B]retrun;
In case 133: 

search for 

Code:
ushort NewY = (ushort)((Data[0xf] << 8) + Data[0xe]);
Directly under that insert this code
//this way your server won't still change the LocX and LocY of the client. }
You may also edit the > 15, The 15 is how many spaces between the previous step and the next step.

[/b]

Brought to you by Empty Project Forums
Ready...now it is Complete.
09/08/2009 15:51 Basser#19
The script I use is better, this is incomplete, you can still use Cheat Engine >_>.
I didn't code mine so won't release it.
09/08/2009 16:07 tanelipe#20
Code:
ushort nx = ... 

if(PointDistance(Client.Entity.Location.X, Client.Entity.Location.Y, nx, ny) > 15) {
	Teleport(Client.Entity.Location.Map.ID, Client.Entity.Location.X, Client.Entity.Location.Y);
	Client.SendMessage("[PULLBACK: Jump too far]", ChatType.Center);
	return;
}
nx/y = new x/y
ox/y = old x/y

You're comparing the nx, ny and ox, oy that you get from packets; One could just spoof the coordinates so it would fit your code. Instead of that you should check the nx and ny from the packet and ox and oy from your clients location.
09/10/2009 21:09 Empty Project#21
#request close
09/10/2009 22:01 _Emme_#22
#Closed