[Guide] Re Create Weapon

04/07/2012 17:14 Keyeight#1
this tut made for who wanna Re Creat new weapons based on the old weapons
i dont know if it here or no but i searched alot and didnt find it here

i know my english is bad so dont cat like a teacher and try to say your english is bad i (already know that)

PHP Code:
[PHP]
In this Tutorial Series i will try to teach you how to edit your Media.pk2 step by setp.
This iss the first of many Tutorials and now i will try to explain how to reCreate a weapon 
[/PHP]


Explanation
PHP Code:
What did i mean with "reCreate" it mean that we select a old Weapon and make a new based on this Item simple example iss Legendary 2-H Sword as CH Blade 
Part 1 - Setting Up

TOOLS THAT YOU WILL NEED

Pk2 extractor & editor

Text Editor

Your database and server

--------------------------------------------------------------------------


You will be editing the following files in your Media.pk2:

itemdata_45000.txt

itemoption.txt (isnt importent)

TO DO - Extract the files into a folder.

--------------------------------------------------------------------------

You will be editing the following database tables:

THESE HANDLE YOUR ITEMS

_RefObjCommon

--------------------------------------------------------------------------

Part 2 - Database Entries

I will start with this first because there can be Problem with IDs


This part will use the following tables:
_RefObjCommon

Explanation
PHP Code:
_RefObjCommon basically has every single itemcharactermonster and building that the game uses, if is not here then you can not use it anywhere else in the database
--------------------------------------------------------------------------

First we have to use this Query to find out which ID we have to use
Code:
USE SRO_VT_SHARD
DECLARE @CommonID INT
DECLARE @CommonID_old INT
DECLARE @ItemLinkID INT
DECLARE @ItemLinkID_old INT
SET @CommonID = (SELECT ID FROM _RefObJCommon WHERE ID = (SELECT MAX(ID) FROM _RefObJCommon))+1
SET @ItemLinkID = (SELECT ID FROM _RefObJItem WHERE ID = (SELECT MAX(ID) FROM _RefObJItem))+1
print 'New Common ID you have to use: '+cast(@CommonID as varchar(15))
print 'New Common Link ID you have to use: '+cast(@ItemLinkID as varchar(15))
SET @ItemLinkID_old = (SELECT Link FROM _RefObJCommon WHERE CodeName128 = 'ITEM_EU_TSWORD_11_SET_B_RARE')--Your Item Name
SET @CommonID_old = (SELECT Link FROM _RefObJCommon WHERE CodeName128 = 'ITEM_EU_TSWORD_11_SET_B_RARE')--Your Item Name
print 'Old Common ID: '+cast(@CommonID_old as varchar(15))
print 'Old Common Link ID: '+cast(@ItemLinkID_old as varchar(15))
Code:
SELECT * FROM _RefObjCommon WHERE ID = 'Old Common ID'
SELECT * FROM _RefObjItem WHERE ID = 'Old Common Link ID'
TO DO - Copy both rows into a new txt file and it should look like this (If u use my item name) :


Explanation
PHP Code:
[Red markedThis is the Common ID
[Orang markedThis is the Item Link id
[Yellow MarkedThis iss the kind of weapon (for 2H) New Codes are : (Spear 14 Blade 2) for more codes select a random CH Weapon from Database and look at TypID8
[Green MarkedWhich Country can use this item Neutral 1 Europe 2 China
[
Blue MarkedItem name (Change this for example from EU to CH 
Now change : Red marked to your New Common ID , Orang marked to Item Link ID , Yellow to your king of Weapon (at this weapon 2) and the green marked to 3

--------------------------------------------------------------------------

TO DO - Past the rows into _RefObjCommon and _RefObjItem.

--------------------------------------------------------------------------

Part 3 - Media.pk2 Entries

After you have finished the work on Databse the client side iss easy
Copy both lines from _RefObjCommon and _RefObjItem into a new txt file and edit them in 2 simple steps:

Step1:
Past the lines in 1 row of a txt file

Explanation
Code:
[Orang marked]Link number and Item ID (_RefObjItem)
Step2:
Delete the Link ids and the ID (Marked Orang and Red)

PHP Code:
[COLOR="red"]25679[/COLOR] [COLOR="red"]ITEM_CH_TSWORD_11_SET_B_RARE[/COLOR] ?????_?? xxx SN_[COLOR="blue"]ITEM_CH_TSWORD_11_SET_B[/COLORSN_[COLOR="Blue"]ITEM_CH_TSWORD_11_SET_B[/COLOR]_TT_DESC 0 0 3 1 6 [COLOR="Yellow"]8[/COLOR180000 [COLOR="Lime"]1[/COLOR6 1 1 1 255 3 1 1 1 0 0 12540000 5427 8141 0 9000 4389000 1 101 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 item\etc\weapon\eu_tsword_11_set_b.bsr item\etc\drop_eu_equip_rare.bsr item\europe\weapon\eu_tsword_11_set_b.ddj xxx xxx 1 2 0 0 31 40 81 121 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 2 1 18 2492 2638 3046 3224 81,8 0 0 0 0 0 3511 3876 4291 4738 0 0 0 0 123 259 0 2 15 1 ITEM_EU_TSWORD_12_A_RARE 1 ITEM_EU_TSWORD_12_B_RARE     1 ITEM_EU_TSWORD_12_C_RARE -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx -1 xxx 3 ?? ??? ?? ?? ? 9 0 0 
TO DO - Past the row into your itemdata_45000.txt and import it into your Media.pk2

Part 3 - Media.pk2 Entries (Glow)

Add this row to your itemoption.txt

Code:
ITEM_CH_TSWORD_11_SET_B_RARE 1
Dont try to Copy my lines from this Tutorial because the ID arent changed


I hope you like this Guid guys this tut was by Mangnyang not by me

i just try to get new tut here
04/07/2012 17:17 ™_Bassm_™#2
nice
ty
04/07/2012 18:02 Keyeight#3
thx dude hope all comments come like this one :D
04/07/2012 18:14 skinner✔#4
Quote:
Originally Posted by ™_Bassm_™ View Post
nice
ty
Just another useful post from bassm.:facepalm:
04/07/2012 21:31 ✗EpicSoul✗#5
thx dude for thxing my friend who thxed you...
04/07/2012 22:07 •ᵔBeGodOfWarᵔ•#6
thanks , great guide
04/07/2012 23:04 Keyeight#7
Quote:
Originally Posted by ✗EpicSoul✗ View Post
thx dude for thxing my friend who thxed you...
:rolleyes:

thx guys i hope you like it
04/08/2012 02:55 BestOnWorld#8
Good Work
Thanks
04/08/2012 04:05 PortalDark#9
Quote:
Originally Posted by ™_Bassm_™ View Post
nice
ty
seriously dude
im not to flame, but most of all your post(if not all) are te same, is like a copypasta
04/08/2012 04:28 ✗EpicSoul✗#10
Quote:
Originally Posted by PortalDark View Post
seriously dude
im not to flame, but most of all your post(if not all) are te same, is like a copypasta
maybe he doesn't like changes. :cool:
08/03/2012 14:15 olci99#11
n1
08/03/2012 14:30 razvan14abx#12
Did u copy pasta from rz?
08/03/2012 21:52 KraL*#13
good work, keep it up
08/04/2012 01:28 daser25#14
video please
08/04/2012 01:55 AceSpace#15
-Request to close
Its old,and he did copy/paste it