Set all items to be gnome usable?
How would I go about setting all items to be gnome usable? That way I can turn any class into a gnome and they would work.
The race field in the items table seems a bit odd to me (and class for that matter). I was expecting to see a column per race y/n, but I guess thats not how it works here... Or even better maybe, just race all if that is easier. |
Well, I answered my 2nd question. Just set all races to 65535.
Is there no trick to make everything gnome usable though? I would rather do that if possible... |
You mean add Gnome to every item's existing race list? No.
You could set everything Gnome only or ALL like you suggested above. |
Looks like the race entry uses individual bits in a 16 bit number to set which races can use it. If you could find an item that is gnome only already, then I think I can give you a query to allow add gnome to every item.
|
It's a bitmask.
Here's an excerpt from the Wiki: Quote:
Code:
UPDATE items SET races = races & 2048 |
where is the drakkin btw?
|
BTW the bitwise operations are a godsend for cases like this.
GeorgeS |
Quote:
Code:
#define human_1 1 |
WARNING:
UPDATE items SET races = races & 2048 Makes all items gnome only (or in many cases bugs them to not have a race listed). It does not add gnome to all items. What I am trying to do is add gnome to all items. Maybe George can make an feature for eqitems to add a race to all items? :) |
To add to the race list instead of replace it, you want to use a bitwise OR, not AND.
Code:
UPDATE items SET races = races | 2048 |
Quote:
Actually I am thinking of adding this, perhaps to a new tool that does mass alterations of this sort... GeorgeS |
All times are GMT -4. The time now is 01:48 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.