Quote:
This will add it to your database as a permanent spawn.
Now if you go into EQAdmin and onto the loot tab, scroll right down to the bottom where your custom spawn is and edit the probability of the items dropping. You change it from (1) to (100), where 100=1% and 1=1% chance of dropping (I think )
|
The way that it works is it takes all the loot drop chances for every lootdrop you have on the lootdrop table for that particular lootdrop_id and adds them together to form a number. It then goes through the list and generates a random number with a percentage of the whole. It the random percent is less than your chance for that item, the item drops.
Example:
You have 3 items on lootdropid 1111:
item 1001 at a chance of 80
item 1002 at a chance of 20
item 1003 at a chance of 100
the code would take all three chances and add them together for a total of 200
it would then generate a number percent of 200 and if its lower than the chance of the item its on, then the item drops. If not it goes on until it gets to the bottom of the list or it finds and item to drop.