One hotkey mage cycle by Jaseowns UO Outlands - WIP Check out https://outlands.uorazorscripts.com/script/25b38218-28e5-43d1-b9e1-01de484da5ce for latest
MagicMeditation
One hotkey mage cycle 1.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/b5e06bc3-47fa-49a5-b681-1b0e1e6536d2 for latest2# Automation by Jaseowns3## Script: One hotkey mage cycle (1)4## Created by: Jaseowns#66945#############################################6 7# One hotkey mage cycle by Jaseowns8# UO Outlands - WIP9##################10############11#########12#####13# Check out https://outlands.uorazorscripts.com/script/25b38218-28e5-43d1-b9e1-01de484da5ce for latest14##################15############16#########17#######################18############19#########20#######################21############22#########23#######################24############25#########26#######################27############28#########29#####30 31// Beta client for cooldowns32// cooldowns for mushrooms, mana vampire and healpots33// for now using timers34 35# Update this variable to 1 for ALL KILL36# Update this variable to 0 for target nearest37@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 038 39 40@setvar! cdLightning 4000041@setvar! cdMagicArrow 2000042@setvar! cdHarm 4000043@setvar! cdFireball 6000044@setvar! cdEvilOmen 3000045@setvar! cdVampiricEmbrace 3000046@setvar! cdMushroom 6000047 48if not timerexists magicMushroomTimer49 createtimer magicMushroomTimer50 settimer magicMushroomTimer cdMushroom51endif52 53if not timerexists magicArrowTimer54 createtimer magicArrowTimer55 settimer magicArrowTimer cdMagicArrow56endif57 58if not timerexists lightningTimer59 createtimer lightningTimer60 settimer lightningTimer cdLightning61endif62 63if not timerexists harmTimer64 createtimer harmTimer65 settimer harmTimer cdHarm66endif67 68if not timerexists fireballTimer69 createtimer fireballTimer70 settimer fireballTimer cdFireball71endif72 73if not timerexists evilOmenTimer74 createtimer evilOmenTimer75 settimer evilOmenTimer cdEvilOmen76endif77 78if not timerexists vampiricEmbraceTimer79 createtimer vampiricEmbraceTimer80 settimer vampiricEmbraceTimer cdVampiricEmbrace81endif82 83if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 184 say "all kill"85 wait 20086 while targetexists 87 // wait88 wait 5089 endwhile90else91 hotkey 'Target Closest Non-Friendly Monster'92 wait 20093 if insysmsg "No one matching that was found"94 overhead "found no one" 3495 stop96 endif 97endif98 99@setvar myKillTarget lasttarget 100 101if not varexist myPreviousKillTarget102 @setvar myPreviousKillTarget 0 103endif104 105getlabel myKillTarget desc106overhead desc107 108if not varexist myEarthPet or dead myEarthPet109 overhead "Your pet is dead, demonic summon time" 34110else111 menu myEarthPet 1112 wft 500113 target myKillTarget114endif115 116if find myKillTarget -1 -1 12 as killy117 // do nothing118else119 overhead "Out of range" 34120 stop121endif122 123if myKillTarget = myPreviousKillTarget124 // do nthoing125else126 127 while not targetexists and not dead myKillTarget128 cast 'Curse'129 wait 50130 if diffhits >= 30 131 hotkey '> Interrupt'132 break133 endif134 endwhile135 target myKillTarget136 wait 500137 138 139 while not targetexists and not dead myKillTarget140 cast 'mana drain'141 wait 50142 if diffhits >= 30 143 hotkey '> Interrupt'144 break145 endif146 endwhile147 target myKillTarget148 wait 500149 150 @setvar myPreviousKillTarget myKillTarget151 152endif153 154if timer evilOmenTimer >= cdEvilOmen155 say "[EvilOmen"156 settimer evilOmenTimer 0157 wait 500158endif159 160clearsysmsg 161 162say "all guard"163 164while not dead myKillTarget165 166 if timer vampiricEmbraceTimer >= cdVampiricEmbrace and findtype 8198 ground -1 -1 4 as jorpse167 say "[VampiricEmbrace"168 wft 500169 target jorpse170 settimer vampiricEmbraceTimer 0171 endif172 173 if find myKillTarget -1 -1 12 as killy174 // do nothing175 else176 overhead "Out of range" 34177 break178 endif179 180 if diffhits < 30 and mana > 12 and timer lightningTimer >= cdLightning181 while not targetexists or diffhits >= 30 182 cast 'Lightning'183 wait 50184 if dead myKillTarget185 hotkey '> Interrupt'186 break187 endif188 endwhile189 target myKillTarget190 settimer lightningTimer 0191 wait 500192 endif193 194 if diffhits < 30 and mana > 10 and timer magicArrowTimer >= cdMagicArrow195 while not targetexists or diffhits >= 30 196 cast 'magic arrow'197 wait 50198 if dead myKillTarget199 hotkey '> Interrupt'200 break201 endif202 endwhile203 target myKillTarget204 settimer magicArrowTimer 0205 wait 500206 endif207 208 if diffhits < 30 and mana > 12 and timer harmTimer >= cdHarm209 while not targetexists210 cast 'harm'211 wait 50212 if dead myKillTarget or diffhits >= 30 213 hotkey '> Interrupt'214 break215 endif216 endwhile217 target myKillTarget218 settimer harmTimer 0219 wait 500220 endif221 222 if diffhits < 30 and mana > 12 and timer fireballTimer >= cdFireball223 while not targetexists224 cast 'fireball'225 wait 50226 if dead myKillTarget or diffhits >= 30 227 hotkey '> Interrupt'228 break229 endif230 endwhile231 target myKillTarget232 settimer fireballTimer 0233 wait 500234 endif235 236 if diffhits >= 30 and mana > 12237 while not targetexists238 if diffhits >= 60239 cast 'Heal'240 else241 cast 'Greater Heal' 242 endif243 wait 50244 if hp = maxhp245 hotkey '> Interrupt'246 break247 endif248 endwhile249 target self250 elseif mana < 55 and findbuff "actively meditating" 251 // wait for mana252 elseif mana > 40253 while not targetexists and mana > 40254 cast 'Flamestrike'255 wait 50256 if dead myKillTarget or diffhits >= 30257 hotkey '> Interrupt'258 break259 endif260 endwhile261 target myKillTarget262 elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy263 dclick mushy264 settimer magicMushroomTimer 0265 elseif not findbuff "actively meditating" 266 useskill 'meditation'267 wait 500268 endif269 wait 50270endwhile271wait 500272if targetexists 273 hotkey 'Cancel Current Target'274endif275say "all guard me"276if counttype "mushroom" backpack < 5277 while counttype "mushroom" backpack < 15278 cast "Create Food"279 wait 200280 endwhile281endif282while mana < 50283 if not findbuff "actively meditating" 284 useskill 'meditation'285 endif286 wait 500287endwhile288if timer vampiricEmbraceTimer >= cdVampiricEmbrace and findtype 8198 ground -1 -1 4 as jorpse289 say "[VampiricEmbrace"290 wft 500291 target jorpse292 settimer vampiricEmbraceTimer 0293endif294 295 296 297// curse298// mana drain299// magic arrrow300// harm301// fireball302// lightening