|
This is not set in database but is server side. All configuration is in one file called ItemCreate.ini. When you open it you will find something like [ItemCreate_1] and two rows of numbers. Here is what it all means.
[ItemCreate_1] – it tells Shaiya which set of items will drop under this configuration. How the set is set? The left row is actually Grade from PS_GameDefs.dbo.Items, the right one is drop chance. If you want a particular item to drop under [ItemCreate_1] just add its Grade in left column and drop chance in right. Remember to separate entries with TAB or it might not work.
Now the database. How does it know which set of grade's to use for i.e. Snob Value Box? Do a search for Snob Value Box and check ReqVg field. This is where the number from [ItemCreate_1] is inserted. I chose set 34 ([ItemCreate_34]) but you can choose any one you want and modify it to suit your own needs.
Did you notice that some values in right column go well above 100? Here's what values grater than 100 do. Regular drop chance is in range from 0-100 which is 0%-100%. You want a grade of items to always drop when a bag is used? Set it to 100. However, when you have many grades and you want all of them to give items (if drop chance is below 100 and the roll is not successful player won't get anything), BUT some should drop more often and others, like elemental lapis, should be rare, leaving 100 is not enough. This is what values above 100 do. Let's take two grades for the needs of this tutorial. Let's set first to 100% and the other to 1000%. What will happen when you use the item? The 2nd grade with 1000% will drop most of the time whereas the 1st with 100% only occasionally. It sets priority, which grade is more likely to be chosen.
If your Snob Value Box or any other item that randomly gives items doesn't
work after following the above check 'Special' field in PS_GameDefs.dbo.Items. The value should be
42, so if you find anything else change it.
|