Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 01-21-2013, 04:32 PM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 269
Default

There are two approaches you could take, depending on what you mean by drop rates.
In loottable_entries you could manipulate multiplier, mindrop, and droplimit.
The other option is to adjust chance or multiplier per item in lootdrop_entries.

That by itself is not especially difficult until you throw in the by zone limitation.

You could cross reference spawns, but generally PEQ prefixes NPC ID's with the zone number and counts up with the trailing 3 digits.
In these examples we're using Befallen, or zone ID 36.

Loottable Level:
Code:
UPDATE loottable_entries RIGHT JOIN npc_types USING(loottable_id) SET multiplier = multiplier + 1, droplimit = droplimit + 1 WHERE npc_types.id LIKE '36___'
Item Level:
Code:
CREATE TEMPORARY TABLE tmp_ldids (ldid INT(11), PRIMARY KEY (ldid));

REPLACE INTO tmp_ldids
(SELECT DISTINCT(loottable_entries.lootdrop_id) FROM loottable_entries RIGHT JOIN npc_types USING(loottable_id) WHERE npc_types.id LIKE '36___');

UPDATE lootdrop_entries SET chance = chance * 2 WHERE lootdrop_id IN (SELECT ldid FROM tmp_ldids);

UPDATE lootdrop_entries SET chance = 100 WHERE chance > 100;
The last set of queries have to be ran together from the same connection because of the temporary table. I tried to avoid using one but it was really really slow.
Reply With Quote
 


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 01:53 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