View Single Post
  #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