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 04-15-2012, 10:28 PM
Furinex
Hill Giant
 
Join Date: Apr 2002
Location: Rochester, NY
Posts: 178
Default Adding a price to every item

How can I query to add a price to every item... And, if possible, maybe the use of pricemod or something so prices are somewhat understandable (loaf of bread isnt worth more than Bastard Sword of the Unholy Asskicking)? Ive removed the no drop flag off all items, now im trying to find a way to rid myself of those useless items and those items that are of a different class but could be worth some real cash if vendors actually purchased them.
__________________
U.S. Navy - Retired
17 Year EQ Veteran
Reply With Quote
  #2  
Old 04-15-2012, 10:37 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by Furinex View Post
How can I query to add a price to every item... And, if possible, maybe the use of pricemod or something so prices are somewhat understandable (loaf of bread isnt worth more than Bastard Sword of the Unholy Asskicking)? Ive removed the no drop flag off all items, now im trying to find a way to rid myself of those useless items and those items that are of a different class but could be worth some real cash if vendors actually purchased them.
This is something I used sometime ago, it is quite sloppy and you may need to add criteria to it for your liking. This actually sets items prices based on hp, damage, mana and ac values. You'll have to play around with it to get the results you want. Backup items and merchantlist before using.

Code:
update items set price = (hp * 90) + damage + (mana * 90) + (ac * 10), sellrate = 100 where  hp >10 and nodrop = 0;
update items set price = (hp * 1050) + damage + (mana * 900) + (ac * 100) + (endur * 2), sellrate = 100 where augtype > 0;
update items, merchantlist set items.price = 30123210 where items.name like '%Mottled Worg%' and items.id = merchantlist.item and merchantlist.merchantid = 80000205;
update items, merchantlist set items.price = 61123210 where items.name like '%Strong%' and items.id = merchantlist.item and merchantlist.merchantid = 80000205;
update items, merchantlist set items.price = 99123210 where items.name like '%Reinforced%' and items.id = merchantlist.item and merchantlist.merchantid = 80000205;
update items, merchantlist set items.price = 130123210 where items.name like '%Glowing%' and items.id = merchantlist.item and merchantlist.merchantid = 80000205;
-- Set Adventurer's stone to price 0 to avoid exploitation --
update items set price = 0 where id = 41000 or id = 109811;
update items set price = 0 where name like '%Summoned:%';
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 12:03 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3