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 12-19-2009, 10:29 PM
robert19's Avatar
robert19
Fire Beetle
 
Join Date: Feb 2005
Posts: 21
Default Mysql item editing question?

Hi, I was wondering if I done this correctly? before I test it.

I wanted a way to mass add aug slots to items by using reqlevel.

update items set augslot1type = 192, augslot1unk = 1 where ReqLevel = 85;

the value 192 in augslot1type is the combined value of aug type 7 and 8 combined, I assume this would make the aug slot useable for type 7 and 8 augs in-game.

Any feedback will be greatly appreciated...
Reply With Quote
  #2  
Old 12-19-2009, 10:46 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Quote:
Originally Posted by robert19 View Post
Hi, I was wondering if I done this correctly? before I test it.

I wanted a way to mass add aug slots to items by using reqlevel.

update items set augslot1type = 192, augslot1unk = 1 where ReqLevel = 85;

the value 192 in augslot1type is the combined value of aug type 7 and 8 combined, I assume this would make the aug slot useable for type 7 and 8 augs in-game.

Any feedback will be greatly appreciated...
This would set all items with a required level of 85 to have aug slots of 7 and 8 (assuming 192 is correct for that). However, this will effectively remove any other allowable types from the 1st slot. You'll want to use a bitwise OR to make it work correctly:

Quote:
UPDATE items SET augslot1type = (augslot1type | 192), augslot1unk = 1 WHERE ReqLevel = 85
That way, they'll keep any existing types.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #3  
Old 12-19-2009, 11:02 PM
robert19's Avatar
robert19
Fire Beetle
 
Join Date: Feb 2005
Posts: 21
Default

Thanks for the help, thats exactly what I was looking for!
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 06:55 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