Back to "chiv" tags

SUPER-Auto healing by dennozz

Created: 09/09/2024
Last Updated: about 1 month ago
Description from the author:

Auto healing script using different healing methods.

#SUPER Auto-healer ver.5.03 #********** INFORMATION **********# #Made by @dennozz on discord. #Inspired/learned by other scrips in https://outlands.uorazorscripts.com/ # **If you like my work and wish to buy me a coffee: https://buymeacoffee.com/dennoz** # # Information : This is a script to auto heal you using Magery, Chivarly, Potions, Bandages and magery buffs # Updates #Ver 5.01 - Fixes and improvements #Ver 4.09 - Fixed bug for dropping the gold when max weight #Ver 4.08 - Added the use of cure potion when bleed or disease using ability Panacea from alchemy codex #Ver 4.00 - Restructured code and changed variables to make it more friendly to adjust the hit points differences for healing trigger #********** SET YOUR SETTINGS **********# #--- Set Mage auto heals ---# @setvar! miniHeal 1 @setvar! greaterHeal 1 @setvar! cureSpell 1 #--- Set Mage Buffs ---# @setvar! magicReflect 1 @setvar! blessSpell 1 @setvar! armorReflect 1 @setvar! protectionSpell 1 @setvar! miniumManaToBuff 50 #--- Set Chivarly auto heals ---# @setvar! nobleSacrifice 1 @setvar! holyLight 1 @setvar! nobleSacrificeDiff 80 @setvar! holyLightDiff 60 #--- Set potions ---# @setvar! drinkStr 1 @setvar! strengthLowerThan 101 @setvar! drinkAgility 1 @setvar! drinkMagicResist 1 @setvar! drinkHeal 1 @setvar! drinkCure 1 @setvar! drinkRefresh 1 @setvar! staminaLowerThan 90 #--- Alchemy Codex ---# @setvar! panaceaAbility 1 #--- Auto healing hp diffs ---# #--- All variables refer to hit points differences ---# #--- When below certain hit points it will trigger ---# @setvar! activateAutoHealDiff 1 @setvar! startCastMiniHealDiff 9 @setvar! endCastMiniHealDiff 21 @setvar! castEmergencyMiniHealDiff 72 @setvar! startCastGreaterHealDiff endCastMiniHealDiff @setvar! endCastGreaterHealDiff 200 @setvar! drinkHealPotDiff 35 @setvar! interruptCastingBuffsDiff 40 #--- Set mushrooms ---# @setvar! mushroomCount 3 @setvar! eatMushWhenManaLowerThan 50 l @setvar! mushroomTimerCD 60000 #--- Drop Gold When Overweight ---# @setvar! amountOfGoldToDrop 500 @setvar! lowManaWarningMessageWhenBelow 11 #********** DO NOT EDIT UNLESS YOU KNOW WHAT YOU ARE DOING ********** @setvar! holyPoints 0 @setvar! nobleCD 30000 settimer nobleTimer nobleCD @setvar! nobleMessageCD 500 settimer nobleMessageTimer nobleMessageCD @setvar! holyLightCD 30000 settimer holyLightTimer holyLightCD @setvar! maxwaittimeinms 650 #--- Script msgs timers ---# @setvar! autoHealMessageCD 4500 settimer autoHealMessageTimer 0 @setvar! guardMessageCD 5500 settimer guardMessageTimer guardMessageCD @setvar! manaMessageCD 2222 settimer manaMessageTimer manaMessageCD @setvar! overweightMessageCD 3000 settimer overweightMessageTimer overweightMessageCD #--- Resources timers ---# @setvar! pouchMessageCD 5000 settimer pouchMessageTimer pouchMessageCD @setvar! aidsMessageCD 4000 settimer aidsMessageTimer aidsMessageCD @setvar! whiteMessageCD 3000 settimer whiteMessageTimer whiteMessageCD @setvar! blueMessageCD 3000 settimer blueMessageTimer blueMessageCD @setvar! blackMessageCD 2500 settimer blackMessageTimer blackMessageCD @setvar! orangeMessageCD 2000 settimer orangeMessageTimer orangeMessageCD @setvar! yellowMessageCD 1500 settimer yellowMessageTimer yellowMessageCD @setvar! redMessageCD 1000 settimer redMessageTimer redMessageCD @setvar! foodMessageCD 3333 settimer foodMessageTimer foodMessageCD #--- Magery buffs timers ---# @setvar! magicReflectCD 15000 settimer magicReflectTimer 15000 @setvar! armorReflectCD 15000 settimer armorReflectTimer 15000 @setvar! protectionCD 15000 settimer protectionTimer 15000 overhead "Auto Healing Activated" 66 if nobleSacrifice = 1 or holyLight = 1 if findtype 'paladin spellbook' backpack yell '[chivalryhotbar' while not gumpexists 1387930325 yell '[chivalryhotbar' waitforgump 1387930325 maxwaittimeinms endwhile endif endif while not dead if timer autoHealMessageTimer > autoHealMessageCD overhead "* auto-healing *" 90 settimer autoHealMessageTimer 0 endif if not findbuff "food" if findtype "tray" backpack as fody dclick fody wait 200 else if timer foodMessageTimer > foodMessageCD overhead "No food found!" 34 settimer foodMessageTimer 0 endif endif endif if weight > maxweight if timer overweightMessageTimer > overweightMessageCD overhead "Overweight !!" 34 settimer overweightMessageTimer 0 endif if 0 != amountOfGoldToDrop while weight > maxweight if findtype "gold coin" backpack as item lift item amountOfGoldToDrop droprelloc 0 0 getlabel backpack xxx wait 200 if insysmsg "cannot drop anything" drop backpack -1 -1 -1 endif wait maxwaittimeinms overhead "* Gold Dropped *" 55 endif endwhile endif endif if findbuff "Noble Sacrifice" and timer nobleMessageTimer > nobleMessageCD sysmsg "Healing Restricted" 34 overhead "Healing Restricted" 34 settimer nobleMessageTimer 0 endif if panaceaAbility = 1 if findbuff "bleed" or findbuff "diseased" if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 200 if findbuff "panacea potion cooldown" overhead "Panacea Activated!" 55 sysmsg "Panacea Activated!" 55 endif endif endif endif endif #--- Trapped ---# if paralyzed if findtype "pouch" backpack 38 yell "[pouch" wait 200 else if timer pouchMessageTimer > pouchMessageCD overhead "Out of Pouches!" 34 settimer pouchMessageTimer 0 endif endif endif #--- Self bandage ---# if diffhits >= 1 and not bandaging and not findbuff "Noble Sacrifice" if skill 'healing' >= 50 or skill "veterinary" >= 50 if findtype 'clean bandage%s%' backpack if targetexists hotkey 'cancel current target' endif dclicktype 'clean bandage%s%' sysmsg "bandaged" 22 waitfortarget maxwaittimeinms target 'self' wait 200 else if timer aidsMessageTimer > aidsMessageCD overhead "Out of bandages" 34 settimer aidsMessageTimer 0 endif endif endif endif #--- Drink str pot ---# if drinkStr = 1 and str < strengthLowerThan if not findbuff "Strength" if findtype "White Potion" self dclicktype "White Potion" sysmsg "strength pot" 1 wait 200 else if timer whiteMessageTimer > whiteMessageCD overhead "Out of str pots" 34 settimer whiteMessageTimer 0 endif endif endif endif #--- Drink agility pot ---# if drinkAgility = 1 if not findbuff "Agility" if findtype "Blue Potion" self dclicktype "Blue Potion" sysmsg "agility pot" 86 wait 200 else if timer blueMessageTimer > blueMessageCD overhead "Out of agility pots" 34 settimer blueMessageTimer 0 endif endif endif endif #--- Drink magic resist pot ---# if drinkMagicResist = 1 if not findbuff "Magic Resist" if findtype "Black Potion" self dclicktype "Black Potion" sysmsg "magic resist pot" 111 wait 200 else if timer blackMessageTimer > blackMessageCD overhead "Out of resist pots" 34 settimer blackMessageTimer 0 endif endif endif endif #--- Poisoned ---# if 1 = drinkCure or 1 = cureSpell while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" sysmsg "cure pot" 44 wait 200 else if timer orangeMessageTimer > orangeMessageCD overhead "Out of cure pots" 34 settimer orangeMessageTimer 0 endif if diffhits >= 30 or not findtype 3972 self or not findtype 3973 self break endif if skill 'magery' >= 40 and mana >= 6 and 1 = cureSpell and not casting cast 'cure' wait 50 while not casting if targetexists hotkey 'cancel current target' endif cast 'cure' wait 50 endwhile while not targetexists and casting endwhile waitfortarget maxwaittimeinms target 'self' wait 200 else break endif endif endwhile endif #--- Drink Heal Pot ---# if diffhits >= drinkHealPotDiff and 1 = drinkHeal and not findbuff "Noble Sacrifice" if findtype "Yellow Potion" self as hPot getlabel hPot potLabel if "(" in potLabel else dclicktype 3852 getlabel backpack xxx sysmsg "heal pot" 55 endif else if timer yellowMessageTimer > yellowMessageCD overhead "Out of heals pots" 34 settimer yellowMessageTimer 0 endif endif endif #--- Drink red pot ---# if stam < staminaLowerThan and 1 = drinkRefresh and diffstam > 1 if findtype "Red Potion" self dclicktype "Red Potion" sysmsg "refresh pot" 234 wait 200 else if timer redMessageTimer > redMessageCD overhead "Out of refresh pots" 34 settimer redMessageTimer 0 endif endif endif #--- Cast Chivarly ---# @setvar! castingInterrupted 0 if ingump "20/" 1387930325 @setvar! holyPoints 20 elseif ingump "19/" 1387930325 @setvar! holyPoints 19 elseif ingump "18/" 1387930325 @setvar! holyPoints 18 elseif ingump "17/" 1387930325 @setvar! holyPoints 17 elseif ingump "16/" 1387930325 @setvar! holyPoints 16 elseif ingump "15/" 1387930325 @setvar! holyPoints 15 elseif ingump "14/" 1387930325 @setvar! holyPoints 14 elseif ingump "13/" 1387930325 @setvar! holyPoints 13 elseif ingump "12/" 1387930325 @setvar! holyPoints 12 elseif ingump "11/" 1387930325 @setvar! holyPoints 11 elseif ingump "10/" 1387930325 @setvar! holyPoints 10 elseif ingump "9/" 1387930325 @setvar! holyPoints 9 elseif ingump "8/" 1387930325 @setvar! holyPoints 8 elseif ingump "7/" 1387930325 @setvar! holyPoints 7 elseif ingump "6/" 1387930325 @setvar! holyPoints 6 elseif ingump "5/" 1387930325 @setvar! holyPoints 5 elseif ingump "4/" 1387930325 @setvar! holyPoints 4 elseif ingump "3/" 1387930325 @setvar! holyPoints 3 elseif ingump "2/" 1387930325 @setvar! holyPoints 2 elseif ingump "1/" 1387930325 @setvar! holyPoints 1 else @setvar holyPoints 0 endif if holyLight = 1 and 4 < holyPoints and timer holyLightTimer > holyLightCD and not findbuff "Noble Sacrifice" and skill 'chivalry' >= 95 and skill 'tactics' >= 95 and diffhits >= holyLightDiff @setvar! castingInterrupted 0 if insysmsg "holy symbols remaining" endif if insysmsg "seconds before you may use that ability again." endif while not insysmsg "holy symbols remaining" and not dead sysmsg "holy light" 46 hotkey 'holy light' getlabel backpack xxx wait 200 if insysmsg "seconds before you may use that ability again." sysmsg "holylight on cooldown" 44 @setvar! castingInterrupted 1 break endif endwhile if castingInterrupted = 0 overhead '[>Holy Light<]' 46 settimer holyLightTimer 0 endif elseif nobleSacrifice = 1 and 3 < holyPoints and timer nobleTimer > nobleCD and skill 'chivalry' >= 80 and skill 'tactics' >= 80 and diffhits >= nobleSacrificeDiff @setvar! castingInterrupted 0 if insysmsg "holy symbols remaining" endif if insysmsg "seconds before you may use that ability again." endif while not insysmsg "holy symbols remaining" and not insysmsg "whom do you wish to heal" and not dead sysmsg "noble sacrifice" 46 hotkey 'noble sacrifice' getlabel backpack xxx wait 200 if insysmsg "seconds before you may use that ability again." sysmsg "Noble Sacrifice on cooldown" 44 @setvar! castingInterrupted 1 break endif endwhile if castingInterrupted = 0 overhead '[>Noble Sacrifice<]' 48 waitfortarget maxwaittimeinms target 'self' settimer nobleTimer 0 endif endif #--- Cast heals ---# if skill 'magery' >= 40 and diffhits >= startCastMiniHealDiff and diffhits < endCastMiniHealDiff and mana >= 4 and miniHeal = 1 and not casting and not findbuff "Noble Sacrifice" if insysmsg "Your concentration is disturbed" endif sysmsg "mini heal" 11 cast 'heal' while not casting if targetexists hotkey 'cancel current target' endif cast 'heal' endwhile while not targetexists if insysmsg "Your concentration is disturbed" interrupt @setvar! castingInterrupted 1 break endif endwhile if castingInterrupted = 0 target 'self' endif elseif skill 'magery' >= 40 and diffhits >= castEmergencyMiniHealDiff and mana >= 4 and miniHeal = 1 and not casting and not findbuff "Noble Sacrifice" if insysmsg "Your concentration is disturbed" endif sysmsg "mini heal" 11 cast 'heal' while not casting if targetexists hotkey 'cancel current target' endif cast 'heal' endwhile while not targetexists if insysmsg "Your concentration is disturbed" interrupt @setvar! castingInterrupted 1 break endif endwhile if castingInterrupted = 0 target 'self' endif elseif skill 'magery' >= 60 and diffhits >= startCastGreaterHealDiff and diffhits < endCastGreaterHealDiff and mana >= 11 and greaterHeal = 1 and not casting and not findbuff "Noble Sacrifice" if insysmsg "Your concentration is disturbed" endif sysmsg "greater heal" 88 cast 'greater heal' while not casting if targetexists hotkey 'cancel current target' endif cast 'greater heal' endwhile @settimer! spellTimer 0 @setvar! spellCD 800 while not targetexists if insysmsg "Your concentration is disturbed" interrupt @setvar! castingInterrupted 1 break endif if timer spellTimer < spellCD #--- Poisoned ---# if 1 = drinkCure while poisoned and casting and not targetexists if findtype "Orange Potion" self dclicktype "Orange Potion" sysmsg "cure pot" 44 wait 200 else if timer orangeMessageTimer > orangeMessageCD overhead "Out of cure pots" 34 settimer orangeMessageTimer 0 endif break endif endwhile endif #--- Drink Heal Pot ---# if diffhits >= drinkHealPotDiff and 1 = drinkHeal and casting and not targetexists and not findbuff "Noble Sacrifice" if findtype "Yellow Potion" self as hPot getlabel hPot potLabel if "(" in potLabel else dclicktype 3852 sysmsg "heal pot" 55 getlabel backpack xxx endif else if timer yellowMessageTimer > yellowMessageCD overhead "Out of heals pots" 34 settimer yellowMessageTimer 0 endif endif endif endif endwhile if castingInterrupted = 0 target 'self' endif endif #********** AUTO-MAGERY BUFFS IF NEEDED ********** @setvar! castingInterrupted 0 if magicReflect = 1 and skill 'magery' >= 70 and not findbuff "Magic Reflection" and mana >= miniumManaToBuff and diffhits < activateAutoHealDiff and timer magicReflectTimer > magicReflectCD and findtype 3972 self and findtype 3974 self and findtype 3981 self and not find currentTarget ground -1 -1 12 if insysmsg "that spell will not" endif if insysmsg "that spell is already" endif sysmsg "magic reflect" 11 cast 'Magic Reflection' while not casting getlabel backpack xxx wait 200 if insysmsg "that spell will not" or insysmsg "that spell is already" settimer magicReflectTimer 0 break endif if targetexists hotkey 'cancel current target' endif cast 'Magic Reflection' endwhile while casting if diffhits >= interruptCastingBuffsDiff or poisoned interrupt @setvar! castingInterrupted 1 break endif endwhile wait 200 endif if armorReflect = 1 and skill 'magery' >= 30 and not findbuff "Reactive Armor" and mana >= miniumManaToBuff and diffhits < activateAutoHealDiff and timer armorReflectTimer > armorReflectCD and findtype 3980 self and findtype 3972 self and findtype 3981 self and not find currentTarget ground -1 -1 12 if insysmsg "that spell will not" endif if insysmsg "that spell is already" endif sysmsg "reflect armor" 11 cast 'Reactive Armor' while not casting getlabel backpack xxx wait 200 if insysmsg "that spell will not" or insysmsg "that spell is already" settimer armorReflectTimer 0 break endif if targetexists hotkey 'cancel current target' endif cast 'Reactive Armor' endwhile while casting endwhile getlabel backpack xxx wait 200 endif if protectionSpell = 1 and skill 'magery' >= 40 and not findbuff "Protection" and mana >= miniumManaToBuff and diffhits < activateAutoHealDiff and findtype 3980 self and findtype 3972 self and findtype 3973 self and not find currentTarget ground -1 -1 12 sysmsg "protect" 11 cast 'Protection' while not casting if targetexists hotkey 'cancel current target' endif cast 'Protection' endwhile while casting endwhile wait 200 endif if blessSpell = 1 and skill 'magery' >= 50 and not findbuff "Cunning" and mana >= miniumManaToBuff and diffhits < activateAutoHealDiff and findtype 3972 self and findtype 3974 self and not find currentTarget ground -1 -1 12 sysmsg "bless" 11 cast 'Bless' while not casting if targetexists hotkey 'cancel current target' endif cast 'Bless' wait 50 endwhile while not targetexists and casting endwhile waitfortarget maxwaittimeinms target 'self' wait 200 endif if mana < lowManaWarningMessageWhenBelow and timer manaMessageTimer > manaMessageCD overhead "Low mana warning" 34 settimer manaMessageTimer 0 endif endwhile

Quick Filters

Bard Quick SearchCrafter Quick SearchDexxer Quick SearchHarvester Quick SearchMage Quick SearchPVM Quick SearchPVP Quick SearchStealth Quick SearchTamer Quick Search