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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ send instead print

send instead print

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


Posted by Mahony   (27 posts)  Bio
Date Mon 25 Aug 2014 08:39 PM (UTC)

Amended on Mon 25 Aug 2014 08:49 PM (UTC) by Mahony

Message
I give up. Can't find it. easy

for k, v in pairs ( t ) do
 print ("get", v, "bag") 
end

please replace "print" with command that sends to mud.

Thank you
Mahony
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 25 Aug 2014 08:53 PM (UTC)

Amended on Mon 25 Aug 2014 08:54 PM (UTC) by Nick Gammon

Message

for k, v in pairs ( t ) do
 Send ("get ", v, " bag") 
end


I added a couple of spaces because Send doesn't put them between items, whereas print does.

Template:function=Send Send

The documentation for the Send script function is available online. It is also in the MUSHclient help file.


- Nick Gammon

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

Posted by Mahony   (27 posts)  Bio
Date Reply #2 on Mon 25 Aug 2014 08:58 PM (UTC)
Message
I don't get it. I tried Send in many ways and I didn't work.
Now it works. *sigh
thanx
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #3 on Thu 28 Aug 2014 03:13 PM (UTC)
Message
You probably failed to capitalize it.

https://github.com/fiendish/aardwolfclientpackage
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,631 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.