[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]  How to get "things" from the MUD/World ... xD
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

How to get "things" from the MUD/World ... xD

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 Thu 02 Sep 2010 04:20 PM (UTC)
Message
Hi,

first thing - my english is not the best but i try my best to explain my question ;)

Ok:
How can i get "variables" from the MUD like the HP from my Char and save it to a variable or something i can use.


I want to do something like this (in simple to show what i mean :D)

if a > b
do something
else
wait this and this time and check again.



I hope you know what i mean and can Help me!

cYa
Dude
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Thu 02 Sep 2010 05:07 PM (UTC)
Message
That depends on a lot of things! Lets see... First of all, it could help if you tell us which MUD this is, because someone here might be familiar with it.

Second, what does your MUD's prompt look like? Or, how do you normally find out what your health is? MUSHclient can't do anything you couldn't get from the MUD yourself; the most it can do is automate it for you. If your health is on the prompt, you can make a trigger to match on your prompt and get the details from it.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Dude   Germany  (6 posts)  [Biography] bio
Date Reply #2 on Thu 02 Sep 2010 06:37 PM (UTC)
Message
Its UniTopia and Scripts are not allowed :D But who cares.


I type: "AP" and then he shows me:
xxx AP(xxx) und xxx ZP(xxx).



The problem is - i have no idea from LUA. :/
[Go to top] top

Posted by Dude   Germany  (6 posts)  [Biography] bio
Date Reply #3 on Fri 03 Sep 2010 06:19 PM (UTC)
Message
Can no one help me? :(
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #4 on Fri 03 Sep 2010 07:26 PM (UTC)
Message
Personally, I'm not really inclined to help do something that is against a game's rules... That said, this is a common question, so if you poke around you'll find something to help you.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Fri 03 Sep 2010 08:33 PM (UTC)
Message
Did you read this?

Template:scripting Scripting tutorial

There is extensive information about scripting in MUSHclient at http://mushclient.com/scripting. This includes screen shots and examples.



And the "Getting Started" posts?

http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=120

- Nick Gammon

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


4,383 views.

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.

[Home]


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]