Quote:
Originally Posted by nonosocr1986
hey all , i was wondering if i can move or teleport to other location using packets , i got coordinates from "Kal World Editor" , but they are usually high numbers more than a byte can handle , since the move packet is "bbb" i think i need lower coordinates , any help ?
|
how about split packets?
you need to create a function that calculates how much steps you need to go to final x,y,z.
example: youre on coordinates x:1000, y:500, z: 500 and you want to go to x:2000, y:500, z:500, so you need to walk +1000 x, you could do it like that
for(int i=0;i <movesteps;i++) // movesteps = 50.
{
SendPacket(0x11,"bbb",20,0,0);
}
you can use other values ofc. just an example how it could work