Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP] Purification pills packets

Discussion on [HELP] Purification pills packets within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2008
Posts: 44
Received Thanks: 0
[HELP] Purification pills packets

So, what I am trying to do is send a packet using AutoIT to use a purification pills located somewhere in my inventory, I snitched the packets using edxAnalyzer and that's what comes up

[C -> S][704C]
21
6C 09

I know the 21 is the location in inventory, I know the 704C is the opcode, I know the 6C 09 is the purification pill's ID and the item's type, what I don't know is how to use them in Auto IT. I tried something else like sending a sit/stand packet and it worked fine, the Analyzer gave me that

[C -> S][704F]
04

And here's what I did in AutoIT for the sit/stand packet

PHP Code:
TCPStartup()

$socket TCPConnect("127.0.0.1"16000)
If 
$socket = -1 Then
    MsgBox
(64"Notice""Connection failed.")
    Exit
 EndIf
Sleep(5000)
TCPSend($socket"0x" "0100" "4F70" "0100" "04") ;0x size opcode direction packetdata

TCPShutdown
() 
Now, what I want is the purification pill's format if I wanted to insert it in AutoIT, for example the sit/stand is this : 0x01004F70010004, I want the purification pill's usage in that same format, no functions or any of that sort. Oh I also tried doing 0x010004C700100216C09 but it gave me a DC, maybe I am putting the wrong direction? I don't know.

Thanks, any help would be appreciated.
xana4444 is offline  
Old 07/06/2015, 15:29   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
704C should be encrypted. Also 21= slot number
magicanoo is offline  
Old 07/06/2015, 15:31   #3
 
elite*gold: 0
Join Date: Nov 2008
Posts: 44
Received Thanks: 0
I knew what the 21 is. So 704C being encrypted means I gotta use another direction? if yes what is it?
xana4444 is offline  
Old 07/07/2015, 01:52   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 46
Received Thanks: 5
opcode 704c is encrypted so the direction must be 0003 (if u use PHconnector)

so u will send it like :-
$data ="0x"&"0300"&"4c70"&"0300"&"216c09"
TCPsend($socket,$data)

BTW :- size equal 3 not 1 cause the data field contain 3 bytes not 1
theking200051 is offline  
Old 07/07/2015, 08:13   #5
 
elite*gold: 0
Join Date: Nov 2008
Posts: 44
Received Thanks: 0
Quote:
Originally Posted by theking200051 View Post
opcode 704c is encrypted so the direction must be 0003 (if u use PHconnector)

so u will send it like :-
$data ="0x"&"0300"&"4c70"&"0300"&"216c09"
TCPsend($socket,$data)

BTW :- size equal 3 not 1 cause the data field contain 3 bytes not 1
I got it to work by doing this.

PHP Code:
TCPStartup()
$socket TCPConnect("127.0.0.1"16000)
$data "0x01004C700300216C09"
TCPSend($socket$data) ;0x size opcode direction packetdata
Sleep
(1
So the size thing is 0(number of fields)00? which means 0300 in my case and 0100 in the sit/stand case since it's one field? thanks, I was hoping someone would explain how the size gets calculated although it's weird it's working with 0100 with 3 fields.
xana4444 is offline  
Old 07/07/2015, 20:02   #6
 
elite*gold: 0
Join Date: Feb 2009
Posts: 46
Received Thanks: 5
if u mistaken the size it may work and may DC so write it correctly is the best way u insure u build stable tool ,

the size field is the number of bytes in the data field ,the data field start after the direction or security bytes to the end of the packet so in case of sit packet (704f) the data field is 04 and in the purification pills (704c) it is the {216c09}
And :- byte = 2 digits
so u got 2 digits in data field of the sit packet then u got 1 byte ,and u got 6 digits in the purification pills packet so u have 3 bytes and .....etc )

and its easy to make the autoit calculate it automatically , here i will share a function that u just enter the opcode and data field ,and encrypt and it will build the packet for u .

Code:
func SendPacket($txopcode,$encrypt,$data) ; this will reverse the opcode bytes for u 
  $op1=StringMid($txopcode,3,2)
  $op2=StringMid($txopcode,1,2)
$sopcode=$op1&$op2

  $ln=Hex(Int(StringLen($sdata)/2),4)  ; this will calculate the size for u 
  $ln1=StringMid($ln,3,2)
   $ln2=StringMid($ln,1,2)
   $lns=$ln1&$ln2

if $encrypt  = true then
 $security="0300"                                 
else
  $security="0100"
EndIf
$packet=("0x"&$lns&$sopcode&$security&$data)
TCPSend($socket,$packet)
examples :-
sit packet :-
SendPacket("704f",false,"04")
purification pills:-
SendPacket("704c",true,"216c09")

Note this will work only with proxy thats use 0001 for unencrypted and 0003 for encrypted like PHconnector or Nuconnector
theking200051 is offline  
Old 07/07/2015, 21:22   #7
 
elite*gold: 0
Join Date: Jul 2012
Posts: 14
Received Thanks: 0
704C
slot number
0x096C

should be work.
worldgs is offline  
Reply


Similar Threads Similar Threads
Purification pills cooldown
08/13/2023 - SRO Private Server - 18 Replies
So, I have been meaning to change the cooltime for purification pills from 20 to 15, I got most of it done in the database but I couldn't get it done with the media.pk2, only data I could find related to the pills were at itemdata_15000 with this line 1 10377 ITEM_ETC_CURE_RANDOM_04 ???...
PURIFICATION HELP ME
11/10/2014 - CO2 Private Server - 1 Replies
sorry for many threads but i got new problem i trying to reperair it but dont work.. my purification dont work look my purification.cs Packethandler.cs PurificationItem.cs whats wrong with it ? i think all good Fixed It Close please
Purification Pill
07/10/2013 - SRO Private Server - 5 Replies
hello Purification Pill 20 sec. > 15 sec. change how can ?
[Release] +5500 Packets structure , client/packets constants
10/07/2012 - CO2 PServer Guides & Releases - 10 Replies
edit : if u know nothing about packets go to this post first explaining what is packets , and explaining a packet with details and everything http://www.elitepvpers.com/forum/co2-pserver-disc ussions-questions/2162344-packets-packets-packets. html#post19074533 i start making my very own packet structure to use them on my new proxy but i thought of ripping them from the source so yeah the following packets is ripped of trinity base source right now im just providing the packets structure...
Coding Purification
03/10/2011 - CO2 Private Server - 3 Replies
Well, I'm in a doubt how to code the artifacts. First of all, I Don't know If It's coded in p4n's source or anyone else's and I'm not going to take example from there since I've no idea how purification works and I wanna do it by myself, by my way The Questions are, How is the system going? What it does to the item , what new function the items have, what type of packet purification uses? Thanks in advance, Stefan



All times are GMT +1. The time now is 05:39.


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