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 ➜ General ➜ Health System

Health System

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


Pages: 1  2  3 

Posted by Zendu   (66 posts)  Bio
Date Reply #30 on Tue 18 May 2004 08:33 PM (UTC)
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]
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #31 on Wed 19 May 2004 02:47 PM (UTC)
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.

Top

Posted by Zendu   (66 posts)  Bio
Date Reply #32 on Wed 19 May 2004 08:36 PM (UTC)
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]
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #33 on Wed 19 May 2004 11:39 PM (UTC)
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.
Top

Posted by Zendu   (66 posts)  Bio
Date Reply #34 on Thu 20 May 2004 01:51 AM (UTC)

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]
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #35 on Thu 20 May 2004 12:15 PM (UTC)
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).
Top

Posted by Natasi   (79 posts)  Bio
Date Reply #36 on Mon 06 Sep 2004 04:57 PM (UTC)
Message
How would I convert this health bar into the Autohealer?

1215h, 1262m, 1300e, 10p ex-
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #37 on Wed 08 Sep 2004 05:19 PM (UTC)
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]*?|)-.*$"
Top

Posted by Legacy   (2 posts)  Bio
Date Reply #38 on Sun 19 Sep 2004 05:57 AM (UTC)
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?
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #39 on Sun 19 Sep 2004 06:04 AM (UTC)
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.
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.


139,120 views.

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

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.