classes/slots meaning?
there is a column called "classes"
but that is a numbers. i know 32767 = all classes. there's some algorithm to convert it to all, war only, caster only, bla bla bla. but i dont know how. so as slots. anyone got a good algorithm willing to share? I am writing a program to read the item db (dumpeditems.sql) and calculate the "points" based on formula for my guild looting system. so understanding that kind of numbers meaning would help me a lot. Thank you very much |
The values for classes are defined in classes.h I believe, you just need to add up the values for the classes that can use it.
*Edit* You'll see soemthing similar to this in classes.h: Code:
#define warrior_1 1 Hope this helps. |
could i get the list of "classes" by given any of a number?
instead of giving the classes and calculate the number. thanks for your reply tho, Monrezz~ |
The list was in the quote I gave you...
|
This is in the wrong forum Ballet. You should post this in 3rd party tools, if you plan on making an EQemu tool, or in developement.
|
oh. sorry.
could Moderator move the post to there? |
Quote:
what i mean is, if the number is exact the number defined in the class.h. that's pretty straight forward to "extract" the class. but if the number is something like 4128 how do you "calculate" it stands for druid + mage base on the information in class.h? |
Do you mean how can you work out what classes can use it by working backwards (you are given a number, and you work out from that number the classes that can use it)?
If so, you work your way up the list by taking away. Take away the largest numer you can, then the next largest...etc Eg, if you're given 4128 you take away the largest (4096) which leaves you with 32...this is a complete number so ti stops there. So Druid and Mage can use. If the number was 17536: 17536 - 16384 (BeastLord) = 1152 1152 - 1024 (Necro) = 128 128 = (Bard). So an item with class value of 17536 can be used by Beastlord, Necro and Bard. As soon as you get to a complete number that you can asign to a class you stop (eg don't take away 32 from 64). |
It would probably make more sense if you converted the number to binary since that's how it's being used. One class to a binary position; 1 = useable, 0 = not. 0100010010000000 in binary, for example, is the same as 17536 in decimal and it's easier to see which classes are being allowed.
|
All times are GMT -4. The time now is 06:22 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.