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 ➜ script queston

script queston

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


Posted by Zendu   (66 posts)  Bio
Date Fri 20 Feb 2004 09:25 PM (UTC)
Message
Im looking for a way to do the following

moonkick TARGET left
world.Send "mnk " + world.GetVariable("Target") + world.send "left "



doesnt seem to work...

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 20 Feb 2004 09:38 PM (UTC)
Message
Do this:


world.Send "mnk " & world.GetVariable("Target") & " left "


However, more simply, do this:


Send: mnk @target left
Send to: world
Expand variables: checked



- Nick Gammon

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

Posted by Zendu   (66 posts)  Bio
Date Reply #2 on Sun 22 Feb 2004 09:38 AM (UTC)
Message
All the items in the game have numberic id's so could i save vial12345 as health and then

get @health from pack


God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 22 Feb 2004 11:58 PM (UTC)
Message
Yes. Why don't you try it rather than asking here? No harm can come.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


13,168 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.