[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Global AFK

Global AFK

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


Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] 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!
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] 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.
[Go to top] 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.


12,940 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]