Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 16:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Question] walk, attack

Discussion on [Question] walk, attack within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
[Question] walk, attack

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

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);
        }

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 ^^
natinet is offline  
Thanks
1 User
Old 07/15/2009, 10:19   #2
 
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
Quote:
Originally Posted by natinet View Post
hello everyone!
i got a question:
PHP Code:
int difx=Mob[tr].X-Player[0].X;
int dify=Mob[tr].Y-Player[0].Y;
float range=(difx*difx+dify*dify)*1.0;
DWORD MobRangesqrtsqrt(range);
unsigned char tempx=(double(difx)/MobRangesqrt)*30;
unsigned char tempy=(double(dify)/MobRangesqrt)*30;
SendPacket(0x15,"bbb",tempx,tempy,0);
SendPacket(0x15,"bbb",tempx,tempy,0);
SendPacket(0x15,"bbb",tempx,tempy,0); 
the below code should take me the mob right?
ok question one:
1-should i see my player move or it will "move" serverside only and i wont see it?
2-if i want to attack the mob the packet:
PHP Code:
SendPacket(0x0f,"bdd",1,tar); 
will do it?
or i need the lastweapon?
PHP Code:
(SendPacket(0x0f,"bdd",1,tar,lastweapon);) 
3-does it make any difference with this:
PHP Code:
SendPacket(0x15,"Ubbb",last_u,tempx,tempy,0); 
and this?
PHP Code:
SendPacket(0x0f,"Ubdd",last_u,1,tar,lastweapon); 
4-after i make the first 0x0f packet-will it keep fighting like if i click a double click or i need to repeat the packet for a single attack?

thanks to kalhacker9000 for the walk packets tut and for bakabug and all others (bloodx...) for sources
thanks alot ^^
1: only serverside
2: "bdd" but only 2 numbers after it?
3: just cross out the "U" from "Ubbb/Ubdd" and cross out the "last_u"^^
4: you have to repeat the packet...
katze123 is offline  
Thanks
2 Users
Old 07/15/2009, 10:26   #3
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
thanks....
the lastweapon-it should be my weapon id? (the weap that i wear while attack?)
and..the Z axis doesnt matter?
i mean in bakabug's source he calculated the Z axis
i tried to use his calculatiob but MyHeightDetour made an error so that the game exists...
here the source:
natinet is offline  
Thanks
1 User
Old 07/15/2009, 16:01   #4
 
meak1's Avatar
 
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
hm at me it works the myheightdetour, (0x0f, "bd",1,tar) or (0x0f,"bdd",1,tar,0)
meak1 is offline  
Old 07/16/2009, 21:44   #5
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
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);
        }

can you fix it/recode it?
thanks alot
natinet is offline  
Old 07/16/2009, 22:46   #6
 
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
PHP Code:
if (buf2[2] == 0x36)
{
        
int i;
        
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);
//here you need to divide x + y through 32 // [not sure^^]
        
if (pick == 1)
        {
        
int difx=x-Player[0].X;
        
int dify=y-Player[0].Y;
        
int timex=difx/10;
        
int timey=dify/10;
        if(
timex<10000&&timey<10000)
        {
            if (
timex>0)
            {
                    for (
i=0;i<timex;i++)
                    
SendPacket(0x15,"bbb",10,0,0);
            }
            if (
timex<0)
            {
                for (
i=0;i>timex;i--)
                    
SendPacket(0x15,"bbb",-10,0,0);
            }
            
//for y the same thing
        
    
SendPacket(0x20,"ddd",itemid,x/32,y/32);
    }

now every mistake from my side should be deleted
katze123 is offline  
Old 07/16/2009, 22:54   #7
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
thnaks i will try it now
thanks alot dude
natinet is offline  
Old 07/16/2009, 22:55   #8
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
Ah Not working.....
Quote:
//here you need to divide x + y through 32 // [not sure^^]
ahh....no way
any other idea?
thanks alot
natinet is offline  
Old 07/16/2009, 23:09   #9
 
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
printf("..."); is ur friend ^^
katze123 is offline  
Old 07/16/2009, 23:42   #10
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
lol its sometimes working and sometimes not...
its driving me crazy
good ni8
natinet is offline  
Reply


Similar Threads Similar Threads
WTB>Cabalsea AOE, walk n attack through wall address for CE
02/25/2010 - Cabal Online Trading - 0 Replies
Hi as stated above, i would like to buy the address for AOE, walk through wall and attack through wall for ce. Please give a reasonable price for it. Contact [email protected]
[Question]about attack pet in SW
09/09/2009 - SRO Private Server - 2 Replies
attack pets grew up on lvl 40, but also in lvl 90 they grew up to bigger size? or something? thanks.
[Question]Walk with packets.
04/22/2009 - Kal Online - 53 Replies
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: int difx=Player.X-ItemX; int dify=Player.Y-ItemY; float range=difx*difx+dify*dify; float sqrt_range=sqrt(range); unsigned char tempitemx=-(difx/sqrt(range))*30; ...
need help with dekaron pet walk\attack speed
04/14/2008 - Dekaron - 1 Replies
can someone plz help me change the pet walk\attack speed? thanks.
How to attack in TC??? [Question]
07/28/2007 - Conquer Online 2 - 12 Replies
Ive heard many people talking about this but i cant find any information regarding it. If you could point me to the right direction or tell me that would be great :). Thanks.



All times are GMT +1. The time now is 16:18.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.