[EasyUO] BlaZin' HealR

If you make a Client-side script you can publish it here for other players to use
User avatar
BlaZe
Legendary Scribe
Posts: 402
Joined: Thu Dec 25, 2008 12:54 am
Location: Ann Arbor, MI; USA

[EasyUO] BlaZin' HealR

Post 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
  }
Last edited by BlaZe on Sun Mar 13, 2011 8:14 pm, edited 2 times in total.
EasyUO Devotee
Download
My Popular ScripZ
Pet FightR | Doorman | TrainR: Lockpicking | HealR
User avatar
BlaZe
Legendary Scribe
Posts: 402
Joined: Thu Dec 25, 2008 12:54 am
Location: Ann Arbor, MI; USA

Re: [EasyUO] BlaZin' HealR

Post by BlaZe »

Bump for a buddy.
EasyUO Devotee
Download
My Popular ScripZ
Pet FightR | Doorman | TrainR: Lockpicking | HealR
leelo
Expert Scribe
Posts: 39
Joined: Sat Jan 29, 2011 10:23 pm

Re: [EasyUO] BlaZin' HealR

Post by leelo »

Im having some issues with this script not working at all
Mephuzeler
Passer by
Posts: 3
Joined: Sun Feb 27, 2011 10:12 am

Re: [EasyUO] BlaZin' HealR

Post 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
Naihonn
Apprentice Scribe
Posts: 12
Joined: Thu Feb 24, 2011 11:59 am

Re: [EasyUO] BlaZin' HealR

Post 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:
TheWatcher
Elder Scribe
Posts: 164
Joined: Wed Nov 11, 2009 12:15 am

Re: [EasyUO] BlaZin' HealR

Post 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
leelo
Expert Scribe
Posts: 39
Joined: Sat Jan 29, 2011 10:23 pm

Re: [EasyUO] BlaZin' HealR

Post by leelo »

Thanks a lot its working now :)
Nunja
Grandmaster Scribe
Posts: 79
Joined: Mon Feb 21, 2011 9:27 pm

Re: [EasyUO] BlaZin' HealR

Post 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!
User avatar
Mad Martigan
Novice Scribe
Posts: 9
Joined: Tue May 17, 2011 11:20 am
Location: Italy

Re: [EasyUO] BlaZin' HealR | OpenEUO version

Post 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 
Check out My Yumi vendor catalogue thread

( Y U NO BUY A YUMI? )
Trygg
Master Scribe
Posts: 62
Joined: Tue Aug 17, 2010 11:18 am

Re: [EasyUO] BlaZin' HealR

Post 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.
Last edited by Trygg on Sat Dec 31, 2011 12:20 pm, edited 1 time in total.
Focus
Novice Scribe
Posts: 5
Joined: Sat Aug 28, 2010 6:06 pm

Re: [EasyUO] BlaZin' HealR

Post 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
  }
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [EasyUO] BlaZin' HealR

Post by Devlin »

bump
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [EasyUO] BlaZin' HealR

Post by Devlin »

bump and request for sticky
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
Old Remi
Apprentice Scribe
Posts: 16
Joined: Thu Nov 11, 2010 1:39 pm

Re: [EasyUO] BlaZin' HealR

Post by Old Remi »

bump
User avatar
Yoda
Legendary Scribe
Posts: 813
Joined: Thu Feb 24, 2011 11:38 am
Location: Canada

Re: [EasyUO] BlaZin' HealR

Post by Yoda »

bumped because someone asked about it
Guildmaster: JDI - Est 2011
Locked