It has been a while and I'm not looking at the DB so forgive me if I get the two tables backwards, and exactly how you figure the drop percentage...
loottable_entries
ID 1 "common loot" 100%
ID 2 "semi rare items" 50%
ID 3 "rare drops" 10%
Then in loodrop_entries
loottable_ID 1 "cloth armor" 50%
loottable_ID 1 "rusty weapons" 60%
loottable_ID 2 "plate armor" 40%
loottable_ID 2 "finesteal weapons" 70%
loottable_ID 3 "diamond" 100%
so you have three possible groups of items that will drop, in group 1 you always should get something, either cloth armor, or rusty weapons. Group 2 you will only get 50% of the time. Group three only 10% but it will always result in a diamond.
Like I said, I don't remember how you actually figure out the drop rate for each item. Do the % (or chance?) have to add up to 100? I'm not sure... anyhow that is how the tables work together to create different groups of items with different drop rates.
Hope that actually helps get you on the right track.
__________________
Please read the forum rules and look at reacent messages before posting.
|