blackdtools / Blackd-Proxy-CLASSIC

Blackd Proxy CLASSIC
MIT License
9 stars 7 forks source link

function to read C-style char* strings in memory #16

Closed divinity76 closed 9 years ago

divinity76 commented 9 years ago

i don't know if newer versions of tibia actually use C-style char* strings (actually i'd imagine they've switched to some Unicode character set in more modern times, to accommodate chinese/japanese/etc players), but at least tibia 7.6/7.7 use C-style char* strings extensively in memory. so here's a function to read these strings from memory. (note that the tibia protocol, even back in 7.6, does NOT use c-style strings, it use a format like uint16_t bytes; BYTE[bytes] string; )