• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Add another attribute

sirakx

Member
Joined
Feb 23, 2015
Messages
50
Solutions
1
Reaction score
8
I'm trying to add an attribute to the code. All good at the moment of adding the attribute I only have the detail that does not read it for a condition that I do not know what hexadecimal number I should put.

img:

Sin_t_tulo1.png


And this are the functions with which I have conflict I do not know what hexadecimal value I have to put in order for the condition to be met. Could someone help me?

Sin_t_tulo.png
 
Solution
I'm trying to add an attribute to the code. All good at the moment of adding the attribute I only have the detail that does not read it for a condition that I do not know what hexadecimal number I should put.

img:

Sin_t_tulo1.png


And this are the functions with which I have conflict I do not know what hexadecimal value I have to put in order for the condition to be met. Could someone help me?

Sin_t_tulo.png
Use bitwise-or to get the new hex value:
(0x7FFE13 | (1 << 23)) if it's an int attribute or (0x1EC | (1 << 23)) if it's a string attribute.

In Lua 5.3:
Code:
local mask = 0x7FFE13
local bit = 1 << 23
print("0x" .. ("%x"):format(mask |...
I'm trying to add an attribute to the code. All good at the moment of adding the attribute I only have the detail that does not read it for a condition that I do not know what hexadecimal number I should put.

img:

Sin_t_tulo1.png


And this are the functions with which I have conflict I do not know what hexadecimal value I have to put in order for the condition to be met. Could someone help me?

Sin_t_tulo.png
Use bitwise-or to get the new hex value:
(0x7FFE13 | (1 << 23)) if it's an int attribute or (0x1EC | (1 << 23)) if it's a string attribute.

In Lua 5.3:
Code:
local mask = 0x7FFE13
local bit = 1 << 23
print("0x" .. ("%x"):format(mask | bit):upper())

Output: 0xFFFE13
 
Solution
Back
Top