Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Items #1

Open
Goldenheaven opened this issue Sep 24, 2019 · 2 comments
Open

Items #1

Goldenheaven opened this issue Sep 24, 2019 · 2 comments

Comments

@Goldenheaven
Copy link

const ITEM_PREMIUM_PC_CONSTANT = 262144;
const ITEM_BIND_EQUIP_CONSTANT = 1048576;
const ITEM_SPECIAL_INVENTORY_CONSTANT = 16777216;
const ITEM_ID_PART2_CONSTANT = 33554432;
const ITEM_BROKEN_CONSTANT = 134217728;
const ITEM_SEALED_CONSTANT = ‭268435456‬;
@cyberinferno
Copy link
Owner

cyberinferno commented Sep 25, 2019

Are those constants hardcoded item options? If yes on which items are those applicable?

@Goldenheaven
Copy link
Author

Goldenheaven commented Sep 25, 2019

These are part of the item id mask of ep8+, for example before premium pc theres grade/item level.

ItemID:
Part 1 of ID: 12 bits
Level: 5 bits
Premium PC: 1 bit
Bind item in equip: 1 bit
Nothing: 3 bits
Special Inventory item: 1 bit
Item id part 2 (for items with id bigger than 33554432 on cabal_msg): 1 bit

Basically these are (1 << n) and its a mask like character style.

Max ItemID of Item without options in bits:
0000 0000 0010 0000
0000 1111 1111 1111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants