MUSHclient Plugins

Have a question about which MUD client works best with SI? Looking for a free app that lets you log in from your phone? Need help with a complicated script? This is the place.
User avatar
Kody_Oakborne
Citizen of Archai
Posts: 209
Joined: Tue Apr 22, 2014 1:35 am

Re: MUSHclient Plugins

Post by Kody_Oakborne »

You need to make sure your prompt matches the HP and ST format suggested in the plug in to work. You can add additional things to your prompt after the HP and ST, but those must match for it to update.
May the trees guard you, and house you, and guide you.
Kody
Ricco
Academy Student
Posts: 6
Joined: Fri Jun 17, 2016 2:47 pm

Re: MUSHclient Plugins

Post by Ricco »

What do I update to include that? Pardon my terrible lack of knowledge on the matter. I played dgate with their front end so I'm totally lost with mush so far.
User avatar
Kody_Oakborne
Citizen of Archai
Posts: 209
Joined: Tue Apr 22, 2014 1:35 am

Re: MUSHclient Plugins

Post by Kody_Oakborne »

My current prompt is this:

Code: Select all

HP: %h/%H ST: %m/%M G: %G
This displays as:

Code: Select all

HP: 280/280 ST: 210/210 G: 0 doubloon
To change your prompt, simply type "prompt" followed by the prompt you want. "Help prompt" will give you guidance if you prefer it include more information.
Most importantly is the HP and ST part, those must remain the same. After %M, anything else can be whatever you want.
May the trees guard you, and house you, and guide you.
Kody
Ricco
Academy Student
Posts: 6
Joined: Fri Jun 17, 2016 2:47 pm

Re: MUSHclient Plugins

Post by Ricco »

Oh I *think* I understand now. It's not an effect of mush it's the actual game interface itself that needs to be modified here. Am I correct in this assumption?
User avatar
Kody_Oakborne
Citizen of Archai
Posts: 209
Joined: Tue Apr 22, 2014 1:35 am

Re: MUSHclient Plugins

Post by Kody_Oakborne »

Correct -- this is something the game needs to feed to you for the plug in to interact properly. It's essentially looking for a trigger that doesn't exist until you edit your prompt to match what it wants.
May the trees guard you, and house you, and guide you.
Kody
User avatar
RPGer
Citizen of Archai
Posts: 175
Joined: Sat Aug 15, 2015 4:40 pm
Location: USA

Re: MUSHclient Plugins

Post by RPGer »

If you have a prompt that you favour that is different, you can edit the script instead to match it.
In the xml file where it says:
match="^HP\:\s(\d+)\s*\/(\d+)\sST\:\s(\d+)\s*\/(\d+)"
Is where you can change it to trigger on your specific prompt.

A very basic breakdown is-
^ start of the line match of 'HP'
\ next char. is a special(not alpha,not numeral)
\s match a white space
() what we get in here will become wildcard 1 (current hp)
\d+ match a digit. the + is like grab all the digits that are together.
\s* zero or more white spaces
\/ match the forward slash (its a special char. so using the backslash in front of it)
(\d+) setting wildcard 2 for max hp
same pattern repeated to catch the stamina except matching the ST instead of HP
As long as you give it 4 wildcards to work with, you will be good to go.

If your prompt is something simple like:
175/175 38/99
Then the below will work
^(\d+)\s*\/(\d+)\s(\d+)\s*\/(\d+)

these three pages from the Mushclient site can be very helpful with this:
http://www.gammon.com.au/mushclient/funwithtriggers.htm
http://www.gammon.com.au/mushclient/regexp.htm
http://www.gammon.com.au/forum/bbshowpo ... ct_id=5089
Ricco
Academy Student
Posts: 6
Joined: Fri Jun 17, 2016 2:47 pm

Re: MUSHclient Plugins

Post by Ricco »

Fantastic thank you guys very much. Much appreciated. The bar works but I am getting constant error messages saying dostand or dosit or do_prompt not found or had a previous error. Is this something I can remedy or do I need to squelch those lines?
Forhekset
Citizen of Archai
Posts: 150
Joined: Mon Sep 16, 2013 9:59 pm

Re: MUSHclient Plugins

Post by Forhekset »

Hey client wizards. Gotta question. My skill list is a little cluttered, and the numbers seem too far away from the names. So I get all.. fuzzy when trying to read them. I have my skill names colored using the mushclient highlights, but is there a way to extend that color through the line to numbers and level so it matches?
User avatar
RPGer
Citizen of Archai
Posts: 175
Joined: Sat Aug 15, 2015 4:40 pm
Location: USA

Re: MUSHclient Plugins

Post by RPGer »

You can try to match on:
*Close Combat*

Check out https://www.gammon.com.au/mushclient/fu ... iggers.htm
Forhekset
Citizen of Archai
Posts: 150
Joined: Mon Sep 16, 2013 9:59 pm

Re: MUSHclient Plugins

Post by Forhekset »

Holy crap it worked! You're my hero.

Also, its ^.*whateverwordyouwanthere.*$

And choose "Change color and style to" then choose your color.

So good. Thanks again.
Post Reply