Basic Heal and Chivalry abilities to heal by Jaseowns
# Basic Heal and Chivalry abilties to heal by Jaseowns
# UO Outlands
if skill "Chivalry" >= 50
@setvar! lowHealthTriggerForNobleSacrifice 40
@setvar! chivSymbols 0
@setvar! showChivUsageAsOverhead 1
@setvar! showChivUsageAsSystemMessage 1
@setvar! showChivUsageAsOverheadColor 88
@setvar! showChivUsageAsSystemMessageColor 88
@setvar! cdCleanseByFire 31000
@setvar! cdCloseWounds 31000
@setvar! cdNobleSacrifice 31000
if not timerexists nobleSacrificeTimer
createtimer nobleSacrificeTimer
settimer nobleSacrificeTimer cdCleanseByFire
endif
if not timerexists cleanseByFireTimer
createtimer cleanseByFireTimer
settimer cleanseByFireTimer cdCleanseByFire
endif
if not timerexists closeWoundsTimer
createtimer closeWoundsTimer
settimer closeWoundsTimer cdCloseWounds
endif
while not gumpexists 1387930325
say "[ChivalryHotbar"
wait 200
endwhile
if gumpexists 1387930325
if ingump "12/" 1387930325
@setvar! chivSymbols 12
elseif ingump "13/" 1387930325
@setvar! chivSymbols 13
elseif ingump "14/" 1387930325
@setvar! chivSymbols 14
elseif ingump "15/" 1387930325
@setvar! chivSymbols 15
elseif ingump "16/" 1387930325
@setvar! chivSymbols 16
elseif ingump "17/" 1387930325
@setvar! chivSymbols 17
elseif ingump "18/" 1387930325
@setvar! chivSymbols 18
elseif ingump "19/" 1387930325
@setvar! chivSymbols 19
elseif ingump "20/" 1387930325
@setvar! chivSymbols 20
elseif ingump "21/" 1387930325
@setvar! chivSymbols 21
elseif ingump "11/" 1387930325
@setvar! chivSymbols 11
elseif ingump "10/" 1387930325
@setvar! chivSymbols 10
elseif ingump "9/" 1387930325
@setvar! chivSymbols 9
elseif ingump "8/" 1387930325
@setvar! chivSymbols 8
elseif ingump "7/" 1387930325
@setvar! chivSymbols 7
elseif ingump "6/" 1387930325
@setvar! chivSymbols 6
elseif ingump "5/" 1387930325
@setvar! chivSymbols 5
elseif ingump "4/" 1387930325
@setvar! chivSymbols 4
elseif ingump "3/" 1387930325
@setvar! chivSymbols 3
elseif ingump "2/" 1387930325
@setvar! chivSymbols 2
elseif ingump "1/" 1387930325
@setvar! chivSymbols 1
elseif ingump "0/" 1387930325
@setvar! chivSymbols 0
endif
endif
if hp <= lowHealthTriggerForNobleSacrifice and skill "Chivalry" >= 80
if timer nobleSacrificeTimer >= cdNobleSacrifice and 4 < chivSymbols
if showChivUsageAsOverhead = 1
overhead "Noble Sacrifice" showChivUsageAsOverheadColor
endif
if showChivUsageAsSystemMessage = 1
sysmsg "Noble Sacrifice" showChivUsageAsSystemMessageColor
endif
yell "[NobleSacrifice"
wft 500
hotkey "Target Self"
settimer nobleSacrificeTimer 0
cooldown NobleSacrifice cdNobleSacrifice
endif
endif
if poisoned and skill "Chivalry" >= 60
if timer cleanseByFireTimer >= cdCleanseByFire and 2 < chivSymbols
if showChivUsageAsOverhead = 1
overhead "Cleanse by fire" showChivUsageAsOverheadColor
endif
if showChivUsageAsSystemMessage = 1
sysmsg "Cleanse by fire" showChivUsageAsSystemMessageColor
endif
yell "[CleanseByFire"
settimer cleanseByFireTimer 0
cooldown CleanseByFire cdCleanseByFire
endif
elseif findbuff "bleed" or findbuff "disease" and skill "Chivalry" >= 70
if timer closeWoundsTimer >= cdCleanseByFire and 3 < chivSymbols
if showChivUsageAsOverhead = 1
overhead "Close Wounds" showChivUsageAsOverheadColor
endif
if showChivUsageAsSystemMessage = 1
sysmsg "Close Wounds" showChivUsageAsSystemMessageColor
endif
yell "[CloseWounds"
settimer closeWoundsTimer 0
cooldown CloseWounds cdCloseWounds
endif
endif
endif
if skill "Healing" > 0
@setvar! cdAids 15000
if dex >= 100
@setvar! cdAids 10000
endif
if not timerexists aidsTimer
createtimer aidsTimer
settimer aidsTimer cdAids
endif
if findtype "clean bandage%s%" backpack
if skill "Chivalry" >= 80 and timer nobleSacrificeTimer <= 5000 and timer aidsTimer >= 5000 and hp < maxhp
hotkey 'Bandage Self'
settimer aidsTimer 0
elseif not bandaging and hp < maxhp
hotkey 'Bandage Self'
settimer aidsTimer 0
elseif not bandaging and poisoned
hotkey 'Bandage Self'
settimer aidsTimer 0
elseif not bandaging and findbuff "bleed"
hotkey 'Bandage Self'
settimer aidsTimer 0
elseif not bandaging and findbuff "disease"
hotkey 'Bandage Self'
settimer aidsTimer 0
endif
else
overhead "No bandages" 34
endif
endif