Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2015, 02:42 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default Sql

Im wanting to do change afew things in game .... i know how to do this but im wanting to know if i can run something in sql to make it quicker

first thing is change NPC races say from 211 to 478

second is change all items from nodrop to attunable

any help is appreciated

thanks in advance
Reply With Quote
  #2  
Old 06-18-2015, 02:52 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

1. UPDATE `npc_types` SET `race`=478 WHERE `race`=211;

2. UPDATE `items` SET `attuneable`=1, `nodrop`=0 WHERE `nodrop`=1;
Reply With Quote
  #3  
Old 06-18-2015, 02:54 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Note that both of these are irreversible actions. You'd have to restore the npc_types and items tables from a backup if you wanted to undo it.
Reply With Quote
  #4  
Old 06-18-2015, 03:01 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

thank you give it a try now ... if this works you saved me alot of time
Reply With Quote
  #5  
Old 06-18-2015, 06:24 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

items are still notrade even after server restart?
Reply With Quote
  #6  
Old 06-18-2015, 06:39 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Are you running shared_memory over again as well? That's what loads the items from the database into memory for the zone server to access, and it's easy to miss.
Reply With Quote
  #7  
Old 06-18-2015, 07:06 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

that fires up when i use start.bat

i compiled my own server... did not use repack or anything
Reply With Quote
  #8  
Old 06-18-2015, 07:14 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Huh. Maybe the fields aren't as straightforward as they looked.

Anybody else have an idea?
Reply With Quote
  #9  
Old 06-18-2015, 07:43 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

everything now seems notrade
Reply With Quote
  #10  
Old 06-18-2015, 07:52 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

ok upon me and players checking things it seems everything is attunable and notrade... so it kinda worked
Reply With Quote
  #11  
Old 06-18-2015, 08:01 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

You know what? I'll bet the name of the field is reversed. It should be "tradeable".

Try this:

UPDATE `items` SET `nodrop`=1 WHERE `attuneable`=1;
Reply With Quote
  #12  
Old 06-18-2015, 08:11 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Crud... and you know what? If the field name is backwards, then the first UPDATE command did the wrong thing. It turned the TRADEABLE items into Attunable No-Trade, leaving the No-Trade items alone. Gah.

Do you have a backup of the items table?
Reply With Quote
  #13  
Old 06-18-2015, 08:14 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

and now everything is notrade :s
i have a full back-up so just need to scroll and find items if theres no way to fix
Reply With Quote
  #14  
Old 06-18-2015, 08:14 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

and i meant to put everything is notrade... nothing is attunable
Reply With Quote
  #15  
Old 06-18-2015, 08:16 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

how about a command to take off notrade then a seprate one to make everything attuneable? i tried this
UPDATE `items` SET `nodrop`=0 WHERE `nodrop`=1;
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 05:02 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