• 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!

Read BLOB data

SpiderOT

™ツʂριԃҽɾσƚ➽ ٩(•‿•)۶★彡
Joined
Sep 29, 2008
Messages
1,062
Solutions
9
Reaction score
288
Location
Egypt/cairo
Hello,

could someone tell me how to read blob data with lua?
like from player_items field "attributes"
would be great if someone can give example with lua or just the sql query xD
Thanks
 
Slawkens (TFS developer) sad last time that its no way to read those attr from lua level.
You must wait some time if u really want to read it, but maybe you can do it another way...
What do u want to exactly do?
 
it is hard to edit it, read it shouldn't be that hard xD and i will use it for anti dupe system also might release it ;)
Gurrha : it just give list with 1 or 0
 
yup, the attributes are binary/bitwise?. if you learn how are they saved, this could be easier and you might even be able to write a Lua function for parsing the bits
 
Format by Stian
Code:
uint16_t fields
for each fields:
uint16_t slen
string key = position in read + 1 to position in read + slen
uint8_t type (1 for string (same method as the two fields over here), 2 for int (32bit), 3 for float (32bit) and 4 for bool (1bit))
<type> attribute = position in read to position in read + size
but i have no idea what is it xD
 
Back
Top