Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 13:54

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

Advertisement



Movement Packets(Need Help)

Discussion on Movement Packets(Need Help) within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
silencer61's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 124
Received Thanks: 89
Movement Packets(Need Help)

Hey all

im making bot . i have problems with movement packets.I can't get posZ coordinat(Height) .Anyone have formule?
silencer61 is offline  
Old 08/17/2011, 22:22   #2

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
Why you need it ?
sarkoplata is offline  
Old 08/17/2011, 22:41   #3
 
silencer61's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 124
Received Thanks: 89
for example if i wanna go x:1234 y:456 and i write wrong Zcoord, it goes wrong side
silencer61 is offline  
Old 08/17/2011, 23:02   #4
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
There isn't a formula for it. You will need to read the .nvm(navmesh) files which contain the height of a certain position. You can find these files in the data.pk2 in the folder navmesh.

But lucky for you the server should correct the z coord. so sent 0 and it should be fine.
kevin_owner is offline  
Thanks
1 User
Old 08/17/2011, 23:12   #5
 
silencer61's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 124
Received Thanks: 89
thx bro

Code:
            Packet move = new Packet(0x7021);
            move.WriteByte(1);
            move.WriteByte(sectorx);
            move.WriteByte(sectory);
            move.WriteInt16(posx);
            move.WriteInt16(posy);
            move.WriteInt16(0);   //z
when i send this it goes wrong side
where is mistake?
silencer61 is offline  
Old 08/17/2011, 23:18   #6
 
elite*gold: 0
Join Date: Sep 2010
Posts: 783
Received Thanks: 920
[C -> S] 7021
01 // flag
[byte] x sec
[byte] y sec
[word] x pos
[word] z pos
[word] y pos


you replaced y with z
ÑõÑ_Ŝŧóp is offline  
Thanks
1 User
Old 08/17/2011, 23:19   #7
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Code:
            Packet move = new Packet(0x7021);
            move.WriteByte(1);
            move.WriteByte(sextorx);
            move.WriteByte(sextory);
            move.WriteInt16(posx);
            move.WriteInt16(0);   //z
            move.WriteInt16(posy);
Try this.

Edit: nonstop beat me
kevin_owner is offline  
Thanks
1 User
Old 08/17/2011, 23:23   #8
 
silencer61's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 124
Received Thanks: 89
thx so much. It works woowww! xD
silencer61 is offline  
Old 08/18/2011, 01:03   #9

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
As I said, you dont need it .
sarkoplata is offline  
Reply


Similar Threads Similar Threads
[Packets] Wie änder ich flyff packets?
07/16/2011 - Flyff Private Server - 19 Replies
HeyHo, Ich würde sehr gerne wissen wie man die Flyff Packets ändert... ich denke mal Zahlen ändern werden nicht ausreichen oder?
Movement runes
03/22/2011 - Shaiya Private Server - 5 Replies
Hi, maybe someone can help me out, I edited my maps 1-15 and 20-30 so lvl 60 players can go inside, but party summons or movement runes dont work inside the map. Is there a way to let those summons work in those maps? Thanks in advance.
3d movement? how?
06/21/2009 - General Coding - 7 Replies
Hi guys, Well, i can use... 1. Autoscript 2. a packet bot 3. direct ingame manipulation ( the way i wanna try ) Any method has its benefits. 1.
Packets: Movement while flying
03/15/2006 - Conquer Online 2 - 4 Replies
Hi Just wondering if anyone knew what packet you use to move while flying. Do you just send the walk packet or the jump? An help would be apreciated, thanks. Hojo



All times are GMT +2. The time now is 13:54.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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