|
You last visited: Today at 17:27
Advertisement
[codeing] XYZ packet process ?
Discussion on [codeing] XYZ packet process ? within the Silkroad Online forum part of the Popular Games category.
01/10/2011, 21:50
|
#1
|
elite*gold: 0
Join Date: Mar 2008
Posts: 132
Received Thanks: 23
|
[codeing] XYZ packet process ?
hii all
i don't know if this the right section for my question or i should post in code corner section
so any way
i have problem with XYZ packets , i cant figure out how to change it from HEx to the numbers that's appear at the game client windows
her's a part of the packets which include the XYZ
hex = 01855CDF066E007800 (from game X=-209 y=11)
X = 01855CDF
Y = 066E0078
Z = 00
so i hope any one explain how to change HEX to XY
thanks
|
|
|
01/10/2011, 22:21
|
#2
|
elite*gold: 702
Join Date: Jul 2008
Posts: 1,291
Received Thanks: 415
|
HEX -> INT ?
|
|
|
01/10/2011, 22:25
|
#3
|
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
|
Your packet seems wrong?!
The position always looks like this
Byte XSec
Byte YSec
Float XOffset
Float ZOffset
Float YOffset
Word Rotation
How to converrt offset into gamecoord
(XSec - 135) * 192 + (XOffset / 10)
(YSec - 92) * 192 + (YOffset / 10)
|
|
|
01/10/2011, 22:40
|
#4
|
elite*gold: 0
Join Date: Mar 2008
Posts: 132
Received Thanks: 23
|
Quote:
Originally Posted by DaxterSoul
Your packet seems wrong?!
The position always looks like this
Byte XSec
Byte YSec
Float XOffset
Float ZOffset
Float YOffset
Word Rotation
How to converrt offset into gamecoord
(XSec - 135) * 192 + (XOffset / 10)
(YSec - 92) * 192 + (YOffset / 10)
|
is that's want y mean ?
Byte XSec 01
Byte YSec 06
Float XOffset 855CDF
Float ZOffset 6E0078
Float YOffset 00
|
|
|
01/10/2011, 23:20
|
#5
|
elite*gold: 0
Join Date: Jan 2008
Posts: 21
Received Thanks: 12
|
Code:
[byte] Flag 0x01 --> click on ground
[byte] Xsection 0x85 --> 133
[byte] Ysection 0x52 --> 92
[short] Xoffset 0xdf06 --> 1756
[short] Zcoord 0x6e00 --> 110
[short] Yoffset 0x7800 --> 120
X = (Xsection - 135) * 192 + (Xoffset / 10)
Y = (Ysection - 92) * 192 + (Yoffset / 10)
X= -208,1
Y= 12
|
|
|
01/10/2011, 23:36
|
#6
|
elite*gold: 0
Join Date: Mar 2008
Posts: 132
Received Thanks: 23
|
Quote:
Originally Posted by illstar
Code:
[byte] Flag 0x01 --> click on ground
[byte] Xsection 0x85 --> 133
[byte] Ysection 0x52 --> 92
[short] Xoffset 0xdf06 --> 1756
[short] Zcoord 0x6e00 --> 110
[short] Yoffset 0x7800 --> 120
X = (Xsection - 135) * 192 + (Xoffset / 10)
Y = (Ysection - 92) * 192 + (Yoffset / 10)
X= -208,1
Y= 12
|
that's great thanks , but just one last question , you used(( DEC ))to change y,x section ,,, but how you change Xoffset from 0xdf06 to 1756 ??
how to edit it in autoit ?
|
|
|
01/11/2011, 00:12
|
#7
|
elite*gold: 0
Join Date: Jan 2008
Posts: 21
Received Thanks: 12
|
Change byte order from Littel-endian to Big-endian
and use windows calc to convert it from hex to dez
0xdf06 --> Hex(06fd) --> Dez(1789)
|
|
|
01/11/2011, 00:20
|
#8
|
elite*gold: 0
Join Date: Mar 2008
Posts: 132
Received Thanks: 23
|
Quote:
Originally Posted by illstar
Change byte order from Littel-endian to Big-endian
and use windows calc to convert it from hex to dez
0xdf06 --> Hex(06fd) --> Dez(1789)
|
my wrong i shoud not type 7800 in calculator
thx for help , i really appreciate your help ^^
problem solved
|
|
|
01/16/2011, 22:51
|
#9
|
elite*gold: 0
Join Date: Mar 2008
Posts: 132
Received Thanks: 23
|
1st special thx to illstar and DaxterSoul for help
i have new problem in how to change X,Y ingame to packets again (section-offset)
DaxterSoul help me with code of how to change it
XSec =(Round((pX / 192) + 135.0))
Xpac =((pX - ((XSec) - 135) * 192) * 10)
X,Ysec no problem in then , my real problem is in Xpac
of exm~
hex = 01855CDF066E007800
pX = -208,1
[byte] Flag 0x01 --> click on ground
[byte] Xsection 0x85 --> 133
[short] Xoffset 0xdf06 --> 1756
Xpac =((208,1- ((133 ) - 135) * 192) * 10) it's supposed to be = 1756
but i get 5921
any help ??/
|
|
|
01/17/2011, 12:14
|
#10
|
elite*gold: 0
Join Date: Jan 2008
Posts: 21
Received Thanks: 12
|
GetSector
XSec =(Round((pX / 192) + 135.0)) <--- rounddown
GetOffset
offset = pX mod 192 --> (-16,1)
if offset < 0 then then offset =192 + offset -->(175,9)
xPax = offset *10 -->(1759)
------------------------------
that should do the job
|
|
|
01/17/2011, 20:57
|
#11
|
elite*gold: 0
Join Date: Mar 2008
Posts: 132
Received Thanks: 23
|
Quote:
Originally Posted by illstar
GetSector
XSec =(Round((pX / 192) + 135.0)) <--- rounddown
GetOffset
offset = pX mod 192 --> (-16,1)
if offset < 0 then then offset =192 + offset -->(175,9)
xPax = offset *10 -->(1759)
------------------------------
that should do the job
|
thx bro ^^
|
|
|
09/19/2012, 15:14
|
#12
|
elite*gold: 0
Join Date: Feb 2012
Posts: 5
Received Thanks: 0
|
So can you post the working script to get the x , y, z position ?
|
|
|
 |
Similar Threads
|
VB Bot-Codeing Problem (Anweisung...)
12/25/2011 - .NET Languages - 15 Replies
Ich möchte in VB ein Bot Coden (NUR IN VB!)
Meine Probleme:
Was ist der Begriff für Tabulator?
Wie mach ich das am besten (nicht mit Sendkeys)
sondern mit? ich glaube die Anweisung war Process.send???
Danke im Vorraus!!
:handsdown::handsdown::handsdown:
|
Process Packet Sniffer SDK
04/25/2010 - General Coding - 0 Replies
Hi,
I want to know if there is a recommendable SDK for c++ or java, or an
extensive guide creating a process packet sniffer for the languages above.
Greetings Mankana
|
[UPDATE, Last check = 5222] Required packet update for authorization process
03/23/2010 - CO2 Private Server - 21 Replies
It seems this has to be sended right after the connection has been made with the client.
Packet(0): 19
Packet(1): CC
Packet(2): CD
Packet(3): 73
Packet(4): CA
Packet(5): 5A
|
Need 30$ O_O CODEING VIEW
11/17/2009 - 12Sky2 - 2 Replies
Hay you guys knwo me, Point blank i need 30$ what do you guys want em to code
<_< Ill code anythign resonable, i just need 30$ paypal
by 3:00 GMT +1
Buying somethign i need off Ebay so i can finally fix the computer
PLEASE PLEASE PLEASE 20 Hours Left, Need to fix my pc ill code / do anything
(resonable)
|
Personal Codeing teacher
04/21/2009 - Dekaron Private Server - 0 Replies
i am currently looking for a coder that is patient helpful and is willing to help me learn thats all im asking pm me if ur up to the task. fyi its for dekaron that im looking into learning how to code.
examples are how to edit basic weapons,integrate 145's into monsters, relics, chests etc... diteing monster exp, monster drops, weapons stats, etc...
Or can sumone message me on MSN [email protected] i need sumone to check my work i tryed to put the 145s inside the relic 3730 i put the item...
|
All times are GMT +1. The time now is 17:28.
|
|