Register for your free account! | Forgot your password?

You last visited: Today at 15:00

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

Advertisement



Send packets

Discussion on Send packets within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
Darkness™'s Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 2,085
Received Thanks: 1,669
Send packets

Hi guys , i need some help.

i was trying to make a tool for get the event items from Carnival event in the server that i'm playing, because is a pain in the *** ask for reward 1 by 1 :S i was searching in the forum and found this code in auto it.

i just succes to the part when you ask for the reward by sending the packed.

this is the code.

Code:
#include <string.au3>
Global $sBuffer, $rBuffer
Global $iSize, $iIndex

$IP = "127.0.0.1"
TCPStartUp()
$socket = TCPConnect( $IP, 9000)
If $socket = -1 Then MsgBox (0,"TCP","Can't make a connection")


NewPacket(0x30D4,2)
AppendByte(5)
TCPSend($socket,GetPacket())


Func NewPacket($sValue, $iValue)
	Local $sTemp = Hex($sValue)
	$sBuffer = ""
	$iSize = 0
	$sBuffer &= StringLeft(ReverseHex(Hex($sValue)), 4)
	$sBuffer &= StringLeft(ReverseHex(Hex($iValue)), 4)
EndFunc   ;==>NewPacket

Func ReverseHex($sString)
	Local $sTemp, $len
	For $i = StringLen($sString) + 1 To 1 Step -2
		$sTemp &= StringMid($sString, $i, 2)
	Next
	Return $sTemp
EndFunc   ;==>ReverseHex

Func AppendByte($sValue)
	$sBuffer &= StringRight(Hex($sValue), 2)
	$iSize += 1
EndFunc   ;==>AppendByte

Func GetPacket()
	Local $sTemp = "0x"
	$sTemp &= StringLeft(ReverseHex(Hex($iSize)), 4)
	$sTemp &= $sBuffer
	Return $sTemp
EndFunc   ;==>GetPacket
but it need to do some things before ask for the reward, like select the npc, select Talk to this person and select the event option, then you can askfor the reward.

i was trying alot and didnt success.

those are the opcodes and packets.


Select NPC
[C -> S][7045]
D5 03 00 00

Select option Talk to this person
[C -> S][7046]
D5 03 00 00
02

Select event type (carnival)
[C -> S][30D4]
06

Select reward
[C -> S][30D4]
05


I'm using srproxy and edxloader6

Thanks in advanced.
Darkness™ is offline  
Old 02/18/2013, 23:16   #2
 
Darkness™'s Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 2,085
Received Thanks: 1,669
anyone ?
Darkness™ is offline  
Old 02/19/2013, 03:57   #3
 
elite*gold: 0
Join Date: Feb 2013
Posts: 103
Received Thanks: 7
Wish I could help dude
KronixBoosting is offline  
Old 02/19/2013, 23:40   #4
 
LastThief*'s Avatar
 
elite*gold: 60
Join Date: Feb 2012
Posts: 3,942
Received Thanks: 6,474
You should look more in .net rather than autoit

An example to begin with



(Includes connecting to server sending packets etc change it to your own fit)
LastThief* is offline  
Old 02/24/2013, 18:20   #5
 
elite*gold: 0
Join Date: Feb 2013
Posts: 144
Received Thanks: 36
Wish I could help dude
[GM]Obvlision is offline  
Reply


Similar Threads Similar Threads
[REQUEST] packets send list , or anyway to sniff send packets
08/10/2012 - Kal Online - 16 Replies
hey everyone , as mentioned , i wanna know if anyone got a complete send packets lists or anyway i can sniff send packets , thanks in advance
Send Packets?!
04/09/2012 - .NET Languages - 10 Replies
Hallo Leute, Ich habe folgenden Code mit WPE Pro rausgesnifft von einen Chat aus dem Game "Steel Legions": Beispiel Send "Test": HEX: 00 00 00 16 01 6B 00 00 2A BA AC 00 00 01 00 04 54 65 73 74 05 02 00 00 0E 2D STRING: .....k..*.......Test.....- Diese Zahl berechnet sich so: 12+ Anzahl der Zeichen Anzahl der Zeichen String zum senden in Hex (54=T,65=e,73=s,74=t)
Send packets with srproxy?
06/04/2011 - General Coding - 1 Replies
I tried using system.net.sockets and also winsock control But there is a problem that I never can send packets through srproxy I just convert them to byte array and send , it works perfectly with phconnector but phconnector is a sh*t which gives error every 5mins. so now, what's the point to send them over srproxy ? how can dbbot do it?
[L2Phx]How can i send [x] packets?
09/07/2009 - Lineage 2 - 0 Replies
Yesterday at a interlude server i could send 50 packets with phx in 1 sec, bot today i tried it again , but doesnt work. If someone know how to do this , please tell me. (i was buying potions to bug adena, i bought 1777000 potions for each send) (and when i change the value of the amount it doest work because the max is 5000 itens for buying)
Any one tell me how to send packets in RO
05/05/2008 - Ragnarok Online - 1 Replies
i have wpe pro latest as guy from this forum i saw his guide but i came through all right but atlast it says "you cannot get the item" this message appears can u tell me wats the problem??? the packet i had sent was for Mithril coins



All times are GMT +1. The time now is 15:00.


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.