Register for your free account! | Forgot your password?

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

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

Advertisement



How do you get OP Codes for Skills from the PK2? (eSRO)

Discussion on How do you get OP Codes for Skills from the PK2? (eSRO) within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
Blapz's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 346
Received Thanks: 87
How do you get OP Codes for Skills from the PK2? (eSRO)

The topic is pretty self explanatory, I converted the PK2 to a text file and got this.
Code:
1 1 172 SKILL_PUNCH_01 ???? SKILL_PUNCH 0 1 2 0 0 0 0 1500 1500 0 0 0 0 1 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 1 255 0 0 0 0 0 255 255 255 255 *** *** *** *** *** 0 0 0 6386804 5 150 0 0 150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
I have no idea how to get the OP Code out of that, if someone could help, I would appreciate it.

If it is not possible to get the OP Codes from the PK2, what is the easiest way to get them for eSRO.
Blapz is offline  
Old 06/30/2011, 21:24   #2
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
It isn't possible to get those from the pk2.
The easiest way is to sniff them from the packets.
For example if you use packet dumper and you get the following packet.

01 00 00 50 00 00 01
The opcode in this packet is 5000. this is the 3rd and 4th byte.

To get the one for the skill you need to open packet logger while you're playing and cast a skill and check which packets just went from client to server (it would sure take a lot of attempts to get the correct one also a non crowded area helps a lot so you don't get a lot of packets)

but esro has the silkroad security running so you would need to decrypt the packets but drew wrote a proxy and there is srproxy I don't know if these work for esro but this would probably be the easiest way.

By the way if I might ask where do you need the opcode for cause it sounds like you don't have a lot of experience with these whole opcode thing or packets.

Edit: and if my last statement is correct this whole post would probably be unknown territory for you
kevin_owner is offline  
Thanks
2 Users
Old 06/30/2011, 21:36   #3
 
Blapz's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 346
Received Thanks: 87
Quote:
Originally Posted by kevin_owner View Post
It isn't possible to get those from the pk2.
The easiest way is to sniff them from the packets.
For example if you use packet dumper and you get the following packet.

01 00 00 50 00 00 01
The opcode in this packet is 5000. this is the 3rd and 4th byte.

To get the one for the skill you need to open packet logger while you're playing and cast a skill and check which packets just went from client to server (it would sure take a lot of attempts to get the correct one also a non crowded area helps a lot so you don't get a lot of packets)

but esro has the silkroad security running so you would need to decrypt the packets but drew wrote a proxy and there is srproxy I don't know if these work for esro but this would probably be the easiest way.

By the way if I might ask where do you need the opcode for cause it sounds like you don't have a lot of experience with these whole opcode thing or packets.

Edit: and if my last statement is correct this whole post would probably be unknown territory for you
I know what you're saying, I do appreciate the help the help thanks. Security is already taken care of as I got GG disabled. Unless the packets are encoded, which wont be a problem, once again thanks for the help
Blapz is offline  
Old 06/30/2011, 21:46   #4
 
Blapz's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 346
Received Thanks: 87
@Kevin, What packet sniffer do you recommend? I've been using Wireshark for a bit
Blapz is offline  
Old 06/30/2011, 22:10   #5
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Wireshark could work but I use one which was created by a friend of mine it uses Winpcap. wireshark also uses winpcap but it has a lot of options.

You could also try drew's edxSilkroadLoader but I don't know if this works but it has a auto packet parser in it so you get the opcode with the parsed content.
kevin_owner is offline  
Thanks
1 User
Old 07/01/2011, 02:09   #6
 
r7slayer's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 696
Received Thanks: 310
Quote:
Originally Posted by kevin_owner View Post
It isn't possible to get those from the pk2.
The easiest way is to sniff them from the packets.
For example if you use packet dumper and you get the following packet.

01 00 00 50 00 00 01
The opcode in this packet is 5000. this is the 3rd and 4th byte.

To get the one for the skill you need to open packet logger while you're playing and cast a skill and check which packets just went from client to server (it would sure take a lot of attempts to get the correct one also a non crowded area helps a lot so you don't get a lot of packets)

but esro has the silkroad security running so you would need to decrypt the packets but drew wrote a proxy and there is srproxy I don't know if these work for esro but this would probably be the easiest way.

By the way if I might ask where do you need the opcode for cause it sounds like you don't have a lot of experience with these whole opcode thing or packets.

Edit: and if my last statement is correct this whole post would probably be unknown territory for you
Rly? I thought you could get the opcodes from the pk2? Lol dam...

Then i wonder how zeteris who is currently developing Zbot is able to get the opcodes, because if you have to cast a skill/spell to get the opcodes then this would require getting characters of each skill tree, e.g. warrior, rogue, wizz, etc and at least lvl 90? To be able to acquire all the skill opcodes?

I was currently interested in obtaining the opcodes too, just for learning purposes. Currently trying to learn C#.

Edit-
Kev i know your experienced in C++ but, you wouldn't by any chance know of any good resouces to use for learning C# would you?
Been using Worx - Beggining Visual C# and .Net 4 <- this feels too basic and i allready know quite abit from this E-Book allready as i'm quite experienced in Object Oriented programming in Java and a little bit of Visual basic.
Been looking at Worx - Professional C# 4 and CSharp Unleased but the jump seems quite a leap lol.
Any pointers to where to go look for tuts, guides or learning material would be great ^^
r7slayer is offline  
Old 07/01/2011, 06:21   #7
 
ZeraPain's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 360
Received Thanks: 249
there are only 2 opcodes..
one for casting a skill and one for casting a buff
(or maybe just one, didn't check)
ZeraPain is offline  
Thanks
1 User
Old 07/01/2011, 08:56   #8
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
ZeraPain is right there are only one or two opcodes for the skills mabye more I don't know but all the skill casting packets have the same format if I'm correct. That packet contains for example a skillId which you can find in the media.pk2 skilldata. There might also be a characerId in it and some other stuff. but there isn't a new opcode for every skill that would just be insane

About the C# learning well I used this free tutorial:


It has some nice small and clean examples. It helped me to understand the little syntax change from C++ to C#.
kevin_owner is offline  
Thanks
1 User
Old 07/01/2011, 09:56   #9
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
Quote:
Originally Posted by r7slayer View Post
Any pointers to where to go look for tuts, guides or learning material would be great ^^
Depends on what you wanna learn: basics of C# or basics of the .Net framework.

For C# basics: .
For .Net, there's always MSDN.
lesderid is offline  
Thanks
1 User
Old 07/01/2011, 10:52   #10
 
zeteris's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 575
Received Thanks: 752
Quote:
Originally Posted by kevin_owner View Post
ZeraPain is right there are only one or two opcodes for the skills mabye more I don't know but all the skill casting packets have the same format if I'm correct. That packet contains for example a skillId which you can find in the media.pk2 skilldata. There might also be a characerId in it and some other stuff. but there isn't a new opcode for every skill that would just be insane
Yes, you just need 2 Opcodes to send to server ( One for the skills, another for buffs ). But servers send back a few more packets, which contains, char id, skill id, and skill temp id.
zeteris is offline  
Thanks
2 Users
Old 07/01/2011, 15:17   #11
 
r7slayer's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 696
Received Thanks: 310
Quote:
Originally Posted by kevin_owner View Post
ZeraPain is right there are only one or two opcodes for the skills mabye more I don't know but all the skill casting packets have the same format if I'm correct. That packet contains for example a skillId which you can find in the media.pk2 skilldata. There might also be a characerId in it and some other stuff. but there isn't a new opcode for every skill that would just be insane

About the C# learning well I used this free tutorial:


It has some nice small and clean examples. It helped me to understand the little syntax change from C++ to C#.
Haha, thanks for setting me straight on the opcodes lol and everyone else too.
Used wireshark before at uni so probably will try and use that for capturing the packets.
And thanks for the link, will be usefull as ever little help, helps lol


Quote:
Originally Posted by lesderid View Post
Depends on what you wanna learn: basics of C# or basics of the .Net framework.

For C# basics: .
For .Net, there's always MSDN.
Well iv'e pritty much got the basics coverd as quite a few things in c# are similar to Java OOP which iv'e studied.
And thanks for the link will check it out

Quote:
Originally Posted by zeteris View Post
Yes, you just need 2 Opcodes to send to server ( One for the skills, another for buffs ). But servers send back a few more packets, which contains, char id, skill id, and skill temp id.
Thanks! Some usefull info
r7slayer is offline  
Old 07/01/2011, 15:30   #12
 
bootdisk's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 134
Received Thanks: 41
How come there are 2 different OP codes for casting an skill?
In previous versions it was just the 7074 with different flags.
Buffs are essentially 'attacks' too and 7074 denotes "action".

From my old utility called SLiP I got:

Code:
function attackRegular(s, target)
    packetstart(s, 0x7074)
        packetwritebyte(s, 1, 1, 1)
        packetwriteinteger(s, target)
    packetsendto(s)
end

function attackSkill(s, skill, target)
    packetstart(s, 0x7074)
        packetwritebyte(s, 1, 4)
        packetwriteinteger(s, skill)
        packetwritebyte(s, 1)
        packetwriteinteger(s, target)
    packetsendto(s)
end

function buffSkill(s, skill)
    trace("buffSkill: ", skill)
    packetstart(s, 0x7074)
        packetwritebyte(s, 1, 4)
        packetwriteinteger(s, skill)
        packetwritebyte(s, 0)
    packetsendto(s)
end
What you wrote in your first post that has a number '174' is the skill parameter in these functions.

I think this thread needs to be cleaned because it mixes a lot of stuff...
bootdisk is offline  
Reply


Similar Threads Similar Threads
WTT ESRO lvl 93 warrior prem for wiz esro
06/30/2011 - Silkroad Online Trading - 0 Replies
WTT ESRO lvl 93 warrior prem for a lvl 90+ wiz pm me
Ninja Saga - Skills Codes
01/26/2011 - Facebook - 7 Replies
1. Open ninja saga and recruit 2 friends (you should know their equipped skills already so you can change it to skill91 which is the Amaterasu. The skills should be 2 digits only or it's difficult to change it with CE) 2. Go to Jounin exam part 4 or 5 3. OPEN Cheat Engine 5.6 4. For scan value, select Text, tick Case sensitive & Unicode, ASROM and scan the skill number that you want to change to skill91. example: If your friend has the skill "Water Bundle", you will scan for...
[B] iTunes Codes [S] Nintendo VIP Sterne Codes & Coke Fridge Codes
01/01/2011 - Trading - 5 Replies
Bitte löschen.



All times are GMT +1. The time now is 12:54.


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.