Jump to content
  • 0
Sign in to follow this  
prism

item_db equipment masking troubles

Question

I really don't understand why I can't get this to work. I want to make an armor that can be equipped by Sniper, Priest, Champion, Gunslinger, High Wizard and Professor. However, the masking refuses to work and it doesn't make sense.

 

0x4218900

 

This is what I have for the mask. It works perfectly except for High Wizard. Wizard mask is 200 right? If i add 200 to that value Snipers can no longer equip it. If i just do 0x800, Sniper can equip. If i do 900, it can still equip. If i do 1100 to add Wizard, it breaks. If I do 200 for just Wizard it's fine. As soon as I add 800 to any item and it goes past the 999 mark the item breaks. Why?

Edited by prism

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You're using it a bit wrong, I think?

 

This is a bit different tecnique. You're adding this masks like they are in decimal, but that "0x" shows that they are in hexadecimal mode, so count goes like:

0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF 0x10 0x11 ... and so on

So if you add up 0x800 and 0x200 you'll get 0xA00, and not 0x1000.

 

If i got everything right your mask should look like this:

  0x00000100+ 0x00000200+ 0x00000800+ 0x00008000+ 0x00010000+ 0x01000000Total: 0x01018B00
Edited by Garr

Share this post


Link to post
Share on other sites
  • 0

I gave you some wrong information. I actually wanted Sniper, Priest, Champion, Ninja, High Wizard and Professor. I was able to figure it out though with your advice about the hex code. Thanks a lot. It was pretty frustrating not knowing why it wasn't working.

Edited by prism

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.