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.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-05-2013, 01:31 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

it's not pretty, and it's probably not efficient, but it works.

Code:
select
  items.id, items.name
from
  items
left outer join
  merchantlist
on
  items.id = merchantlist.item
inner join
  spells_new as spells
on
  substr(items.name from 8) = spells.name
where
  scrolltype = 7
and
  merchantlist.item is null
and
  (classes1 < 75 or
   classes2 < 75 or
   classes3 < 75 or
   classes4 < 75 or
   classes5 < 75 or
   classes6 < 75 or
   classes7 < 75 or
   classes8 < 75 or 
   classes9 < 75 or
   classes10 < 75 or
   classes11 < 75 or
   classes12 < 75 or
   classes13 < 75 or
   classes14 < 75 or
   classes15 < 75 or
   classes16 < 75)
order by
  items.name;
this should show you a list of item ids and scroll names for all spells below level 75 (change the number to whatever you want) that aren't available on merchants. took just over 22 seconds to run on my slow ass laptop with a number of other things open in the background.
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote
  #2  
Old 03-05-2013, 06:31 PM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

You can get the next available with this sql if you like, not sure you would want to automate it though...If you did you would end up having to query the db to discover where it put your recipes anyways..

Code:
SELECT t1.id + 1
FROM tradeskill_recipe t1
WHERE NOT EXISTS (
    SELECT * 
    FROM tradeskill_recipe t2
    WHERE t2.id = t1.id + 1
)
LIMIT 1
Me personally I put all my customs after the last used id of a table with some cushion...Then I can insert in a given range. I like to have a record of what my sql is doing, and automating takes that away..If you are using excel then you can easily build an sql Insert query from it..

And c0ncrete, nice sql, i went a different route to remove my spells from merchants and loot drops but this is very cool, just add this to get it imported into excel if on windows(prob alread know this)

Code:
INTO OUTFILE 'c:/reneq/non_merchant_spells.csv'
FIELDS TERMINATED BY '\,'
LINES TERMINATED BY '\n';
Reply With Quote
Reply

Thread Tools
Display Modes

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:40 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