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.
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
Even in Dior's codes, it has these
I am using sir Ketchup's K18.3.
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.