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 08-07-2013, 02:27 PM
zerjz3
Banned
 
Join Date: Aug 2010
Location: Sanctuary
Posts: 269
Default Query to Make All Spells No-Drop

Hey all,
Just wondering if anyone would be able to help me write an SQL query to make all items with the word Spell: in the name to be no drop.

Thanks!
Reply With Quote
  #2  
Old 08-07-2013, 03:00 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,595
Default

Here you go.
Code:
UPDATE items SET nodrop = 0 WHERE `name` like "Spell:%";
Reply With Quote
  #3  
Old 08-07-2013, 03:01 PM
zerjz3
Banned
 
Join Date: Aug 2010
Location: Sanctuary
Posts: 269
Default

Thanks so much Kingly.
Reply With Quote
  #4  
Old 08-07-2013, 03:08 PM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

Also use 'Scroll:%' and dont remember if Songs are spells or scrolls or umm songs heh
edit : songs are 'Song:%'

Last edited by rencro; 08-07-2013 at 03:12 PM.. Reason: Songs are song:
Reply With Quote
  #5  
Old 08-08-2013, 03:20 AM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

WHERE itemtype = 20;

20 = spells/songs item type.
May be a more accurate way of doing this.
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
Reply With Quote
  #6  
Old 08-08-2013, 08:08 PM
Mariomario
Hill Giant
 
Join Date: Jul 2004
Posts: 143
Default

Code:
SELECT items.id,items.name FROM items,spells_new WHERE items.scrolleffect = spells_new.id;
This should show you all spells that are connected with each other. In order to scribe a spell it needs a 'scrolleffect' id which is the same id as the spell in the spells_new table. This selects a common ground between both tables.

Code:
UPDATE items,spells_new SET items.nodrop = 0 WHERE items.scrolleffect = spells_new.id;
This should switch all those items you found with the first query to being no drop. It should alter every spell/song/tome obtainable.
__________________
Wrath - Lead Admin and Owner of Enlightened Dark: Ascension

Enlightened Dark: Ascension
Reply With Quote
  #7  
Old 03-02-2014, 02:06 AM
rabbired1
Fire Beetle
 
Join Date: Feb 2007
Posts: 6
Default

is good .... make....
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 07:33 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3