How can I get running bot's name in automacro?
Moderator: Moderators
How can I get running bot's name in automacro?
I'm running 2 bots at the same time.There is a automacro will be trigger sometimes,but I just want only one bot do it.I would like add conditions like "if (accountName == myBotName) {}".How can I get current running bot's name in macro?Thanks for any hints.
Re: How can I get running bot's name in automacro?
use config options: "autoBreakTime" or plugin breakTime.pl
Re: How can I get running bot's name in automacro?
Thanks for reply.
I have used "$botname = @eval ($::char->{'name'})",it works.
I have used "$botname = @eval ($::char->{'name'})",it works.
Re: How can I get running bot's name in automacro?
Wts my name? say my name!
Code: Select all
macro saymyname {
$myname = @eval($::char->{name})
log $myname
}