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!

Help adding items on NPC

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jun 15, 2014
Messages
20
Reaction score
2
Hello all! May I ask the community for your help?

I wanted to add items to NPC.

AddVendorItem( 0, IK3_MASK, -1, 1, 100, 100 );

First sample is on Is. Correct me if I'm wrong:
0 is the tab number (in this case, 0 is tab 1).
IK3_MASK is the ItemKind3 which is on propItem.csv.
-1 is for the job requirement. In this case, -1 means all classes are able to buy it. If put on 0 in it, I think it only allows Vagrant class on Weapons and Armors.
1 and 100 is the minimum and maximum level range of the item.
I have no knowledge about the 100 thingy, or is this for like NPC inventory limit?

Now my problem is when I put IK3_SUIT in it, and put a -1 as job requirement, it shows all items available for any class. It shows blue, green, Baruna items (but some items are not shown, it's only limited to 100 items per tab.)
I only wanted to put all the green and baruna items only.

I checked Wafor's codes in character.inc and it has different shop command

SetVenderType(1);
AddVenderItem2(0, II_CHR_FOO_COO_REMANTIS );

Even in Dior's codes, it has these
m_nStructure= SRT_STATION;

I am using sir Ketchup's K18.3.
 
Junior Spellweaver
Joined
Sep 29, 2021
Messages
133
Reaction score
26
i think you need to add__ADDSHOPITEM if you want to add item into the npc, and you can add __VENDOR_UPDATE too if you want to add different currency in npc
 
Upvote 0
Status
Not open for further replies.
Back
Top