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

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Problem with "for" and "wait"
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Problem with "for" and "wait"

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

Posted by Dude   Germany  (6 posts)  [Biography] bio
Date Sun 16 Aug 2015 07:42 AM (UTC)

i tryd something like this:

match="tester *"
<send>require "wait"
for i=%1,1,-1 do

Send ("do something and wait 8 seconds")
wait.time (8)


So i start die alias with maybe "tester 4" so it will "do something" 4 times. But it wont work. Any Idea how i get this to work?
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 16 Aug 2015 08:36 AM (UTC)
See: http://www.gammon.com.au/forum/?id=4957

You don't seem to be calling wait.make

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Dude   Germany  (6 posts)  [Biography] bio
Date Reply #2 on Mon 17 Aug 2015 08:01 AM (UTC)
Ah, right, thank you.
[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.


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.


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