Jump to content
  • 0

Applicable Jobs Help


_Dynosawr_

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   10
  • Joined:  05/14/12
  • Last Seen:  

I wanted to know the format for Jobs in the item database;

(From http://rathena.org/wiki/Custom_Items)

  • Job: Which jobs this item is available for. Values below can be combined to achieve availability for multiple job classes, i. e. 0x2|0x4 -> 0x6 (Swordman+Mage)

(S.) Novice (2^00): 0x00000001

Swordman (2^01): 0x00000002

Mage (2^02): 0x00000004

Archer (2^03): 0x00000008

Acolyte (2^04): 0x00000010

Merchant (2^05): 0x00000020

Thief (2^06): 0x00000040

Knight (2^07): 0x00000080

Priest (2^08): 0x00000100

Wizard (2^09): 0x00000200

Blacksmith (2^10): 0x00000400

Hunter (2^11): 0x00000800

Assassin (2^12): 0x00001000

Unused (2^13): 0x00002000

Crusader (2^14): 0x00004000

Monk (2^15): 0x00008000

Sage (2^16): 0x00010000

Rogue (2^17): 0x00020000

Alchemist (2^18): 0x00040000

Bard/Dancer (2^19): 0x00080000

Unused (2^20): 0x00100000

Taekwon (2^21): 0x00200000

StarGladiator (2^22): 0x00400000

Soul Linker (2^23): 0x00800000

Gunslinger (2^24): 0x01000000

Ninja (2^25): 0x02000000

All Classes : 0xFFFFFFFF

Every Job Except Novice : 0xFFFFFFFE

Are those accurate or is the format different? Because when I looked in my item_db, it says "4294967295" as all jobs.

Edited by Joey
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   5
  • Joined:  06/06/12
  • Last Seen:  

yes thats accurate, when it queries in database, the 0xFFFFFFFF is converted to decimal. vice versa,

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Yes, these are accurate.

0xFFFFFFFF (in hex) is equal to 4294967295 (in decimal).

In the /db/ files and in the SQL files, they are written as hexadecimal numbers because it's easier to see the on/off bits.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   10
  • Joined:  05/14/12
  • Last Seen:  

Ah okay, thanks alot guys! ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   35
  • Joined:  12/13/11
  • Last Seen:  

somone should update these decimals into the wiki for sql =o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   10
  • Joined:  05/14/12
  • Last Seen:  

What are the decimals anyways? o.o *has no idea and needs to find out*

Edit: I figured them out, nevermind.

Edited by Joey
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

somone should update these decimals into the wiki for sql =o

like list the hexadecimal numbers and their decimal equivalents next to each other? Custom_Items#Structure

(S.) Novice         (2^00): 0x00000001
Swordman            (2^01): 0x00000002
Mage                (2^02): 0x00000004
Archer              (2^03): 0x00000008
Acolyte             (2^04): 0x00000010
Merchant            (2^05): 0x00000020
Thief               (2^06): 0x00000040
Knight              (2^07): 0x00000080
Priest              (2^08): 0x00000100
Wizard              (2^09): 0x00000200
Blacksmith          (2^10): 0x00000400
Hunter              (2^11): 0x00000800
Assassin            (2^12): 0x00001000
Unused              (2^13): 0x00002000
Crusader            (2^14): 0x00004000
Monk                (2^15): 0x00008000
Sage                (2^16): 0x00010000
Rogue               (2^17): 0x00020000
Alchemist           (2^18): 0x00040000
Bard/Dancer         (2^19): 0x00080000
Unused              (2^20): 0x00100000
Taekwon             (2^21): 0x00200000
StarGladiator       (2^22): 0x00400000
Soul Linker         (2^23): 0x00800000
Gunslinger          (2^24): 0x01000000
Ninja               (2^25): 0x02000000
All Classes               : 0xFFFFFFFF
Every Job Except Novice   : 0xFFFFFFFE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...