Newbie Spellweaver
- Joined
- Jan 26, 2009
- Messages
- 50
- Reaction score
- 43
This explains how to add cash shop items to a in-game npc. Hope it helps someone. If there is already a guide for this feel free to trash it.
What you need//
NPC//
First you need to pick a npc you want the items to go on, unfortunately they are numbered not named in the npc txt. I use npc 5 [Kristin in game] its easily assessable to everyone. But you can choose which ever one suits your needs.
The bold bit is the part I added. Adding new tabs is relatively easy. So don't skimp make it organized.
Tabs//
so.
This should be the last one, you then add either 40304 or a new number it actually doesn't matter as long as its not a number already in there.
so you get this:
40304 "New Tab name"
Then go back to your npc store and add a new line should look like this:
}
tab 40304 100 0
{
some id's for items go here we'll get to that soon.
}
}
Keep in mind you can add as many tabs as you want to a npc with this format.
So now we know were the items are going and to what tabs now we need some items.
Items//
Open your item_name.txt
Pick some items you want to add. For an example lets just say were putting in 1110060 "Hot Summer Outfit (7)" & 1111001 "Alice's Townwear(30days)" . So now we have the Id's.
Lets go back to the item_npcstore.txt
}
tab 40304 100 0
{
1110060 1111001
}
}
Those items should show in game now but you still need prices.
Prices//
Go to item_define.txt
Now we need to find the sets were adding, just search the Id for "Hot Summer Outfit "
If it makes it easier you can open it in excel or you can use google docs spreadsheet which is what I use.
If you use google docs, just copy the full line you want, paste it in there.
In google docs O is the price to buy it. So edit to what you want there you go price set.
What you need//
- item_define.txt
- Were you will be setting price
- item_npcstore.txt
- Adding the items to npc
- interfacemsg.txt
- New tabs and tab names
- item_name.txt
- Id reference
NPC//
First you need to pick a npc you want the items to go on, unfortunately they are numbered not named in the npc txt. I use npc 5 [Kristin in game] its easily assessable to everyone. But you can choose which ever one suits your needs.
}
--Å©¸®½ºÆ¾
npc_store 5
{
tab 97 100 0
{
800001 800002 800003 800004 800005 800006
}
tab 226 100 0
{
806001 806021 806071 806081 806031 806041 806051 806131 806061 806111 806141 806101
}
tab 227 100 0
{
807008
}
tab 500 100 0
{
1100029 1100026 1102024 1100049
}
}
--Å©¸®½ºÆ¾
npc_store 5
{
tab 97 100 0
{
800001 800002 800003 800004 800005 800006
}
tab 226 100 0
{
806001 806021 806071 806081 806031 806041 806051 806131 806061 806111 806141 806101
}
tab 227 100 0
{
807008
}
tab 500 100 0
{
1100029 1100026 1102024 1100049
}
}
The bold bit is the part I added. Adding new tabs is relatively easy. So don't skimp make it organized.
Tabs//
- tab 500 100 0
so.
This should be the last one, you then add either 40304 or a new number it actually doesn't matter as long as its not a number already in there.
Code:
40303 "The guild can acquire a percentage of gold that is transferred to the Guild Warehouse."
so you get this:
40304 "New Tab name"
Then go back to your npc store and add a new line should look like this:
}
tab 40304 100 0
{
some id's for items go here we'll get to that soon.
}
}
Keep in mind you can add as many tabs as you want to a npc with this format.
So now we know were the items are going and to what tabs now we need some items.
Items//
Open your item_name.txt
Pick some items you want to add. For an example lets just say were putting in 1110060 "Hot Summer Outfit (7)" & 1111001 "Alice's Townwear(30days)" . So now we have the Id's.
Lets go back to the item_npcstore.txt
}
tab 40304 100 0
{
1110060 1111001
}
}
Those items should show in game now but you still need prices.
Prices//
Go to item_define.txt
Now we need to find the sets were adding, just search the Id for "Hot Summer Outfit "
If it makes it easier you can open it in excel or you can use google docs spreadsheet which is what I use.
If you use google docs, just copy the full line you want, paste it in there.
Code:
1110060 ºÒŸ´Â ¿©¸§ ³²³à(7ÀÏ) 1110060 0 1 6 10 1001 12 1 1 0 0 0 0 0 0 1 604800 1 2 0 1110060 1 0 0 0 0 300333 0 0 0 0 0 0 1962 0 0 0 0 1
In google docs O is the price to buy it. So edit to what you want there you go price set.
Last edited: