I'd like to keep working on it, and I agree, thats a better way to implement it..
A new table, for example..
LOOTCLASS : Cloth Armor
Cloth Shirt (Chance of Drop)
Cloth Hat (Chance of Drop)
Cloth Tunic (Chance of Drop)
So you could make tables for all the classes.
Then, you could just make the lootdrop_entries lootdrop id a specifier to the lootclass and you could randomly select 1 item out of the list on a successful roll, or randomly pick one and roll on it.
I'd even throw in a extra random factor so on a 1/10 ~ 1/100 chance you get multiple drops out of the same LOOTCLASS table.
I like it ! I'll work on implementing if anyone is interested..
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|