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
  #2  
Old 08-20-2012, 03:08 AM
Mariomario
Hill Giant
 
Join Date: Jul 2004
Posts: 143
Default

If you are wanting to find the entire length of a string contained anywhere within the words you would need to use a % wildcard surrounding the name you want to find. Use this query instead:

SELECT * FROM items where Name like '%Crude Defiant%';

This will return all items containing the words Crude Defiant. After that you can add in whatever extra you want, just make sure your surrounding the string with the % wildcard.

Edit::

I forgot to add in for setting the sell rate as well. You would just adjust your parameters as well for whatever you want your sell rate to be for the gear. Your generic statement would be:

Update items set sellrate = 1 where Name like '%Crude Defiant%';

Update items set sellrate = 2 where Name like '%Simple Defiant%';

and so forth.

I would honestly suggest just adjusting your price for the items though. The price is expressed in copper pieces and just know that 1000 CP = 1 PP. So using this method say I wanted all Crude Defiant gear to cost someone 50 platinum each piece. 50 x 1000 = 50,000 so you would input into the query:

Update items set price = 50000 where Name like '%Crude Defiant%';

If you wanted to set the weapons to a different price than the armor you could alter your statement to something like:

Update items set price = 60000 where Name like '%Crude Defiant%' and damage > 0;

This would target only the Crude Defiant weapons as they contain a damage amount. There are many ways to alter the statement to target only the particular group you want effected.

You can tweak it from here.
__________________
Wrath - Lead Admin and Owner of Enlightened Dark: Ascension

Enlightened Dark: Ascension
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 09:49 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