Register for your free account! | Forgot your password?

You last visited: Today at 09:41

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

Advertisement



Problem with packet..

Discussion on Problem with packet.. within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2009
Posts: 291
Received Thanks: 164
Problem with packet..

Hello..

I got little problem with packet send via AutoIT
It's alchemy packet 7150 with 1st,2nd,3th slot..

Am using:
Code:
InjectPacket("7150", "0203030D0E0F")

Func InjectPacket($opcode, $data, $security = "0100")
	$size = Hex(StringLen($data) / 2, 4)
	$size = StringMid($size, 3, 2) & StringMid($size, 1, 2)
	$opcode = StringMid($opcode, 3, 2) & StringMid($opcode, 1, 2)
	$packet = _HexToString($size & $opcode & $security & $data)
        TCPSend($socket, $packet)
EndFunc
After I send it through PHConnector i got DC =d
When I change security 0100 -> 0200 I didn't get DC, but nothin happen..

Any suggestions?

#Edit

In edx6 analyzer It's like this when I fuse in-game..

Code:
[C -> S][7150]
02                                                ................
03                                                ................
03                                                ................
0D                                                ................
0E                                                ................
0F                                                ................
#Edit2

Am investigated, that $packet is empty ;/
Before _HexToString it's:
Code:
0000507102000203030E0F10
I didn't understand anything
M4n1ak is offline  
Old 07/02/2012, 18:52   #2
 
elite*gold: 0
Join Date: May 2009
Posts: 67
Received Thanks: 37
As far as i know when using PHConnector the "security" bytes determine whether the packet get's sent to the client or the server. But i can't tell you which one's which because i haven't used it in ages.
theonly112 is offline  
Old 07/02/2012, 19:02   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 291
Received Thanks: 164
Yeah..
0100 S->C
0200 C->S
I guess, but why it's not working?
This packet is from original Fuse-O-Mat, and am always getting DC with this..
M4n1ak is offline  
Old 07/02/2012, 19:06   #4
 
elite*gold: 0
Join Date: Sep 2007
Posts: 255
Received Thanks: 531
This code is outdated since AutoIt v3.3.8.0

Change
$size = Hex(StringLen($data) / 2, 4)
To
$size = Hex(Int(StringLen($data) / 2), 4)


Quote:
Changed: Hex() detects doubles internally and processes them respecting binary format.
jremy is offline  
Thanks
1 User
Old 07/02/2012, 19:10   #5
 
elite*gold: 0
Join Date: Mar 2009
Posts: 291
Received Thanks: 164
Yup working..
thanks jremy, u best

Security flag 0100 + this change works ;D
M4n1ak is offline  
Old 07/02/2012, 19:11   #6
 
elite*gold: 0
Join Date: May 2009
Posts: 67
Received Thanks: 37
Well do you have a Weapon in the 1st a Elixir in the 2nd and a lucky powder in the 3rd inventory slot? And it is going take a few seconds. You are only going to see whether it worked in the bottom right. There is no alchemy window going to pop up.
EDIT: too late. sorry
theonly112 is offline  
Reply


Similar Threads Similar Threads
Packet problem
01/06/2012 - CO2 Programming - 2 Replies
Fixed thanks to CptSky.
Packet decryption problem
12/20/2011 - CO2 Private Server - 4 Replies
So I tried downgrading the Albetros source to 5017 and posted this issue in that thread but since I don't know how many people actually check that thread, I'll post it here as well. The problem is as follows: The gameserver only handles the first packet properly, in other words packet 1052 is handled ok (correct sizes, type w/e) but then when it receives the next packet, it has these weird huge sizes and wacky IDs such as the charcreation packet becoming ID 34669 instead of 1001. pro...
Packet Logger V2 Problem
11/18/2011 - Nostale - 5 Replies
Mein Problem ist wie folgt: Ich brauche Hilfe beim ändern der NostaleX.dat Versionsnummer ich weiß nicht in welche Versionsnummer ich sie ändern soll. Kann mir vllt. ein funktionierendes NostaleX.dat hochladen oder erklären wie genau ich das machen soll würde sogar per Teamviewer. Danke im Vorraus :) Ausserdem benutze ich WinJect :)
Bot Packet Problem
08/08/2008 - Ragnarok Online - 2 Replies
Hallo, also ich hab ein Problem mit den "Unknown Packet 7800-8700" ich weiß das man das Problem mit "openkore-packet-length-extractor" lösen könnte aber was kann man machen wenn beim extractor die Ro.exe dieses Problem: http://img293.imageshack.us/img293/7365/errorwz9.t h.jpg entsteht? Kann mir bitte jemand helfen? mfg
Packet decryption problem..
06/02/2006 - Conquer Online 2 - 2 Replies
In Lowfyr's packet decryption guide, first step to get key3/key4 1.) Add key 1 with key 2 205C48F4 + 0044A62E = 20A0EF22 What do I do when key1+key2 is more than 4 bytes? Discard the first byte? Just as an example, I have gotten this from the server.. key1 363504E3 key2 D9007F2D add them together = 10F358410 do I just discard the 1 and end up with 0F358410?



All times are GMT +1. The time now is 09:43.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.