I want to make an alias/script send commands to all worlds open, (such as AFK) but I don't see an option to "Send to all worlds" with an alias. Does this have to be done with a script? If so, someone want to get me started?
Global AFK
Posted by Zeno on Mon 19 Jul 2004 06:24 PM — 5 posts, 21,026 views.
See this recent post:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4461
For more information, see:
http://www.gammon.com.au/scripts/doc.php?function=GetWorldIdList
A slightly more reliable way of doing it would be (in case you had two worlds with the same name):
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4461
For more information, see:
http://www.gammon.com.au/scripts/doc.php?function=GetWorldIdList
A slightly more reliable way of doing it would be (in case you had two worlds with the same name):
<aliases>
<alias
match="afk *"
enabled="y"
send_to="12"
sequence="100"
>
<send>for each id in world.GetWorldIdList
set w = GetWorldById (id)
w.Send ("%1")
set w = Nothing
next
</send>
</alias>
</aliases>
There is the Multiple Send plugin that does that too.
Nick, your example worked, but other worlds did not catch their own world alias.
Why is that?
<alias
match="afk"
enabled="y"
sequence="100"
>
<send>rank &RAFK
who
afk</send>
</alias>
Why is that?
if its an alias, then you'll need to use Execute rather than Send.