[GUIDE]Add Items to NPC

01/27/2012 18:28 limanerg#1
Hey all:handsdown:

Make to edit tables n txt files;
Code:
_RefShopGoods | RefShopGoods.txt
_RefPackageItem | RefPackageItem.txt
_RefScrapOfPackageItem | RefScrapOfPackageItem.txt
_RefPricePolicyOfItem | RefPricePolicyOfItem.txt
Item Code to Add: PACKAGE_ITEM_CH_SHIELD_10_A
NPC: STORE_KT_SMITH_TAB2
NPC Slot: 5
Fiyat: 1000000 (1 m)
Open _RefShopGoods table n add new line
Code:
1    15    STORE_KT_SMITH_TAB2    PACKAGE_ITEM_CH_SHIELD_10_A    5    -1    xxx    -1    xxx    -1    xxx    -1    xxx
Open _RefPackageItem table n add new line
Code:
1    15    NULL    PACKAGE_ITEM_CH_SWORD_10_A    0    EXPAND_TERM_ALL    SN_ITEM_CH_SWORD_10_A    SN_ITEM_CH_SWORD_10_A_TT_DESC    item\china\weapon\sword_10.ddj    -1    xxx    -1    xxx    -1    xxx    -1    xxx
Open _RefScrapOfPackageItem table n add new line
Code:
1    15    PACKAGE_ITEM_CH_SHIELD_10_A    ITEM_CH_SHIELD_10_A    0    0    46    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx    NULL
46 = Durability
Open _RefPricePolicyOfItem table n add new line
Code:
1    15    PACKAGE_ITEM_CH_SHIELD_10_A    1    0    1000000    -1    xxx    -1    xxx    -1    xxx    -1    xxx
1000000 = Price


Last stage, edit n add files in media.pk2 as tables.
Im not professional at this works :(

Credits to CEZALAND
03/09/2012 09:44 SmilerGhost#2
You R The Best ! Thanks <3
02/11/2013 18:40 TurboLiKe#3
My problem is after i add the line in Shopgoods my client crash .... i cant start my client after this whats the problem?

here after i delete this from ShopGoods my client works...

Line:
1 15 STORE_BATTLE_ARENA_EU_TAB2 PACKAGE_ITEM_CH_TBLADE_09_C_RARE 10 -1 xxx -1 xxx -1 xxx -1 xxx
02/11/2013 18:49 YourBlackDream#4
How I make that on DuckRoad? Help please.
02/13/2013 14:55 borek24#5
thx
02/17/2013 19:02 Menorhord#6
Nice one
05/29/2013 17:16 abosalah852#7
Thanks Bro .. Im Trying IT now :D
02/21/2014 20:37 Muhab*#8
thanks so much , i will try it :D
03/21/2015 15:08 MissinGDeaTh#9
i can't get the media lines. any help ?
03/21/2015 18:25 Crue*#10
Quote:
Originally Posted by MissinGDeaTh View Post
i can't get the media lines. any help ?
open the tables and copy the lines from there and put it in your media
11/16/2015 23:52 spinal2#11
Hey How we can know 'DATA' Of each itens?

i Like add "_event" Itens D10 Sun in Shop but take Data Error!!!
05/21/2016 15:37 Anonyxx#12
i cant add item sun to npc ? who can help me ?
07/20/2016 22:43 TheGateway#13
add work, but new item cannot buyed and has no descriptions MAGattck,attackrate ... Tutorial failed...
07/22/2016 04:22 Bocc1337#14
bro this topic is like 4 years old
07/26/2016 22:36 intrepidklasse#15
any new tutorials for add a weapon or stall stuff? have the same no descriptions MAGattck,attackrate..

Reverse Return Scroll added, but cannot buy... any knows the problem?