Global AFK

Posted by Zeno on Mon 19 Jul 2004 06:24 PM — 5 posts, 21,026 views.

USA #0
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?
Australia Forum Administrator #1
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):



<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>

Greece #2
There is the Multiple Send plugin that does that too.
USA #3
Nick, your example worked, but other worlds did not catch their own world alias.


  <alias
   match="afk"
   enabled="y"
   sequence="100"
  >
  <send>rank &amp;RAFK
who
afk</send>
  </alias>


Why is that?
USA #4
if its an alias, then you'll need to use Execute rather than Send.