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
  #3  
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
 


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