send instead print

Posted by Mahony on Mon 25 Aug 2014 08:39 PM — 4 posts, 19,325 views.

#0
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
Amended on Mon 25 Aug 2014 08:49 PM by Mahony
Australia Forum Administrator #1

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.

Amended on Mon 25 Aug 2014 08:54 PM by Nick Gammon
#2
I don't get it. I tried Send in many ways and I didn't work.
Now it works. *sigh
thanx
USA Global Moderator #3
You probably failed to capitalize it.