If it detects map sec_pri, it will pm a char so that it logs off, then play a alert sound, then disable AI to avoid any problems
My bot is being executed with xkore 1, so I can respond to GMs
Code: Select all
automacro jailed {
map sec_pri
run-once 1
call ohnoes
}
macro ohnoes {
do pm Player run run run
do eval Utils::Win32::playSound ('c:/alert.wav');
do ai off
release ohnoes
}
I was pretty confident it would work
But the other day I suddenly got jailed, and this happened

Luckily, the AI off part worked, because if not I would be banned now.
but even more luckily, I happened to be near the computer when it happened, because it didnt trigger any sound

it didnt try to pm the player either
what could be failing? (remember I am botting with XKORE set to hook to client)