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
➜ Plugins
➜ A gainmonitor of sorts...
A gainmonitor of sorts...
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Noodlez
USA (11 posts) Bio
|
Date
| Sun 09 Aug 2009 12:19 AM (UTC) |
Message
| I'm trying to make a gainmonitor for a MUD I play, but I'm having a lot of trouble, because I don't even know where to begin, because I've never made a plugin before.
I'm trying to make it log exp earned and gold found, then report hourly, or upon command. Can anyone help me, by telling me where to begin?
It would be greatly appreciated. | Top |
|
Posted by
| Blainer
(191 posts) Bio
|
Date
| Reply #1 on Sun 09 Aug 2009 01:49 AM (UTC) |
Message
| As a total newbie I can give advice I learned making a plugin.
This forum has heaps of info. Use the Forum Search and Google Search.
http://www.gammon.com.au/forum/bbsearch.php
Nick made an awesome video on making plugins.
http://www.gammon.com.au/forum/bbshowpost.php?id=9617
I would make a rough plan for all the steps the plugin needs to solve
the problem. And maybe use psuedo code to flesh out the plan. This can save
a lot of time especially if your learning the language as you go.
http://en.wikipedia.org/wiki/Pseudocode
| Top |
|
Posted by
| Noodlez
USA (11 posts) Bio
|
Date
| Reply #2 on Sun 09 Aug 2009 01:58 AM (UTC) |
Message
| I get how to actually create the plugin, but what I am not getting is how to get all of the variables to add to totals for the reports.
Hmm... I am sooo lost. :/ | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sun 09 Aug 2009 02:06 AM (UTC) |
Message
| On this page:
http://mushclient.com/scripting
... are the immortal lines:
I often get asked how do do things like "count experience" or "warn if health low". This post shows some ways of going about this.
Try reading that - there are examples there of working with variables.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Noodlez
USA (11 posts) Bio
|
Date
| Reply #5 on Sun 09 Aug 2009 02:42 AM (UTC) |
Message
| Following Nick's link, I created the script, and was just following what it said, to try to get an understanding of things.
At the part where it shows '/Note Hello, world.'
I get an error if I do that same thing...
It says compile error, and this...
[string "Command line"]:1: '=' expected near 'Hello' | Top |
|
Posted by
| Noodlez
USA (11 posts) Bio
|
Date
| Reply #6 on Sun 09 Aug 2009 02:50 AM (UTC) |
Message
| Ok, nevermind, I'm figuring some stuff out. Thanks for all the info so far, I'll keep you posted with my progress. | Top |
|
Posted by
| Noodlez
USA (11 posts) Bio
|
Date
| Reply #7 on Sun 09 Aug 2009 04:22 AM (UTC) |
Message
| Alright... maybe I'm slow... or I'm not reading into this enough... But I'm not seeing how to do what I'm trying to do.
I'm trying to take experience earned, i.e. the wildcard in the phrase 'You receive * experience points.' and get all of those wildcards within a one hour (or more) period to add up, and be able to display that through an alias, or timer.
:/
Baby steps for me? | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #8 on Sun 09 Aug 2009 05:19 AM (UTC) |
Message
| |
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #9 on Sun 09 Aug 2009 05:54 AM (UTC) |
Message
| |
Posted by
| Noodlez
USA (11 posts) Bio
|
Date
| Reply #10 on Sun 09 Aug 2009 06:08 AM (UTC) |
Message
| Wow, that's so perfect. lol
Thanks! | 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.
30,684 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top