yeah, so problem atm is that, i have no idea how am i supposed to detect it, when its displaying same message over and over again (you are busy looting)
so anyone got suggestions?..
i wish it had timestamp ;o
yeah, so problem atm is that, i have no idea how am i supposed to detect it, when its displaying same message over and over again (you are busy looting)
so anyone got suggestions?..
i wish it had timestamp ;o
drugs are baad kids.. m'kay.
Can't you just overwrite that string after you read it?
Giving it a name like: "DONE CHECK: You are busy looting" ?
Zomfg. And no, don't ask. - Dombo did it.
Could you do something like create an lua addon which logs the error messages and prints them out to the chat frame along with a timestamp and error count? Then read the wow chat log checking for the error messages. something like:
[ERR][14:22:48][12][Some Error: Error]
[ERR][14:24:04][13][Some Error: Error]
The simple answer to your question is that you can't without writing to it. As Cypher pointed out, it's safe to do so. There are about a million better ways your bot can be scanned down by Warden, so I wouldn't worry about it.
Ehmm? Define the last message? lol
string last = ""
void Method()
{
string errorMessage = LastRedErrorMessage();
if (errorMessage == last)
{
// amagawd this has showed up twice! o noes!
}
last = errorMessage
}
[16:15:41] Cypher: caus the CPU is a dick
[16:16:07] kynox: CPU is mad
[16:16:15] Cypher: CPU is all like
[16:16:16] Cypher: whatever, i do what i want
drugs are baad kids.. m'kay.
That won't work. You'd have to know in advance when an error was going to occur, which defeats the point of scanning for it.
How I do it - there is another offset where if a spell DOESN'T cast, that spell is written to memory, otherwise it's 0 on success.
So basically I try to cast a spell, see if it's 0, if it's not, then i read the red error message
(I'd share offsets but I'm on mac + it's irrelevant)