Page 1 of 3

[EasyUO] BlaZin' HealR

Posted: Mon Apr 26, 2010 2:46 pm
by BlaZe
Introducing: BlaZin' HealR

This is just a quick little script I wrote a while back to keep myself healed with bandages, taking into factor the effect Dexterity plays with the bandage timer. At the beginning of it you set what percentage of health you want to be at before applying the bandies.

You'll also notice "|| C in #charstatus" in there, which literally means "..or if I'm poisoned"; it will [bandself if either your health percentage gets below %HP or you become poisoned. You may remove the "|| C in #charstatus" or just add a semicolon before the "||" if you wish.

By the way, your status bar must be open (and stay open) for the script to read your HP.

Code: Select all

; BlaZin' HealR
; by BlaZe Buddle of Excelsior's ßud ßrothers
; v1.1 Completed 12/28/10
set %HP 75
; This is the % your HP will be at before the script does a [bandself.
set %pause 1 
; Increase this number if the script doesn't pause
; long enough before applying more bandages. (20 = 1 second)
;;;;; ;;;;; ;;;;; ;;;;; ;;;;;
if ( #hits * 100 ) / #maxhits <= %HP || C in #charstatus
  {
  event macro 1 0 [bandself
  set %time ( 11 - ( #dex / 20 ) ) * 20
  if %time < 5
    set %time 5
  wait %time + %pause
  }

Re: [EasyUO] BlaZin' HealR

Posted: Fri Dec 17, 2010 9:14 pm
by BlaZe
Bump for a buddy.

Re: [EasyUO] BlaZin' HealR

Posted: Sun Mar 13, 2011 1:29 pm
by leelo
Im having some issues with this script not working at all

Re: [EasyUO] BlaZin' HealR

Posted: Sun Mar 13, 2011 3:58 pm
by Mephuzeler
For it to work for me, i deleted || C in #charstatus
in line 8:

if ( #hits * 100 ) / #maxhits <= %HP || C in #charstatus

was unresponsive before I did that, not sure why

Re: [EasyUO] BlaZin' HealR

Posted: Sun Mar 13, 2011 5:37 pm
by Naihonn
Good idea is always having enough brackets. In this case it should be because of no reason for brackets with multiplication or division:

if ( ( #hits * 100 / #maxhits ) <= %HP ) || C in #charstatus

With over-bracketing you can be calmer again. :woot:

Re: [EasyUO] BlaZin' HealR

Posted: Sun Mar 13, 2011 6:15 pm
by TheWatcher
Mephuzeler wrote:For it to work for me, i deleted || C in #charstatus
in line 8:

if ( #hits * 100 ) / #maxhits <= %HP || C in #charstatus

was unresponsive before I did that, not sure why
Im fairly certain the C is to use bandis if you are poisoned. I know i had some issues with this before and after going through it with Blaze he figured out what was wrong with mine.

In this line.....

Code: Select all

set %HP 75; This is the % your HP will be at before the script does a [bandself.
put a space after the 75 and before the ; . So it looks like this

Code: Select all

; BlaZin' HealR
; by BlaZe Buddle of Excelsior's ßud ßrothers
; v1.1 Completed 12/28/10
set %HP 75 ; This is the % your HP will be at before the script does a [bandself.
set %pause 1 ; Increase this number if the script doesn't pause
             ; long enough before applying more bandages. (20 = 1 second)
;;;;; ;;;;; ;;;;; ;;;;; ;;;;;
if ( #hits * 100 ) / #maxhits <= %HP || C in #charstatus
  {
  event macro 1 0 [bandself
  set %time ( 11 - ( #dex / 20 ) ) * 20
  if %time < 5
    set %time 5
  wait %time + %pause
  }
Might not work for everyone and i dont know a lot about scripting but this worked for me

Re: [EasyUO] BlaZin' HealR

Posted: Sun Mar 13, 2011 8:12 pm
by leelo
Thanks a lot its working now :)

Re: [EasyUO] BlaZin' HealR

Posted: Wed Apr 13, 2011 8:23 pm
by Nunja
If your disgruntled that the script will unhide you if your low on hp and manage to stealth...

put the whole script inside an "if not hidden" statement:

if ( H notin #chatstatus )
{
script goes here
}

thanks to blaze for the script!

Re: [EasyUO] BlaZin' HealR | OpenEUO version

Posted: Wed Aug 17, 2011 2:45 am
by Mad Martigan
OpenEUO version - my first approach to OpenEUO so hope its good

Code: Select all

-- BlaZin' HealR
-- by BlaZe Buddle of Excelsior's ßud ßrothers
-- v1.1 Completed 12/28/10
-- OpenEUO version by Mad Martigan 08/17/11
hp = 75  -- This is the % your HP will be at before the script does a [bandself.
pause = 1 -- Increase this number if the script doesn't pause
while true do
      if string.match (UO.CharStatus, "H") == nil then
         if (( UO.Hits * 100 ) / UO.MaxHits) <= hp or string.match (UO.CharStatus, "C") ~= nil then
            UO.Macro(1,0,"[bandself")
            time = (11 - (math.floor(UO.Dex / 20))) * 1000
            if time < 250 then
               time = 250
            end
            wait (time + pause)
         end
      end
      wait (50)
end 

Re: [EasyUO] BlaZin' HealR

Posted: Mon Aug 22, 2011 5:15 am
by Trygg
Alright, I'm about done playing with my first attempt at EUO v1.5 scripting. At first it was not fancy, just did the job. Then read BlaZin' HealR script. wow... Didn't account for change of Dex and missed Poison condition! Had to have those in my script! Thanks BlaZin'!! After dyeing many times, there needed to be a fix for NOT Healing while Dead! eeeshh.. That was annoying! Now after reading comments posted here; The 'No Healing while Hidden' was great advice too! Thanks Much Nunja!

Ended (and Hunt) with this:

Code: Select all

; BlaZin' HealR
; by BlaZe Buddle of Excelsior's ßud ßrothers
; v1.1 Completed 12/28/10
;
; Basic Healing Macro with Bandaids.
;
; Loop!
Top:
; if char isn't Hidden. if dead do not heal, it's annoying. Heal if needed or Poisoned.
if H notIn #charStatus && #charGhost = NO && ( #hits < #maxhits || C in #charStatus )
{
; BlaZin's: take dex into account when waiting for aids healing.
 set %delay ( 11 - ( #dex / 20 ) ) * 20 ; 20 counts = 1 second
; Exec:  Bandage Self
 event macro 1 0 [bandself
; Pause ; For high dex instances
 if %delay < 5
 { ; don't heal faster than 1/4 sec. it produces spam.
  set %delay 5
 }
; Pause
; %delay should never be less than 1/4 sec (value of 5)
 wait %delay  ; Waits for Aids to be applied.
}

goto Top
Updated Script 8-29-11: On the rare occasion of fight with itchy feathers, this dex account for Aid Healing goes a little far. If dex is over 220 then heal time is far too quick and produces spam. eesh..!.. Added If Statement in case of Mighty Dex. We can't have heal spams! There was a couple ways to do this, after thinking it through, I chose against playing with another veritable and unnecessary lengthy code.

Re: [EasyUO] BlaZin' HealR

Posted: Tue Dec 13, 2011 10:05 am
by Focus
It's a small adjustment but I find it really annoying that it reveals me when I hide and spams heal when I am dead or under mortal strike.

Code: Select all

set %HP 90 ; This is the % your HP will be at before the script does a [bandself

if ( ( #hits * 100 ) / #maxhits <= %HP || C in #charstatus ) && ( #charGhost = NO && H notin #charstatus && D notin #charstatus )
  {
  event macro 1 0 [bandself
  set %time ( 11 - ( #dex / 20 ) ) * 20
  if %time < 1
    set %time 1
  wait %time
  }

Re: [EasyUO] BlaZin' HealR

Posted: Mon Jul 23, 2012 2:15 am
by Devlin
bump

Re: [EasyUO] BlaZin' HealR

Posted: Wed Nov 07, 2012 12:59 pm
by Devlin
bump and request for sticky

Re: [EasyUO] BlaZin' HealR

Posted: Tue Aug 06, 2013 8:42 am
by Old Remi
bump

Re: [EasyUO] BlaZin' HealR

Posted: Tue Oct 15, 2013 11:59 am
by Yoda
bumped because someone asked about it