A gainmonitor of sorts...

Posted by Noodlez on Sun 09 Aug 2009 12:19 AM — 11 posts, 42,181 views.

USA #0
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.
#1
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

USA #2
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. :/
#3
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
Australia Forum Administrator #4
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.
USA #5
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'
USA #6
Ok, nevermind, I'm figuring some stuff out. Thanks for all the info so far, I'll keep you posted with my progress.
USA #7
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?
Australia Forum Administrator #8
Show us what you have so far, please.

http://mushclient.com/copying
Australia Forum Administrator #9
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
USA #10
Wow, that's so perfect. lol
Thanks!