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

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-23-2011, 12:25 PM
strider51
Sarnak
 
Join Date: Jan 2011
Posts: 77
Default Items - prices and tweaks for solo servers.

Hello all.
On my solo server, I've changed the items and pricing around to create a better experience for me. I thought I'd share these scripts.

1. Make everything droppable, and no Lore (some crazy good weapon combinations out there now)
2. Add a reasonable price to everything so that I can at least vendor the item to make plat to purchase spell casts and training (custom NPCs).
3. Remove all level caps on items so that I can twink out an ALT with awesome stuff for fun.


note: number 2 is done with a "pricemod" that takes into account item stats. It works well with weapons, and will only apply to items where the pricemod is positive. Here is a query to just see what the pricemod will be for items (does not alter tables)

--QUERY TO SEE THE PRICE MOD FOR ITEMS (BEFORE ADDING PRICES ( it looks for anything with price = 0) NOTE THIS IS COMMENTED OUT (OR SHOULD BE!)
--select id, name, price, damage, (name+ aagi+ ac+ acha+ adex+ aint+ asta+ astr+ attack+ awis+ damage+ endur+ dr+ fr+ haste+ hp+ regen+ mana+ mr+pr+range) as pricemod from items where price = 0 and (name+ aagi+ ac+ acha+ adex+ aint+ asta+ astr+ attack+ awis+ damage+ endur+ dr+ fr+ haste+ hp+ regen+ mana+ mr+pr+range)> 0;


Here are the actual queries that I used.


-- ITEMS AND PRICES (only for price=0 items)
UPDATE variables SET `value`='1' WHERE `varname`='MerchantsKeepItems';
UPDATE variables SET `value`='1' WHERE `varname`='DisableNoDrop';
INSERT INTO variables (`varname`, `value`, `information`) VALUES ('disablelore', '1', 'disables lore on items');

-- SET PRICE to the pricemod * 20,000 (or 20 plat)
update items set price =
(aagi+ ac+ acha+ adex+ aint+ asta+ astr+ attack+ awis+ damage+ endur+ dr+ fr+ haste+ hp+ regen+ mana+ mr+pr+range) * 20000
where price = 0
and (aagi+ ac+ acha+ adex+ aint+ asta+ astr+ attack+ awis+ damage+ endur+ dr+ fr+ haste+ hp+ regen+ mana+ mr+pr+range)> 0;

-- SET the price = the id on the rest of the items (more of a best guess here).
update items set price = id where price = 0;


-- NOW every item should have a price;

-- REMOVE ALL REQUIRED AND RECCOMENDED LEVELS ON ITEMS
update items set reclevel =0;
update items set reqlevel =0;



I hope that this is helpful to someone!!!

Thanks,

PS: remember always backup your tables before editing!
-mysqldump -u root -p eqdatabasename items > itemsTableBackup.sql
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 06:54 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