[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Health System

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Health System
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  3  

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Sun 19 Sep 2004 06:04 AM (UTC)  quote  ]
Message
Thats because your prompt doesnt have a newline sent, you get this from the mud:
H:2536 M:3074 B:100% [csb -b]
when you NEED:
H:2536 M:3074 B:100% [csb -b]\n
since MC doesnt evaluate triggers without the newline.

You have a few options, if you can add a newline to your prompt, that will solve it, since your prompt will be:
H:2536 M:3074 B:100% [csb -b]\n
(empty line, no new line here, not yet)

There are also some other options, a lot of people like the onpartialline plugin callback. Which I think is an updated version. I think it can be found in this thread, along with help setting it up to work with your prompt.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Legacy   (2 posts)  [Biography] bio
Date Sun 19 Sep 2004 05:57 AM (UTC)  quote  ]
Message
im having some problems with my auto healer too, i believe ive got everything set out lovely, its just that i get this one little problem which screws the whole thing up. When the H:2300 M:3100 comes up it, wont set off drink mana straight away, it waits untill another output comes from the mud then it triggers the drink mana which results in me drinking twice. So ill try to put an example of what happens

You form a lash of fire, and send it to scorch the flesh of a water weird.
H:2536 M:3074 B:100% [csb -b]

As you see it gets below 3100 which the mud is ment to trigger off drink mana, but it sits there untill another command pops up.

So it goes like this

You form a lash of fire, and send it to scorch the flesh of a water weird.
H:2536 M:3074 B:100% [csb -b]
drink mana
A water weird hits you with a glancing cut.

it wouldnt of ever triggered unless that next command comes up or i send something, is there possibly a switch or something to stop this annoying accurance?
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Wed 08 Sep 2004 05:19 PM (UTC)  quote  ]
Message
If you are using a version with OnPluginPartialLine callback instead of a prompt trigger (1.5-1.51) then you need to replace the value of the "re" script variable, near the very beginning of the plugin's <script> section, with:


"^(\d+)h, (\d+)m, \d+e, \d+p ([cexkdb]*?|)-.*$"
[Go to top] top

Posted by Natasi   (79 posts)  [Biography] bio
Date Mon 06 Sep 2004 04:57 PM (UTC)  quote  ]
Message
How would I convert this health bar into the Autohealer?

1215h, 1262m, 1300e, 10p ex-
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Thu 20 May 2004 12:15 PM (UTC)  quote  ]
Message
You can set the minimum levels of health and mana for drinking elixir, you can also set a minimum level of health to eat moss at. Here are some aliases.

For setting health minimum for elixir:

<aliases>
<alias
name="health_floor"
match="^hf ([0-9]{1,2})$"
enabled="y"
sequence="100"
regexp="y"
send_to="12"
><send>world.callplugin &quot;ebbb2e6c8db0bfb433d76dbf&quot;, &quot;SetHealthFloorEx&quot;, %1
</send></alias>
</aliases>


Minimum mana to drink elixir at:

<aliases>
<alias
name="mana_floor"
match="^mf ([0-9]{1,2})$"
enabled="y"
sequence="100"
regexp="y"
send_to="12"
><send>world.callplugin &quot;ebbb2e6c8db0bfb433d76dbf&quot;, &quot;SetManaFloorEx&quot;, %1
</send></alias>
</aliases>


Minimum health to eat moss at:

<aliases>
<alias
name="moss_floor"
match="^ms ([0-9]{1,2})$"
enabled="y"
sequence="100"
regexp="y"
send_to="12"
><send>world.callplugin &quot;ebbb2e6c8db0bfb433d76dbf&quot;, &quot;SetMossFloorEx&quot;, %1
</send></alias>
</aliases>


The actual floor values must be passed as percent (10, 25, 90, etc).
[Go to top] top

Posted by Zendu   (66 posts)  [Biography] bio
Date Thu 20 May 2004 01:51 AM (UTC)  quote  ]

Amended on Thu 20 May 2004 03:02 AM (UTC) by Zendu

Message
Is there a way to set and alias for the % it heals at? 85% is a bit high (i have trollish regen) but when im fighting a person... id like that 85 again....



on a side note, anyway you can get it to do:
H: XXX%healthXXX
M: XXX%manaXXXXX

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Wed 19 May 2004 11:39 PM (UTC)  quote  ]
Message
Yes, you can reduce the balance timing but it'll never be really accurate, since it's based on how often your prompt shows up and a Mushclient timer with 1 second precision. To change the timings you need to edit the values inside the TimingExpired function in the <script> section. Lines 367 and 378, I believe. The lines are commented to indicate where to change the timing values. Try setting them to 4.5, 4.6, 4.7 and see how it works.

As for changing the layout of StatusGauge bars from vertical to horizontal... Nope, can't do that right now, you can change the number of bars, but not the general layout. I plan to allow for a gauge with vertical bars:

X X
X X
X X
X X
X X
X X

H M

But that's likely to take some time, as I first want to finish an extra output window to replace Notepad, and then take a break from wxPython madness. But I'll think about your horizontal idea, if it can actually be done quicker than the vertical above than I might first do that instead.
[Go to top] top

Posted by Zendu   (66 posts)  [Biography] bio
Date Wed 19 May 2004 08:36 PM (UTC)  quote  ]
Message
Allright its working! both the bar and the healing! 2 quick questions?

1) can you change the layout of the health system from
H:XXXXXXXXX
M:XXXXXXXXX
to
H:XXXXXXXXX M:XXXXXXXXX

3 Does the timing of the healing zero down a bit more? it seems a tad long right now ( say .5 seconds to long or something? Hopefully the timing is the same as it is in achea.



Thanks for all your help! Id offer to give you what ive made, but its nothing all that impressive.

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Wed 19 May 2004 02:47 PM (UTC)  quote  ]
Message
Check this post: http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4190&page=999999
The link there takes you to a site with a zip which includes AutoHealer, that zip also contains a COM object - StatusGauge - used to display bar gauges, and used by AutoHealer 1.5 for displaying health/mana. If you aren't going to use StatusGauge then make sure you read the description of the AutoHealer plugin very carefully, especially the last bit about version 1.5, as it tells you how to disable StatusGauge support in the plugin - requires simply changing one number.

Also, it seems like I screwed up with the prompt trigger. Status flags in Aetolia take the form of '[ceb]', while I presumed that they were the same 'ceb-' as in Achaea. Use this line instead of the one I posted before:


re.Pattern = "^H\:(\d+) M\:(\d+) (?:[WE]\:(?:\d+) |)(?:[WE]\:(?:\d+) |).*$"


The instructions stay exactly the same though.

[Go to top] top

Posted by Zendu   (66 posts)  [Biography] bio
Date Tue 18 May 2004 08:33 PM (UTC)  quote  ]
Message
Seems i found version 1.0 can you point me to 1.5?


all i have close to that is this:
<trigger
enabled="y"
keep_evaluating="y"
match="^(\d+)h, (\d+)m (\D{0,7})\-.*$"
name="prompt_trigger"
regexp="y"
script="DecipherPromptInfo"
sequence="1"
other_text_colour="black"
other_back_colour="black"

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Tue 18 May 2004 05:56 AM (UTC)  quote  ]

Amended on Tue 18 May 2004 05:58 AM (UTC) by Ked

Message
Then open AutoHealer.xml in any text editor, go to line 171 (that's for version 1.5 of the plugin). It should read:


re.Pattern = "^(\d+)h, (\d+)m (?:\d+[we] |)(?:\d+[we] |)(\D{0,7})\-.*$"


Copy the following line here:


re.Pattern = "^H\:(\d+) M\:(\d+) (?:[WE]\:(?:\d+) |)(?:[WE]\:(?:\d+) |)(\D{0,7})\-.*$"


And paste it over the same line in the plugin. That will replace the regular expression for the Achaean prompt with a one for Aetolian format, and the plugin should start working.
[Go to top] top

Posted by Zendu   (66 posts)  [Biography] bio
Date Tue 18 May 2004 04:31 AM (UTC)  quote  ]
Message
my health/mana looks like this



H:3576 M:1882

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Sun 16 May 2004 09:24 PM (UTC)  quote  ]
Message
You should be able to change the plugin to reflect the exact location of your constants.vbs file. It isn't a huge amount of work. Alternatively remove that line altogether, it sometimes isn't needed, or finally load the contants.vbs file into a word processor (eg. notepad) and paste it literally into the plugin at the start of the <scripts> section, so it is there in person, and not included.

If the plugin loaded OK it will be in the plugins list, otherwise not.

- Nick Gammon

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

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Sun 16 May 2004 01:55 PM (UTC)  quote  ]
Message
If you are playing Aetolia then the prompt trigger will be off, and the plugin won't work, since in order to heal your health and mana it needs to know what it is, and the only way to know that is through the prompt. Post your actual prompt here, and I'll give you instructions on where to put it in the plugin.
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Sun 16 May 2004 12:34 PM (UTC)  quote  ]
Message
Have you moved MC from the default directory to somewhere else, or is the constants file just missing? If it's missing, you could reinstall MC to fix it, otherwise you would have to change the value in the registry... Or perhaps remove the <include "constants.vbs"> line from the script, it might work.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[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.


8,808 views.

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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]