Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Global AFK

Global AFK

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Mon 19 Jul 2004 06:24 PM (UTC)
Message
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?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 19 Jul 2004 09:24 PM (UTC)
Message
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>


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #2 on Mon 19 Jul 2004 11:23 PM (UTC)
Message
There is the Multiple Send plugin that does that too.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #3 on Tue 20 Jul 2004 01:39 AM (UTC)
Message
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?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #4 on Tue 20 Jul 2004 01:42 AM (UTC)
Message
if its an alias, then you'll need to use Execute rather than Send.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,480 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.