[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]  Plugins
. . -> [Subject]  A gainmonitor of sorts...
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

A gainmonitor of sorts...

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


Posted by Noodlez   USA  (11 posts)  [Biography] 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.
[Go to top] top

Posted by Blainer   (191 posts)  [Biography] 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

[Go to top] top

Posted by Noodlez   USA  (11 posts)  [Biography] 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. :/
[Go to top] top

Posted by Blainer   (191 posts)  [Biography] bio
Date Reply #3 on Sun 09 Aug 2009 02:02 AM (UTC)
Message
There is a video showing how to make a targeting alias.
This makes a variable called @target is this what your looking for?

http://www.gammon.com.au/forum/bbshowpost.php?id=9616
[Go to top] top

Posted by Nick Gammon   Australia  (21,412 posts)  [Biography] 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
[Go to top] top

Posted by Noodlez   USA  (11 posts)  [Biography] 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'
[Go to top] top

Posted by Noodlez   USA  (11 posts)  [Biography] 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.
[Go to top] top

Posted by Noodlez   USA  (11 posts)  [Biography] 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?
[Go to top] top

Posted by Nick Gammon   Australia  (21,412 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Sun 09 Aug 2009 05:19 AM (UTC)
Message
Show us what you have so far, please.

http://mushclient.com/copying

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,412 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Sun 09 Aug 2009 05:54 AM (UTC)
Message
Did you try searching the forum for "experience counter"? When I did that I found this fairly relevant post:

http://www.gammon.com.au/forum/bbshowpost.php?id=7682

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Noodlez   USA  (11 posts)  [Biography] bio
Date Reply #10 on Sun 09 Aug 2009 06:08 AM (UTC)
Message
Wow, that's so perfect. lol
Thanks!
[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,951 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]