How can I get running bot's name in automacro?
Moderator: Moderators
-
- Human
- Posts: 30
- Joined: 26 Jul 2011, 21:03
- Noob?: Yes
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.
-
- Developers
- Posts: 627
- Joined: 30 Apr 2008, 14:17
- Noob?: No
- Discord: ya4ept#8494
- Location: Moskow (Russia)
Re: How can I get running bot's name in automacro?
use config options: "autoBreakTime" or plugin breakTime.pl
-
- Human
- Posts: 30
- Joined: 26 Jul 2011, 21:03
- Noob?: Yes
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.

-
- Human
- Posts: 37
- Joined: 17 Oct 2013, 12:45
- Noob?: No
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
}