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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Autosipper Help

Autosipper Help

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


Posted by Kresslack   (70 posts)  [Biography] bio
Date Mon 10 Nov 2008 08:22 PM (UTC)
Message
I haven't been able to find a good auto sipper for my Infernal on Achaea, and I've not the skill to make one. I found this one for the default Nexus client, and it works pretty well. I was wondering if someone could convert it to Mush or point me in the direction of a decent one for Mush. Thanks ahead of time.

<reflexbundle author="Vadi">
<group name="default">
<var name="currenthealth">0</var>
<var name="currentmana">0</var>
<var name="healbalance">1</var>
<var name="healthdifference">0</var>
<var name="manadifference">0</var>
<var name="maxhealth">0</var>
<var name="maxmana">0</var>
<var name="mosshealth">0</var>
<var name="mossmana">0</var>
<var name="siphealth">0</var>
<var name="sipmana">0</var>
<var name="tracking">1</var>
<alias name="hh">#if $priority {
#set priority 0
#echo [Vadi]: Swapped to mana priority.
} else {
#set priority 1
#echo [Vadi]: Swapped to health priority.}</alias>
<alias name="pp">#if $paused {
#set paused 0
#echo [Vadi]: Unpaused.
} else {
#set paused 1
#echo [Vadi]: Paused.}</alias>
<alias name="sipinstall">#set healbalance 1
#set priority 1
#set tracking 0
#set mossbalance 1
score
#echo Improved sipper installed, enjoy.</alias>
<alias name="tr">#if $tracking {
#set tracking 0
#echo [Vadi]: Tracking disabled.
} else {
#set tracking 1
#echo [Vadi]: Tracking health and mana changes.}</alias>
<trig name="{&lt;} Health : {d:currenthealth}/{d} Endurance : {d}/{d}{&gt;}">#set maxhealth $2
#set siphealth = $maxhealth-100
#set mosshealth = $maxhealth-800
</trig>
<trig name="{&lt;} Mana : {d:currentmana}/{d} Willpower : {d}/{d}{&gt;}">#set maxmana $2
#set sipmana = $maxmana-300
#set mossmana = $maxmana-800</trig>
<trig name="{&lt;}The potion heals and soothes you.{&gt;}">#set healbalance 0
#highlight green</trig>
<trig name="{&lt;}You feel you health, mana and ego replenished.{&gt;}">#set mossbalance 0
#highlight green</trig>
<trig name="{&lt;}You may drink another health, mana, or bromide potion.{&gt;}">#set healbalance 1
#highlight green</trig>
<trig name="{&lt;}You may eat another sparkleberry.{&gt;}">#set mossbalance 1
#highlight green</trig>
<trig name="{&lt;}Your mind feels stronger and more alert.{&gt;}">#set healbalance 0
#highlight green</trig>
<trig name="{d}h, {d}m">#if $tracking {
#set healthdifference = $1 - $currenthealth
#set manadifference = $2 - $currentmana
#if $healthdifference&lt;0 and $manadifference&lt;0{
#echo ($healthdifference Health, $manadifference Mana)
} elsif $healthdifference&gt;0 and $manadifference&lt;0 {
#echo (+$healthdifference Health, $manadifference Mana)
} elsif $healthdifference&lt;0 and $manadifference&gt;0 {
#echo ($healthdifference Health, +$manadifference Mana)
} elsif $healthdifference&gt;0 and $manadifference&gt;0 {
#echo (+$healthdifference Health, +$manadifference Mana)
} elsif $healthdifference&gt;0 {
#echo (+$healthdifference Health)
} elsif $manadifference&gt;0 {
#echo (+$manadifference Mana)
} elsif $healthdifference&lt;0 {
#echo ($healthdifference Health)
} elsif $manadifference&lt;0 {
#echo ($manadifference Mana)}
}
#set currenthealth $1
#set currentmana $2
#if !$paused {
#if $healbalance=1 and $priority {
#if $currenthealth&lt;$siphealth {
sip health
#set healbalance 0.5
} elsif $currentmana&lt;$sipmana {
sip mana
#set healbalance 0.5
}
} elsif $healbalance=1 {
#if $currentmana&lt;$sipmana {
sip mana
#set healbalance 0.5
} elsif $currenthealth&lt;$siphealth {
sip health
#set healbalance 0.5
}
}
#if $mossbalance=1 and ($currenthealth&lt;$mosshealth or $currentmana&lt;$mossmana) {
outr moss
eat moss
#set mossbalance 0.5}
}</trig>
</group>
</reflexbundle>
[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.


7,875 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]