Hello,
i'm trying to read all items attributes (ground, is Stackable, is Container, sprites, etc) from a custom server Medivia/tibianic .dat file.
I'm aware they are using a custom OTClient, and here is how otclient reads the .dat file:
On ThingTypeManager.cpp...
https://github.com/edubart/otclient/...ypemanager.cpp
Code:
bool ThingTypeManager::loadDat(std::string file)
On ThingType.cpp ...
https://github.com/edubart/otclient/.../thingtype.cpp
Code:
void ThingType::unserialize(uint16 clientId, ThingCategory category, const FileStreamPtr& fin)
I followed the code, but i couldn't get the correct values... they probably change somethings on their .dat structure
Questions:
how to find out the correct flags?
how the guys on otfans figured it out years ago?
usefull links:
http://tpforums.org/forum/threads/89...Tibia-dat-file
http://tpforums.org/forum/threads/50...ght=tibia+data