Automacro failing to execute some commands when jailed

International

Moderator: Moderators

Zolom7
Noob
Noob
Posts: 8
Joined: 22 Jun 2008, 22:21
Noob?: No

Automacro failing to execute some commands when jailed

#1 Post by Zolom7 »

I made this macro to detect if I am put in jail.

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

Image

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)
KoreGhost
Developers
Developers
Posts: 124
Joined: 28 Mar 2011, 12:48
Noob?: No
Location: Brazil

Re: Automacro failing to execute some commands when jailed

#2 Post by KoreGhost »

Code: Select all

do eval Utils::Win32::playSound('C:\aler.wav')
Zolom7
Noob
Noob
Posts: 8
Joined: 22 Jun 2008, 22:21
Noob?: No

Re: Automacro failing to execute some commands when jailed

#3 Post by Zolom7 »

I removed the ';' in the end, but it has worked for other bots that way

anyway, I wonder why it didnt pm the char