Hey guys/ladies..
because i don't know how to make a bot....what means i don't know...i know but i still can't do it...no enough experience.
so i think i try to start only to walk with packets.
i try to make a "walk-hack", that means:
as you can see in the code i try to walk to items which was dropped in my near.
but there are still bugs i can't fix.
ex.:
my character walking.....yeah i was surprised he walking...but not to the items....he walking everywhere.
(baaad english...)
i don't know why.
Player[0].X-ItemX
Player[0].Y-ItemY
...
is right or not?
Player[0].Z i've set away....i change it to 0.
because when i try to sniff my Z-Coordinate it nothing changed to the actually Z-Coordinate....but 0 can work or not?
--
okay lange rede kurzer sinn
--
the only one thing i want to ask you is:
what i've to changed in my code that my character go to the items?
--
Thank you for reading.
Diamond
because i don't know how to make a bot....what means i don't know...i know but i still can't do it...no enough experience.
so i think i try to start only to walk with packets.
i try to make a "walk-hack", that means:
PHP Code:
int difx=Player[0].X-ItemX;
int dify=Player[0].Y-ItemY;
float range=difx*difx+dify*dify;
float sqrt_range=sqrt(range);
unsigned char tempitemx=-(difx/sqrt(range))*30;
unsigned char tempitemy=-(dify/sqrt(range))*30;
printf("Item dropped [%d] [%d , %d]\n",id,x,y);
printf("Walk to Item...\n");
SendDetour(0x15,"bbb",tempitemx,tempitemy,0);
but there are still bugs i can't fix.
ex.:
my character walking.....yeah i was surprised he walking...but not to the items....he walking everywhere.
(baaad english...)
i don't know why.
Player[0].X-ItemX
Player[0].Y-ItemY
...
is right or not?
Player[0].Z i've set away....i change it to 0.
because when i try to sniff my Z-Coordinate it nothing changed to the actually Z-Coordinate....but 0 can work or not?
--
okay lange rede kurzer sinn
--
the only one thing i want to ask you is:
what i've to changed in my code that my character go to the items?
--
Thank you for reading.
Diamond