Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Guides & Templates
You last visited: Today at 12:59

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

Advertisement



Basic PK2-Tutorials by crYstaL

Discussion on Basic PK2-Tutorials by crYstaL within the SRO Guides & Templates forum part of the Silkroad Online category.

Reply
 
Old   #1
 
crYstaLxT's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 17
Received Thanks: 31
Hey guys
After I got some requests for "How to pk2-Edit", I've written a detailed Tutorial how to do pk2 editing.
Well as you can see that this tutorials are for newbie and advanced editors.

Feel free to copy things of my tutorial but do not forget to give credits.
Writing this tutorial took me lots of time.
Respect this hard work as I respect yours.


Now the Tutorials

First of all you need to extract the Media.pk2 with Drew's Pk2 Extractor
Tools are in the following post


__________________________________________________ ______________________________

Register:
1. Itemdata Editing
2. SoX Editing
3. Glow Editing
4. Character Editing
5. Removing Itemall and Event Windows
6. Skill Editing
∞. Importing the Files to the .pk2

__________________________________________________ ______________________________



1. Itemdata Editing

Open Itemdata.txt
/Media/server_dep/silkroad/textdata/itemdata.txt

Code:
WEAPON CODES:
BLADE=CH_BLADE_XX
GLAVIE=CH_TBLADE_XX
BOW=CH_BOW_XX
SPEAR=CH_SPEAR_XX
SHIELD=CH_SHIELD_XX
SWORD=CH_SWORD_XX
DAGGER=EU_DAGGER_XX
CLERIC ROD=EU_STAFF_XX
STAFF=EU_TSTAFF_XX
HARP=EU_HARP_XX
WARLOCK ROD=EU_DARKSTAFF_XX
CROSSBOW=EU_CROSSBOW_XX
AXE=EU_AXE_XX
TWO HANDED SWORD=EU_TSWORD_XX
ONE HANDED SWORD=EU_SWORD_XX
SHIELD=EU_SHIELD_XX

CLOTHES:
GARMENT=CH_Y_CLOTHES_XX
PROTECTOR=CH_Y_LIGHT_XX
ARMOR=CH_Y_HEAVY_XX

ROBE=EU_Y_CLOTHES_XX
LIGHT ARMOR=EU_Y_LIGHT_XX
HEAVY ARMOR=EU_Y_HEAVY_XX


XX = Degree (01,02,03....08,09,10)
Y = Gender (Male = M ; Female = W)
Expample:
changing Blade 8th (2.tier) to 9th (3.tier) to 10th
Search for CH_BLADE_08
[]

in the middle you will find bsr and ddj codes
bsr is that what you can see ingame
the degree changes
and ddj is the icon of the weapon

now change the degrees
[]




You also can change clothes and job suits

for job suits you need to know that codes:

Code:
- White Flag: ITEM_CH_M_TRADE_TRADER_02 ; ITEM_CH_W_TRADE_TRADER_02
- Red Flag: ITEM_CH_M_TRADE_TRADER_03 ; ITEM_CH_W_TRADE_TRADER_03

- Identity Card: ITEM_CH_M_TRADE_HUNTER_02 ; ITEM_CH_W_TRADE_HUNTER_02
- Special Identity Card: ITEM_CH_M_TRADE_HUNTER_03 ; ITEM_CH_W_TRADE_HUNTER_03

- Black Suit: ITEM_CH_M_TRADE_THIEF_02 ; ITEM_CH_W_TRADE_THIEF_02
- Devil Suit: ITEM_CH_M_TRADE_THIEF_03 ; ITEM_CH_W_TRADE_THIEF_03



KOREAN SPECIAL SUITS:
JUST INSTERT THE NUMBER 4 INSTEAD OF 2 OR 3
ITEM_CH_W_TRADE_THIEF_04

[]



2. SoX Editing

open itemrare.txt
/Media/resinfo/silkroad/itemrare.txt

first you need this codes
Code:
Normal weapon:
A=1Tier
B=2Tier
C=3Tier
SoX:
A_RARE=SoS
B_RARE=SoM
C_RARE=SoSun
Honor:
A_RARE_HONOR=Seal Of Honor Star
B_RARE_HONOR=Seal Of Honor Moon
C_RARE_HONOR=Seal Of Honor Sun
[]

these are the codes for honor
if you delete the _HONOR of the code _C_RARE_HONOR you will change Seal of Sun to Seal of Honor Sun

[]

if you put _HONOR to the code _C_RARE you will change Seal of Honor Sun to Seal of Sun

[]

you can change normal weapons to sox or soh too
you need to delete _RARE_HONOR to get soh
and _RARE to get sox

if your edited weapon is a normal weapon you also need to edit the itemdata.txt

open your itemdata.txt

look for your item
my item is the BLADE_08_C
in that line you will see the number "180000"
there are 2 zero's after that number
just change the second "0" to "2"
[]

result:
[]

that step is important because this will show your weapon as SoX ingame
but the bad thing is that your weapon is show as sox in your inventory too and the name of the weapon is yellow.
but i think that isnt a problem

WARNING:
If you want to change sox of blade , there are 2 codes

[]
you need to change both to get the full sox glow
otherwise you will see the half glow or just the sun
its just for sos and sosun

3. Glow Editing:

open itemtypenumber.txt
it is in the same folder as itemrare.txt

[]
standard glows


[]
changed to +9

i think the picture tells how to change the glows

Notice: Copy only the color codes, not the whole line!!!


XXXX XXXX XXXX
Red Green Blue



4. Character Editing

open characterdata.txt
its in the same folder as the itemdata.txt

now i will edit Wolf into a Genie

first you need to search for the wolf_02
if you have done just look for the lvl of your pet you want to change

[]

now paste wolf_02 over with jinn_02 (the code for the genie)
ddj is the icon of the pet

you also can change the growth of the pet
on lvl 80 your pet has got the growth 120
dunno what unit it is but its the growth xD
if you change the 120 to 180 your pet will be bigger


5. Removing Itemall and Event Windows

Itemmall Window:

open mall_notify.txt
/Media/server_dep/silkroad/event/mall_notify.txt

Code:
Open = "1"
change to

Code:
Open = "0"

Event Window:
open event_interface.txt
/Media/server_dep/silkroad/event/event_interface.txt

Code:
Open = "1"
change to

Code:
Open = "0"

6. Skill Editing

Well, I've seen a lot of wrong tutorials on some forums like SRF etc.
I've decided to make my own tut which will work for 100%

now, first of all you will need the skilleffect.txt (there are 2 skilleffect.txt)
you will need both files


open skilleffect.txt
1. - /Media/server_dep/silkroad/textdata/skilleffect.txt
2. - /Media/resinfo/skilleffect.txt

after you've opened you will see after exploring the files that there are two parts
first part there are the FALSE which means while doing the skill there will be effects like the blue effect of anti devil bow or the yellow effect of strong bow
second part there are the SHOT or ACT which means that there is an action while doing the skill like hawk summon or Soul spear soul

at first i will show you how to edit the lightning hawk (Lv 76) to fire hawk (Lv 100+) (bow skill)
search for the string:
SKILL_CH_BOW_CALL_D
you will see that there is the false line
search again after you see the ACT line

[]


then scroll to the side and you will see the skill name:
res\npc\animal\ lighthawk.bsr

[]

change it to:
res\npc\animal\ firehawk.bsr
which stands at the last line of the skill tree SKILL_CH_BOW_CALL

[]


*NOTICE:
You need to edit both skilleffect.txt files to get the new skills as a result!



Now i will edit the Anti Devil Bow - Strike (Lv 71) to Anti Devil Bow Dunno xD (Lv 100+)

coz its only an effect while doing the skill (Blue ray of Anti Devil Bow) we only need the 1. part of the skilleffect.txt file

Search for SKILL_CH_BOW_CRITICAL_D

[]

Scroll to the side after you see that string:
skill\china\force_bow_critical_b.efp

[]

edit the "b" to "c"

result:
skill\china\force_bow_critical_c.efp

[]


*NOTICE:
You need to edit both skilleffect.txt files to get the new skills as a result!



After editing both Files you can import the files manually*

*If you have got 2 files with the same name there will be a conflict which Drew_Benton's Pk2-Editor cannot deal with


All Skills:
Code:
Bicheon:
Smashing Series - SKILL_CH_SWORD_SMASH_X
Chain Sword Attack Series - SKILL_CH_SWORD_CHAIN_X
Shield Technique Series - SKILL_CH_SWORD_SHIELD_X
Blade Force Series - SKILL_CH_SWORD_GEOMGI_X
Hidden Blade Series - SKILL_CH_SWORD_KNOCKDOWN_X
Killing Heaven Blade Series - SKILL_CH_SWORD_DOWNATTACK_X
Sword Dance Series - SKILL_CH_SWORD_SPECIAL_X

Heuksal:
Annihilating Blade Series - SKILL_CH_SPEAR_PIERCE_X
Fanning Spear Series - SKILL_CH_SPEAR_SPIN_X
Heuksal Spear Series - SKILL_CH_SPEAR_FRONTAREA_X
Soul Departs Spear Series - SKILL_CH_SPEAR_STUN_X
Ghost Spear Attack Series - SKILL_CH_SPEAR_ROUNDAREA_X
Chain Spear Attack Series - SKILL_CH_SPEAR_CHAIN_X
Flying Dragon Spear Series - SKILL_CH_SPEAR_SHOOT_X

Pacheon:
Anti Devil Bow Series - SKILL_CH_BOW_CRITICAL_X
Arrow Combo Attack Series - SKILL_CH_BOW_CHAIN_X
Hawk Training Series - SKILL_CH_BOW_CALL_X
Autumn Wind Arrow Series - SKILL_CH_BOW_PIERCE_X
Break Heaven Arrow Series - SKILL_CH_BOW_NORMAL_X
Explosion Arrow Series - SKILL_CH_BOW_AREA_X
Strong Bow Series - SKILL_CH_BOW_POWER_X
Mind Bow Series - SKILL_CH_BOW_SPECIAL_X

Cold:
Cold Force Series - SKILL_CH_COLD_GIGONGTA_X
Frost Guard Series - SKILL_CH_COLD_GANGGI_X
Cold Wave Attack Series - SKILL_CH_COLD_GIGONGJANG_X
Frost Wall Series - SKILL_CH_COLD_BINGBYEOK_X
Frost Nova Series - KILL_CH_COLD_BINGPAN_X
Snow Storm Series - SKILL_CH_COLD_GIGONGSUL_X
Snow Shield Series - SKILL_CH_COLD_SHIELD_X

Lightning:
Thunder Force Series - SKILL_CH_LIGHTNING_GIGONGTA_X
Piercing Force Series - SKILL_CH_LIGHTNING_GWANTONG_X
Wind Walk Series - SKILL_CH_LIGHTNING_GYEONGGONG_X
Lion Shout Series - SKILL_CH_LIGHTNING_CHUNDUNG_X
Concentration Series - SKILL_CH_LIGHTNING_JIPJUNG_X
Thunderbolt Force Series - SKILL_CH_LIGHTNING_STORM_X

Fire:
Fire Force Series - SKILL_CH_FIRE_GIGONGTA_X
Fire Shield Series - SKILL_CH_FIRE_SHIELD_X
Flame Body Series - SKILL_CH_FIRE_GONGUP_X
Fire Protection Series - SKILL_CH_FIRE_GANGGI_X
Fire Wall Series - SKILL_CH_FIRE_HWABYEOK_X
Flame Wave Series - SKILL_CH_FIRE_GIGONGSUL_X
Fire Combustion Series - SKILL_CH_FIRE_DESCRY_X

Force:
Self Heal Series - SKILL_CH_WATER_SELFHEAL_X
Force Cure Series - SKILL_CH_WATER_CURE_X
Heal Series - SKILL_CH_WATER_CUREAREA_X
Rebirth Art Series - SKILL_CH_WATER_HEAL_X
Natural Therapy Series - SKILL_CH_WATER_RESURRECTION_X
Vital Spot Attack Series - SKILL_CH_WATER_HARMONY_X
Cure Therapy Series - SKILL_CH_WATER_CANCEL_X

"X" stands for the Book
Example:
SKILL_CH_BOW_CALL_X

SKILL_CH_BOW_CALL_A = White Hawk Summon
SKILL_CH_BOW_CALL_B = Black Hawk Summon

?. Importing the Files to the .pk2

open Drew's Pk2 Editor:

open Media.pk2:
File -> open -> Media.pk2


Automatic Single File Update:
open your file which you want to import (my file is itemdata.txt):
Automatic Single File Update -> Select File -> itemdata.txt -> Import


Manual Single File Update:
this function is used if there are two or more files with the same name but in different folders:
Example:
skilleffect.txt
\Media\server_dep\silkroad\textdata\skilleffect.tx t
\Media\resinfo\skilleffect.txt <--- this is what i will use

Manual Single File Update -> Select File -> skilleffect.txt (Folder: \Media\resinfo)
Entry Name: skilleffect.txt
Entry Folder: \Media\resinfo
-> Import!



I also support the codes for items in the pk2 files
Just ask for the item i will give you the codes!



Tutorial is written by [EXiT].cr[Y]staL^

Tools:

[

PK2-Extractor - Basic Tool
Quote:
This is a PK2 file extractor. It allows you to open up the PK2s and extract the files. Unlike the existing PK2 Extractor, this one has a few extra features. There are two modes: Explore mode and Search mode.

Explore mode allows you to navigate through the PK2 structure and selectively extract folders or files. A simple tree view control is used so when you click on entries you can see details on the file name, file path, and file size.

Search mode allows you to perform searches on the PK2 entries to find the files you wish to extract. You can search by a string found in the path or title of an entry, the file size, and entry type (file or folder). In addition to being able to just search, you can Filter results. This means you can search for all ".ddj" files of a size less than 1kb that have the phrase "skill" in them for example.
PK2-Editor - Basic Tool
Quote:
This is a fully functional PK2 Editor. With this tool, you can import in modified PK2 files as well as import your own new files into the PK2 archive. The files you import can be larger or smaller than the original, the functions used will take care of everything. However, it is important to remember that the PK2s expect files in certain formats, so trying to import a dds in place of a ddj will result in a Silkroad crash.

The main functionally implemented for the PK2 editor is: automatic single file import, automatic multiple file import, and single file manual import. The automatic imports work by searching the PK2 for the file you are importing, if only one etrny exists, it can update that entry. If more than one entry exists, it will fail and you will have to use the manual import.

-Thx goes to Drew_Benton

Edited with Drew's archive.
crYstaLxT is offline  
Thanks
25 Users
Old 07/18/2009, 10:05   #2

 
elite*gold: 260
Join Date: Aug 2008
Posts: 560
Received Thanks: 3,778
I just got a PM about this.

That package looks like the one I uploaded back at the end of 2007, the date/time stamps look right, but as you can see, there are some supposed "maleware" scans. There's nothing wrong with the files themselves, besides some AVs detecting false positives. They were written in VS 2003 and are not even packed or protected, so I don't know what updates were made in free AV scans to detect anything.

Either way, I'd still recommend people use a newer compiled version of the tools. I'll go ahead and post a new version with source included to my post so mods can approve it and people can stop using that old package. I do get a lot of questions about if the tools are safe to use and they are as long as they were the ones I originally posted or the ones I redistribute.

Generally speaking, all my tools have source code, so if you ever come about a tool that has weird virus scans, don't use it!

If you are interested in my swsro version, take a look at the for the modified version of the tools.

Here is a virus scan for the attached files in this post:


And a screenshot of the new package:
Attached Files
File Type: zip PK2_Tools_7_18_09.zip (891.7 KB, 717 views)
pushedx is offline  
Thanks
8 Users
Old 07/18/2009, 10:50   #3
 
ssj3jon's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 1,150
Received Thanks: 298
This is Nice good Work +1
ssj3jon is offline  
Old 07/18/2009, 11:39   #4
 
theoneofgod's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 3,940
Received Thanks: 2,211
Thanks for clearing that up for me Drew. I edited the main post with your PK2 tools archive,

#Approved.
theoneofgod is offline  
Thanks
1 User
Old 07/18/2009, 16:52   #5
 
elite*gold: 0
Join Date: Mar 2007
Posts: 77
Received Thanks: 112
nice guide!
hack0r89 is offline  
Old 07/18/2009, 20:38   #6
 
crYstaLxT's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 17
Received Thanks: 31
Quote:
Originally Posted by pushedx View Post
I just got a PM about this.

That package looks like the one I uploaded back at the end of 2007, the date/time stamps look right, but as you can see, there are some supposed "maleware" scans. There's nothing wrong with the files themselves, besides some AVs detecting false positives. They were written in VS 2003 and are not even packed or protected, so I don't know what updates were made in free AV scans to detect anything.

Either way, I'd still recommend people use a newer compiled version of the tools. I'll go ahead and post a new version with source included to my post so mods can approve it and people can stop using that old package. I do get a lot of questions about if the tools are safe to use and they are as long as they were the ones I originally posted or the ones I redistribute.

Generally speaking, all my tools have source code, so if you ever come about a tool that has weird virus scans, don't use it!

If you are interested in my swsro version, take a look at the for the modified version of the tools.

Here is a virus scan for the attached files in this post:


And a screenshot of the new package:

Ohh drew
long time i havent see you
you've got a new msn??

anyway thank you for the update
crYstaLxT is offline  
Thanks
1 User
Old 07/19/2009, 07:53   #7
 
solomaya's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 83
Received Thanks: 9
Thx a lot

perfect tuts
solomaya is offline  
Old 07/23/2009, 03:50   #8
 
summoner01's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 500
Received Thanks: 146
Very nice guide, although it seems the files are different in sro now. I opened Media.pk2 and extracted itemdata.txt, and all it listed was this:

ItemData_5000.txt
ItemData_10000.txt
ItemData_15000.txt
ItemData_20000.txt
ItemData_25000.txt
ItemData_30000.txt

So I looked around in the files listed, and it seemed to only show Sox ID's.

For Example: ITEM_CH_SPEAR_09_A_RARE_HONOR

The closest I could find to the one in your guide was this:
ITEM_CH_SWORD_01_A

Is that the one i'm supposed to modify? Even though it has a letter at the end of it.
summoner01 is offline  
Thanks
1 User
Old 07/24/2009, 09:09   #9
 
crYstaLxT's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 17
Received Thanks: 31
its the same...
joymax just splitted the itemdata and skilldata into parts

what exactly do you want to edit?
sos is _A_RARE
som _B_RARE
sun _C_RARE
crYstaLxT is offline  
Old 07/29/2009, 09:55   #10
 
elite*gold: 0
Join Date: Mar 2008
Posts: 101
Received Thanks: 40
can we use this on csro media.pk2 too ?
kingdrooster is offline  
Old 07/29/2009, 16:52   #11
 
killerrob's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 159
Received Thanks: 37
hey is there a pk2 code to get the auto select button for ksro?
killerrob is offline  
Old 08/02/2009, 04:03   #12
 
Colenzo's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 35
Received Thanks: 3
I had the same "problem" as summoner...just have to look arround in the listed files and you can find the items presented in this tutorial pretty easily. But I tihnk it would be good for you to update your tutorial.
Colenzo is offline  
Old 08/11/2009, 17:20   #13
 
crYstaLxT's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 17
Received Thanks: 31
Quote:
Originally Posted by Colenzo View Post
I had the same "problem" as summoner...just have to look arround in the listed files and you can find the items presented in this tutorial pretty easily. But I tihnk it would be good for you to update your tutorial.
lol the itemdata5000-30000 is just a splitting of the full itemdata...
you can easily find the codes
even if you are a newbie

there is no update needed...
crYstaLxT is offline  
Old 08/14/2009, 11:55   #14
 
neoangel11's Avatar
 
elite*gold: 0
Join Date: Nov 2008
Posts: 162
Received Thanks: 17
someone have an finish media pk2 for me with 1-10D 8D spear? =)
thats to heavy for me im not really *** in english and the programm dont work for me
neoangel11 is offline  
Old 08/25/2009, 13:09   #15
 
Low_Riders's Avatar
 
elite*gold: 20
Join Date: Nov 2008
Posts: 1,579
Received Thanks: 716
does this also work with the new client ?
Low_Riders is offline  
Reply


Similar Threads Similar Threads
[Tutorials] Visual Basic 2008
04/03/2010 - Coding Tutorials - 10 Replies
Hey, habe hier einige Tutorials für Visual Basic gefunden, mit denen ich sehr viel Erfahrung sammeln konnte. Gute Erklärungen und interessante Themen beinhalten sie. Visual Basic 2008 Tutorial #1: Hello World http://www.youtube.com/watch?v=n8ebAG2kW8w Visual Basic 2008 Tutorial #2: Eigenschaften http://www.youtube.com/watch?v=7b61KwacvuE&fe ature=PlayList&p=D8D25872FDACD909&playnext _from=PL
Autoit - Basic Tutorials +
02/12/2010 - Coding Tutorials - 3 Replies
Hallo, ich habe vor einiger Zeit mal ein paar tutorials über die Basics von Autoit verfasst, und wollte sie euch nicht vorenthalten. Ich habe ausserdem mit dem Gedanken gespielt, sie weiterzuführen. Die folgenden Tutorials dürfen nur auf mp-hacks.de oder/auf elitepvpers.com ohne meine Erlaubniss kopiert/gezeigt werden. ; ; AUTOIT TUTORIALS (C)OPYRIGHT BY BUSTI. ;------------------------------------------------ -------------------------------------------------- ---------- ; Vorweg, was...
2 basic virus tutorials
08/18/2007 - Tutorials - 4 Replies
http://www.metacafe.com/watch/771191/virus_tutoria l/ there is my video for making 2 very easy "virus". shutdown virus Make shortcut > type: shutdown -s -t 1000 -c " your text here " ( -t means time; -t 1000 = 16min time for shutdown ) ------------------------------------------------- ---------



All times are GMT +1. The time now is 13:01.


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.