Some things taken from Jaseowns scripts Modified by: Demlar UO Outlands IMPORTANT!!! **** this script currently assumes you have the auto unquip and reequip in razor **** requip is this way because we wont need to requip soon.
Chivalry
Chivalry Tanking Script.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/82c9f5a2-a231-4f4e-a3a5-98e2d0c64a2a for latest2# Automation by Jaseowns3## Script: Chivalry Tanking Script4## Created by: demlar#05#############################################6 7# Some things taken from Jaseowns scripts8#Modified by: Demlar9# UO Outlands10##IMPORTANT!!!11## **** this script currently assumes you have the auto unquip and reequip in razor ****12# requip is this way because we wont need to requip soon.13 14# have a seperate script that taunts all and plays this script after. (if needed dm and will add it to the list of scripts *patch will prevent this as some point*)15 16#Version 1.217#Changes:18# 1.1 19# 1: Updated useCurePotionBelowHp now should work properly.20# 2: Codex update should populate the codex21# 22# 1.223# 1: Fixed CodexHotbar to work properly 24#25#############################################################26@setvar! chivCD 3000027@setvar! skinningCD 300028 29#30# USER PREFERENCES!!31@setvar! autoSkinning 032@setvar! autoDropGold 133@setvar! useCurePotionBelowHp 8034@setvar! useCleansebyFire 135#mainly for bosses36 37if not timerexists ChivHeal138 createtimer ChivHeal139 settimer ChivHeal1 chivCD40endif41 42if not timerexists ChivHeal243 createtimer ChivHeal244 settimer ChivHeal2 chivCD45endif46 47 48if not timerexists chivCloseWounds49 createtimer chivCloseWounds50 settimer chivCloseWounds chivCD51endif52 53if not timerexists chivCleansebyFire54 createtimer chivCleansebyFire55 settimer chivCleansebyFire chivCD56endif57 58if not timerexists skinningTimer59 createtimer skinningTimer60 settimer skinningTimer skinningCD61endif62 63if not timerexists HPots64 createtimer HPots65 settimer HPots 1000066endif67 68 69#Finding Your Weapons and Shield70overhead 'setting hands'71if findlayer self righthand as item72 @setvar! rightEquip item73endif74 75if findlayer self lefthand as item76 @setvar! leftEquip item77endif78 79#Starting up verbose info your missing!80 81overhead 'Checking inventory'82if count 'bandages' = 083 overhead 'No Bandages!'84 overhead 'Get some Bandages!' 8885elseif not findtype 'Yellow Potion' backpack86 overhead 'No Greater heal pots'87 overhead 'Get some Greater heal pots!' 8888 89elseif not findtype 'Orange Potion' backpack90 overhead 'No Greater cure pots'91 overhead 'Get some Greater Cure pots!' 8892endif93 94#lets stop the script, if we dont have anything. are you tanking hits bro?95if count 'bandages' = 0 or not findtype "Yellow Potion" backpack or not findtype "Orange Potion" backpack96 overhead "Stopping script" 88 97 stop98endif99 100if findtype "shield codex|fencing codex|macing codex|sword codex|archery codex|wrestling codex" backpack as item101 102 getlabel item codexDesc103 104 while not gumpexists 2016719803105 overhead "Loading Codex Hotbar"106 say "[CodexHotBar"107 wait 350108 endwhile109endif110 111 112 113#No Hands left behind114###########################################115if rhandempty116 lift rightEquip117 drop 'self' RightHand118endif119 120if lhandempty121 lift leftEquip122 drop 'self' LeftHand123 endif124endif125###############################################126 127while not dead128 129 if not bandaging and hp < maxhp and count 'bandages' > 0130 hotkey 'Bandage Self'131 wait 300132 endif133 134 135 #check for food buffs136 if not findbuff "food satisfaction" and findtype 'tray' backpack as food137 dclick food138 wait 500139 endif140 141 #poison removal sequence142 if poisoned and timer chivCleansebyFire > chivCD and useCleansebyFire = 1143 overhead "Cleansing Poison With Fire"144 wait 250145 say '[CleanseByFire'146 if insysmsg "Holy symbols remaining:"147 settimer chivCleansebyFire 0148 endif149 endif 150 151 if poisoned and hp < useCurePotionBelowHp 152 while poisoned153 if findtype 'Orange Potion' backpack 154 overhead 'Cure Pot Used!'155 hotkey "Drink Cure"156 wait 1000157 endif158 endwhile159 endif160 161 #need a pot check here dont do it if we dont have any pots!!! 162 if poisoned and hp <= 40 163 overhead "Emergency Poison Removal Activated" 164 if not findbuff "I cannot gate travel" and timer ChivHeal1 > chivCD165 say '[HolyLight'166 if insysmsg "Holy symbols remaining:"167 settimer ChivHeal1 0168 endif169 endif170 endif 171 172 if findbuff "bleed" and timer chivCloseWounds > chivCD and useCloseWounds > 0 173 overhead "Bleed Detected. Closing wounds."174 say '[Closewounds'175 wait 500176 if insysmsg "Holy symbols remaining:"177 settimer chivCloseWounds 0178 wait 350179 180 else 181 settimer chivCloseWounds 27000182 endif 183 endif184 185 //Reduce Disease Damage186 if findbuff "disease" and timer chivCloseWounds > 30000 and useCloseWounds > 0187 188 say '[Closewounds'189 overhead "You got diseased. Closing Wounds."190 if insysmsg "Holy symbols remaining:"191 settimer chivCloseWounds 0192 wait 350193 else 194 settimer chivCloseWounds 27000195 endif 196 endif197 198 //Emergency Heal Sequence199 if diffhits > 30 200 if timer ChivHeal1 > chivCD 201 say '[Holylight'202 wait 250203 if insysmsg "Holy symbols remaining:"204 settimer ChivHeal1 0205 endif206 207 endif 208 endif 209 210 wait 350211 if diffhits > 50212 if timer ChivHeal2 > chivCD 213 say '[NobleSacrifice'214 wait 350215 target self216 wait 350217 218 if targetexists219 hotkey 'cancel current target'220 hotkey 'clear target queue'221 endif222 223 if insysmsg "Holy symbols remaining:"224 settimer ChivHeal2 0225 endif 226 endif227 endif228 229 #need a pot check here dont do it if we dont have any pots!!! 230 if diffhits > 50 and timer HPots > 10000 and findtype 'Yellow Potion' backpack 231 wait 250232 hotkey 'Drink Heal'233 overhead "Healing Pot Used"234 settimer HPots 0235 wait 550 236 endif 237 238 if autoSkinning = 1 and findtype "corpse" ground -1 -1 2 as skinCorpse239 if findtype "Elven Spellblade" backpack and timer skinningTimer >= skinningCD240 while not targetexists 241 useskill 'forensicevaluation'242 endwhile243 if targetexists beneficial or targetexists neutral244 hotkey "Target Self"245 wait 200246 settimer skinningTimer 0247 @ignore skinCorpse248 endif249 endif250 endif251 252 if autoDropGold = 1 and findbuff "weaken" and weight > maxweight 253 if findtype "gold coin" backpack as item254 lift item 2000255 droprelloc 0 0256 wait 200257 if insysmsg "cannot drop anything"258 drop backpack -1 -1 -1259 endif260 wait 650261 else262 overhead "We are overweight and cannot drop anything" 34263 endif264 endif265 266 // Trapped267 if paralyzed 268 if findtype "pouch" backpack 38 269 yell "[pouch"270 wait 200271 else272 overhead "Out of Pouches!" 34273 endif274 endif275 276 // capture world saving outside the loop277 if insysmsg 'world is saving'278 for 30279 overhead 'Waiting for world save...'280 wait 1000281 if insysmsg 'save complete'282 overhead 'Save complete - continue on!' 88283 replay284 endif285 endfor286 endif287 288endwhile