Hi there!
My mining bot is nearly complete, the only thing left is to get the mineral veins around. From my obj manager I'm trying to read the object's displayID and/or the text.
I tried to read the display id's from currObj + 0x8, currObj + 0x14 none of them gave me numbers like these ([List]Mines & Herb display ID's!). So I decided to read the name of the object and read everything to currobj + 10000, but I get nothing that makes sense.
here's my code:
Code:
while (currObj != 0) {
currObj = MemoryHandler.readInt(currObjPtr);
file.WriteLine("-------------------------------");
for (int i = 0; i < 10000; ++i) {
file.WriteLine(MemoryHandler.readString(currObj + 0x1 * i, 20));
}
currObjPtr = currObj + NEXT_OBJECT;
}
file.Close();
And the readString part, I tried UTF8, UTF7, UNICODE as well:
Code:
public static String readString(int address, int length) {
byte[] bytesRead = ReadMemory(address, length, processHandle);
string result = Encoding.Unicode.GetString(bytesRead);
return result;
}
and the result:
So the question is, how should I fix this code to read the proper values.
The wow version is 3.3.5 (12340).