Originally Posted by
Chazwazza
Changing your coords will DC you as soon as you uptate your position with the server (by moving). There ARE several ways to teleport on live servers, but you have to figure that one out for yourself. (Think: Code hack - function that calculates movement/position. Packets - Packets that handle movment. Code hack - Change coords after some funky ControlBit changes)
Here's my theory:
Declarations
PHP Code:
BOOL CheckHack(float xOld, float xNew, float yOld, float yNew, float zOld, float zNew, float speed);
BOOL PacketSend(PacketStruct packet); //returns OK(0) or HAX(1)
PacketStruct RecievePacket(); //returns a PacketStruct
NO HACK
-------------
PHP Code:
X=100, Y=200, Z=10
*move forward, 100% speed*
X=105, Y=201, Z=11
CheckHack(100, 105, 200, 201, 10, 11, 100); //after hitting "w"
RETN(OK);
PacketSend(OK);
>
RecievePacket(CONTINUE);
WITH HACK
----------------
PHP Code:
X=100, Y=200, Z=10
Teleport(201, 300, 50);
// you do not get D/C because your client HAS NOT used CheckHack
*move forward, 100% speed*
X=202, Y=300, Z=51
CheckHack(100, 202, 200, 300, 10, 51, 100); //after hitting "w"
RETN(HAX);
PacketSend(HAX);
>
RecievePacket(DISCONNECT);
Hope that helped...
Oh yea I almost forgot Chazwazza PLEASE