Items by Era
Is there any way to filter items by Era/expansion? I am thinking not, but I was wondering.
|
I assume you could filter using JOINs on the loot and zone tables to pull only stuff from certain expansions based on the expansion column in the zone table. Keep in mind, this query is huge, so it takes forever to run, especially since it's pulling based on EVERY zone in an expansion.
Code:
SELECT DISTINCT i.* FROM items i |
I would imagine item ID ranges would more or less line up with expansions, so you may be able to use a query like that to figure out the lowest and highest item id for each expansion, which would make for much faster queries once you've got the list.
|
I might go with Kingly Crabs suggestion but I even think that would not work. Since some items are quest only summoned, you could not get anything accurate that way. I may post something on PEQ and see if those guys know. I could definitely add an expansion column to my own database and keep track of it, if I could find an accurate way of doing this.
|
There's a .sql that comes with the PHP Editor (expansions.sql):
Code:
alter table zone add `expansion` tinyint(3) NOT NULL default 0; |
First off just wanted to say sorry for bumping an old thread with a newb question, but..
I have put my box back up and had been considering for a while the idea of adding an expansion column to my db; would this cause any issues ingame, or is there a particular spot I should put it? *edit* I had considered doing this with both npcs and items Thanks in advance :D *edit edit* figured it out, re-reading Kingly_Krab's post above answered all the questions I'd have about this, thanks for this post |
Haha, glad to be of assistance. I'd like to check out your server if it's open to the public.
|
All times are GMT -4. The time now is 02:04 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.