Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 04-02-2003, 06:14 AM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

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.
__________________
Lethal Encounter
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:42 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3