hello everyone!
i got a question:
i am sick of it...
its not moving directly to where i need!
its always missing
here is my currect code for the moving to dropped item: and plzzzzzzzzzzzzzz help me
can you fix it/recode it?
thanks to kalhacker9000 for the walk packets tut and for bakabug and all others (bloodx...) for sources
thanks alot ^^
i got a question:
i am sick of it...
its not moving directly to where i need!
its always missing
here is my currect code for the moving to dropped item: and plzzzzzzzzzzzzzz help me
PHP Code:
if (buf2[2] == 0x36)
{
DWORD itemid,x,y;
memcpy((void*)&itemid,(void*)((DWORD)buf2+5),4);
memcpy((void*)&x,(void*)((DWORD)buf2+5+4),4);
memcpy((void*)&y,(void*)((DWORD)buf2+5+4+4),4);
if (pick == 1)
{
int difx=x-Player[0].X;
int dify=y-Player[0].Y;
int timex=difx/10,timey=dify/10;
if(timex<10000&&timey<10000)
{
if(timex<0)
for(int i=0;i>timex;i--)
SendPacket(0x15,"bbb",-10,0,0);
else if(timex>0)
for(int i=0;i<timex;i++)
SendPacket(0x15,"bbb",10,0,0);
if(timey<0)
for(int i=0;i>timey;i--)
SendPacket(0x15,"bbb",0,-10,0);
else if(timey>0)
for(int i=0;i<timey;i++)
SendPacket(0x15,"bbb",0,10,0);
}
SendPacket(0x20,"ddd",itemid,x/32,y/32);
}
}
thanks to kalhacker9000 for the walk packets tut and for bakabug and all others (bloodx...) for sources
thanks alot ^^