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 ➜ Tips and tricks ➜ Plugins and writing them

Plugins and writing them

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


Pages: 1 2  

Posted by Hathcock   (49 posts)  Bio
Date Fri 19 Dec 2003 07:54 AM (UTC)
Message
ok, I tried this for hours before I posted here, and I looked at what I can find for plugins already, but I'm lost. I posted a couple weeks ago about setting up an autohealer/sipper but it never worked out.....I found a site for the realm I play in that has a mushclient sipper script, but it requires me to set it up as a plugin in .xml, so I'm completely lost on how to set it. for ease, anyone thats interested, the site that has the auto sipper is www.achaea.cjb.net under the scripts section, scroll down to after the Zmud script section and it will have an area for mushclient scripts....the sipper is listed there. The next post I place here will contain the entire script listed, maybe someone in their free time can take a look and point my dumbass in the right direction. Please do not spend anytime on this if it's going to be hard, Shadowfyr already has done to much to help me and used alot of time....but if anyone knows an easy answer to why I keep screwing up, please let me know, thanks
Top

Posted by Hathcock   (49 posts)  Bio
Date Reply #1 on Fri 19 Dec 2003 08:03 AM (UTC)
Message
ok, I can't paste it all here, I keep getting errors from it being to big. If anyone feels like taking the time I guess, you can go to the website, or let me know how the hell to save it as an .xml easily, thanks
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #2 on Fri 19 Dec 2003 10:24 AM (UTC)
Message
Since that plugin is actually mine... Don't bother with the version on the site - it's probably outdated anyways. Go to achaea.mc0wnage.com/forums, browse to the Scripts section and find the thread named "Auto vial drinker (Mushclient version). That thread has the most recent update (near the end of it), as well as instructions on how to set up a plugin (in the thread's original post.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #3 on Fri 19 Dec 2003 08:43 PM (UTC)
Message
That looks great. Can I add it to the plugins area here?

- Nick Gammon

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

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #4 on Sat 20 Dec 2003 06:19 AM (UTC)
Message
Sure Nick!
Top

Posted by Hathcock   (49 posts)  Bio
Date Reply #5 on Sun 21 Dec 2003 12:26 AM (UTC)
Message
I was able to get the AutoHealer.xml added to plugins, and it says it turns on when I enter "ah on" but I don't heal, I set the maxhealth and mana, and it confirmed it,but when I get hit it doesn't heal me, even when low on life it wasn't healing, the mana didn't work either.....is there something else I'm forgetting to do?

Also, I need to set variables for my pipes, what is the easiest way to do this? So I can switch them around when I'm on different characters without manually having to go through each pipes alias and trigger and changing out the ID#'s
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #6 on Mon 22 Dec 2003 12:41 AM (UTC)

Amended on Mon 22 Dec 2003 12:42 AM (UTC) by Nick Gammon

Message

I have added this plugin to the plugins area on this site. See: MUSHclient plugins.

Any other plugin authors that have a debugged and useful plugin are welcome to mention it here for inclusion in the plugins area.

That way your plugin isn't lost if the site where it currently appears goes down, and it gets shared with a lot of other MUSHclient users.


- Nick Gammon

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

Posted by Hathcock   (49 posts)  Bio
Date Reply #7 on Mon 22 Dec 2003 07:13 AM (UTC)
Message
There's an error when you click the Autohealer line
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #8 on Mon 22 Dec 2003 06:55 PM (UTC)

Amended on Mon 22 Dec 2003 06:56 PM (UTC) by Nick Gammon

Message
Hmm - that will teach me to not test it first. :)

There was a problem in my system somewhere. Some spaces had converted themselves from hex 20 to hex A0. I have fixed that up and reposted it.

Anyway, you should right-click it to download it, single-left-clicking will simply display the XML in your browser, which may or may not look good, but won't be suitable for installation.

- Nick Gammon

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

Posted by Hathcock   (49 posts)  Bio
Date Reply #9 on Mon 22 Dec 2003 09:08 PM (UTC)
Message
Hmmm, I'm able to get it added to the plugins, and when I type ah on, a confirmation comes up saying it's on...then I set the maxmana and health but it doesn't heal still...is it specific only to Achaea? I'm in Aetolia, which is pretty much the same thing.......

Also, if anyone can still tell me how tomake a simple variable, that would be great. I need it for 3 pipes, each with ID#'s, so that when I switch characters, I just have to change a variable I guess instead of changing all the pipes trigegrs/aliases themselves one by one, thanks for the help
Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #10 on Tue 23 Dec 2003 09:22 PM (UTC)
Message
World.SetVariable
http://www.mushclient.com/scripts/function.php?name=SetVariable

and to retrieve value:

World.GetVariable
http://www.mushclient.com/scripts/function.php?name=GetVariable

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
Top

Posted by Hathcock   (49 posts)  Bio
Date Reply #11 on Wed 24 Dec 2003 01:15 AM (UTC)
Message
I'm still not able to get the Autohealrer to work...anyone else having problems with it?
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #12 on Wed 24 Dec 2003 03:10 AM (UTC)
Message
The auto-healer has some rather specific triggers in it. I suggest you post an example prompt line so we can see what the difference is between what it is matching on, and what the MUD is supplying.

- Nick Gammon

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

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #13 on Wed 24 Dec 2003 03:12 AM (UTC)
Message
The most common cause of problems is the prompt. Make sure the plugin's prompt trigger matches on yours. It's set by default for the basic Achaean format: "1234h, 1234m cex-" and it won't match on anything else. Check out my last message in the plugin's thread at achaea.mc0wnage.com/forums site, it has the details on how to amend the prompt trigger.
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #14 on Wed 24 Dec 2003 07:19 AM (UTC)

Amended on Wed 24 Dec 2003 07:21 AM (UTC) by Ked

Message
Erm, the prompt explanation was actually in a different thread - the one for RiftList. I'll just paste the relevant post here:



Someone else complained to me about the same problem before and it turned out that the prompt was to blame. The plugin uses your prompt to figure out when it has recieved the full rift listing and should count and display the herbs, so if the prompt trigger doesn't match, then the plugin will never finish waiting for the end of rift output. Try changing the 'match' property of the 'rlist_finish' trigger to something that'll fit your prompt if it's different from the standard "1234h, 1234m cx-" thingy. Just put "\d+n" for every extra stat you have, where 'n' stands for the actual letter. For example, if your prompt looks like:

1234h, 1234m, 1234w cex-

then you'll need to put the following into the trigger's match:

^(\d+h), (\d+m), \d+w \D*-.*$
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.


75,712 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

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.