Thread: Loot tables
View Single Post
  #7  
Old 11-26-2002, 04:02 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

If thats the case, then your multiplier should be 1, and you
have the chance set at 70 and 30 in the lootdrop table.

Or, you have it set for 7 and 3, and use a multiplier of 10.

Then, if rand%100 < (chance)*mult, you'll have the item added to the npc.

But, this isnt exclusive, it will roll once for every item on the loottable , rather than rolling for an item from a group, then rolling a rand to determine which item from the group you will get. The way it is now, theres a chance you end up with both of them, 1 , or nothing.

The better way would be..

30 % chance of getting a crown
Roll a 20.
Get a crown, now determine which one.
Roll a 80
80 corresponds to the 70-100 range for getting the Fire crown, so thats added to the npc.


Its working ok on my server, though i dont like the implementation as it works right now.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote