Hello all, its been a long time since i used Mushclient, i forgot how to loop commands using Mushclient, i've been using Zmud for a looong time, only know how to use its command looping since its a lot easier, less complicated..
Looping Commands
Posted by UnderStriker on Mon 06 Dec 2004 02:22 PM — 7 posts, 26,800 views.
It isn't complicated in MUSHclient these days, as you can "send to script".
Here is an example, using Lua scripting, however VBscript would be very similar:
You can copy and paste that into MUSHclient, but the important part is, in your "send" box put:
That loops 10 times doing something. The alias must be set to "send to script" for the commands to be evaluated like that.
Here is an example, using Lua scripting, however VBscript would be very similar:
<aliases>
<alias
match="looptest"
enabled="y"
send_to="12"
sequence="100"
>
<send>for i = 1, 10 do
Note ("item ", i)
end</send>
</alias>
</aliases>
You can copy and paste that into MUSHclient, but the important part is, in your "send" box put:
for i = 1, 10 do
Note ("item ", i)
end
That loops 10 times doing something. The alias must be set to "send to script" for the commands to be evaluated like that.
heh, tried that...
Got a error from that it goes as follows...
Error number: -2146827244
Event: Execution of line 1 column 20
Description: Cannot use parentheses when calling a Sub
Line in error:
Note ("item ", i)
Called by: Immediate execution
I didn't do anything different then what you said to use on there... i made the alias using the client since i have no clue how to do it with the world file...
I'm looking for something simple, not complicated... i thought there was a way to command loop with #run, but i don't remember how to do that stuff...
Got a error from that it goes as follows...
Error number: -2146827244
Event: Execution of line 1 column 20
Description: Cannot use parentheses when calling a Sub
Line in error:
Note ("item ", i)
Called by: Immediate execution
I didn't do anything different then what you said to use on there... i made the alias using the client since i have no clue how to do it with the world file...
I'm looking for something simple, not complicated... i thought there was a way to command loop with #run, but i don't remember how to do that stuff...
ROFL
I just happend to try something, happend to find a way to do what i was after :)
#10 (command)
lol, that worked perfectly.... kinda funky i found it by accident...
I just happend to try something, happend to find a way to do what i was after :)
#10 (command)
lol, that worked perfectly.... kinda funky i found it by accident...
As I said in my post my example was "using Lua scripting". The error message you got was for VBscript.
I think the solution you found was done with an alias, however I am glad it works. I wasn't sure what you meant by "looping commands".
I think the solution you found was done with an alias, however I am glad it works. I wasn't sure what you meant by "looping commands".
That's the speedwalk. It's quite useful with the interval and filler and all.
Nicks example (in VBscript) is:
for i = 1 to 10
note "item " & i
next
Just copy/paste that into the send box (of the same trigger you copy/pasted from nick).
for i = 1 to 10
note "item " & i
next
Just copy/paste that into the send box (of the same trigger you copy/pasted from nick).