Guides by Sunrise. Thanks to everyone who help me to learn this about KO =)
Thanks to the PJKO team. Special thanks to Knightonline.cn for the new Template.
Visit our Homepage/Forum at:
http://www.knightonline.cn/bbs/forum-58-1.html

Back to index
BACK
3.1 - Make NPC's sell +x items


Ok, you made a vendor NPC and it's spawn point? Good. Now you sure want to determine exactly what he sells, instead of cloning some other NPC? Let's do it.
So now lets take a closer look at the iSellingGroup.
It determines what exactly the vendor sells. 0 is nothing, of course.
An example for a Sellinggroup would be 199000.
The first 3 digits are telling what items are sold. You can look up which items belong to group 199 in your item_org.tbl in your data folder.
to get a tbl editor look here (need to be registered): http://projectko.enko.net/forum/showthread.php?t=29
The last column is the group of the item. You can also change the group, but you need to change it in the db, too. (ITEM_BASIC table, last column) Otherwise you will just see it in the store and won't be able to buy it...
Ok, now lets go to our group 199000. The last digit determines, how many +x the items will have. 0 would no bonus. 1 would make it +1, 2 would be +2 etc...
If you want to give them elemantal damage, look at the next guide.
 

NEXT GUIDE