How to add item dro drop:
Open npcdata and find row with mob you want make to drop Item.
There are two positions you should be interested in:
corpse_make_list={} for spoil
and
additional_make_multi_list={} for normal drop
Something about format:
Let's start with additional_make_multi_list.
Drop is splited into "categories" then you have:
additional_make_multi_list={cat_1;cat_2;cat_3;...; cat_n}
Where cat_X is a category that has format like that:
{{item_1;item_2;...;item_m};catRate}
where:
catRate - chance that anything will drop from that category
format of item_X is :
{[item_name];min;max;chance}
item_name - you know
min - min amount
max - max amount
chance - .... (explain below)
How server checks what mob droped:
For each category it's checking by catRate and if success, then its making next step:
All item chances in category sum to 100. Why ?
From one category you can get only ONE type of item in it. if category looks like:
{ { {[cokes];1;1;20};{[coal];1;1;80}}; 60}
Then you have 60% that anything will drop and they server checks what you get.
[1-20] - you get cokes
[21-100] - you get coal.
In spoil there is no categories.
To add item:
Best way is to add new category. If you want it to drop with 4% then:
additional_make_multi_lis={.....;{{[dualcraftstamp];1;1;100};4} }
Where ...... are old categories.
|