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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2013, 01:09 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default Mass item DB change?

Is there a way you can do a mass item db change? for instance, lets say i wanted to increase damage of all weapons by 25%? or double HP and AC on all gear? Or make everything all/all?, using perl or is this an item editor I need?
Reply With Quote
  #2  
Old 01-12-2013, 01:27 PM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 270
Default

You can do a lot of that kind of thing with simple SQL.
Code:
UPDATE items SET damage = damage * 1.25 WHERE damage > 0
UPDATE items SET ac = ac * 2 WHERE ac > 0
UPDATE items SET hp = hp * 2 WHERE hp > 0
UPDATE items SET mana = mana * 2 WHERE mana > 0
UPDATE items SET classes = 65535 WHERE classes > 0
UPDATE items SET races = 65535 WHERE races > 0
UPDATE items SET deity = 0
Reply With Quote
  #3  
Old 01-12-2013, 01:30 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

dude youre awesome thanks!
Reply With Quote
  #4  
Old 01-21-2013, 03:41 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

Anyone know of a way to increase drop rates by zone? or a way to make pc's fearless via a quest? I dont need the quest script but more or less an example.
Reply With Quote
  #5  
Old 01-21-2013, 03:47 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

You could touch up the lootdrops and make the items more likely to drop, however I don't quite understand what you mean by "fearless", are you talking about NPC special attacks? If so, here's the link: http://www.eqemulator.net/wiki/wikka...SpecialAttacks
Reply With Quote
  #6  
Old 01-21-2013, 04:13 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

well i was hoping there was a way i could do a quick increase via mysql rather than doing mob by mob with the editor. and by fearless i mean immune to fear. idk maybe somehow the result of the quest is to give the pal/sk aa fearless to quest completers.
Reply With Quote
  #7  
Old 01-21-2013, 04:32 PM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 270
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
Reply


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 07:18 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3