[Guide] Adding Items to NPC

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//
  1. item_define.txt
    • Were you will be setting price
  2. item_npcstore.txt
    • Adding the items to npc
  3. interfacemsg.txt
    • New tabs and tab names
  4. 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

}
}

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
The only bit you need to edit to change the name of the tab is the 500, you go into the interfacemsg.txt Go all the way to the bottom add a new number.

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:
yeah iHeartCake as soon i back ill taste it because i want to try to make an item mall page on java XD thabk you very much!!

Jrw*
i can share the web but dont have any type of security, i made it just for fun because my fort is java and not php :P
 
No Problem! i just want to study those scripts..
send me your MSN!

---------- Post added at 04:52 PM ---------- Previous post was at 04:51 PM ----------

No Problem! i just want to study those scripts..
send me your MSN!
 
Use excel to easy way edit item_define.

Tab N = item code for exchange.
Tab O = Price

Client and server side must match value.
Don't forget to reinsert gs in server side/edit dbo ITEM_DEFINE.
 
eey guys i tried but its not working what am i doing wrong?
i changed
-the korea.pack >interfacemsg
-item_npcstore
-item_define the prices
-in the database the prices
but still kristin wont show me my changes
 
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//
  1. item_define.txt
    • Were you will be setting price
  2. item_npcstore.txt
    • Adding the items to npc
  3. interfacemsg.txt
    • New tabs and tab names
  4. 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

}
}

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
The only bit you need to edit to change the name of the tab is the 500, you go into the interfacemsg.txt Go all the way to the bottom add a new number.

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.

cant get it :(

add me to skype or yahoo messenger

skype: jeromeiris or [email protected]

yahoo messenger: [email protected]
 
Back