Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[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:
Junior Spellweaver
Joined
Dec 24, 2004
Messages
195
Reaction score
13
wow!! look so great XD ill test it as soon as possible. Thank XD

edited:

cant find interfacemsg or item_name :p
 
Last edited:
Junior Spellweaver
Joined
Dec 24, 2004
Messages
195
Reaction score
13
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
 
Newbie Spellweaver
Joined
Sep 15, 2009
Messages
87
Reaction score
1
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!
 
Junior Spellweaver
Joined
Dec 24, 2004
Messages
195
Reaction score
13
hihihi okis ill upload tonight with a mini guide to install it because right know i must go to collegue. dont use msn or yahoo or skype anymore :p
cya bro!
 
Junior Spellweaver
Joined
Apr 30, 2006
Messages
152
Reaction score
30
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.
 
Newbie Spellweaver
Joined
Feb 26, 2006
Messages
13
Reaction score
0
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
 
Newbie Spellweaver
Joined
Jan 26, 2009
Messages
50
Reaction score
43
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

Are you only editing it client side?
 
Newbie Spellweaver
Joined
Jan 26, 2009
Messages
50
Reaction score
43
the korea.pack i edited is client side but the other files i edited are from the scrip/resource folder in the server folder:blushing:

Make sure you edit both client and server. Its all in client as well as server.
 
Initiate Mage
Joined
Sep 2, 2008
Messages
4
Reaction score
0
in server i already edit /scripe/resource.pack but i don't know it repack , it not synce client and server

it must repack ?
 
Newbie Spellweaver
Joined
Sep 15, 2011
Messages
54
Reaction score
2
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 jerome_christopher21@yahoo.com

yahoo messenger: jerome_christopher21@yahoo.com
 
Newbie Spellweaver
Joined
Jan 23, 2009
Messages
11
Reaction score
0
thanks for the guide :D definitely gonna try this one...
 
Back
Top