DiscordanceTracking
KMA_v1.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/1e08850f-b1ff-447e-b5cb-64be148e95df for latest2# Automation by Jaseowns3## Script: KMA_v14## Created by: ProMess#17035#############################################6 7@setvar! minimumWaitForPing 2008@setvar! cdMushroom 610009//todo: build toggle off of warmode status to regenerate mushrooms after mobs are dead10@setvar! canYouMakeAMushroom 111@setvar! cdLightning 2000012@setvar! cdMagicArrow 2000013@setvar! cdHarm 2000014@setvar! cdFireball 6000015 16@setvar! hpCheckToTriggerGreaterHealSpell 4517@setvar! hpCheckToTriggerMiniEmergencyHealSpell 7018@setvar! hpCheckToTriggerHealPotion 6019 20//statuses21@setvar! canMushroom 122@setvar! canDiscord 123@setvar! isDiscorded 024 25 26if not timerexists magicMushroomTimer27 createtimer magicMushroomTimer28endif29 30if not timerexists meditationTimer31 createtimer meditationTimer32endif33 34if not timerexists statusM35 createtimer statusM36 settimer statusM 2100037endif38 39if not timerexists cdMushroom40 createtimer cdMushroom41endif42 43if not timerexists musicTimer44 createtimer musicTimer45endif46 47if not timerexists antispam48 createtimer antispam49endif50 51if not timerexists ssTimer52 createtimer ssTimer53endif54 55if timer statusM > 2000056 sysmsg 'Keeping you up'57 settimer statusM 058endif59 60 61if diffhits >= hpCheckToTriggerGreaterHealSpell62 if targetexists 63 hotkey 'Cancel Current Target'64 endif65 while not targetexists 'beneficial'66 if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell67 cast 'Heal'68 else69 cast 'Greater Heal' 70 endif71 wait 5072 endwhile73 if targetexists 'beneficial'74 hotkey "Target Self"75 endif76 replay77endif78 79 80if diffhits >= hpCheckToTriggerHealPotion and findtype "Yellow Potion" backpack as pot 81 getlabel pot desc82 if "next usable" in desc83 // do nothing84 else85 dclick pot86 wait 65087 endif88endif89 90if diffmana > 50 91 if timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushroom92 if timer antispam > 1000093 overhead "Eating shrooms" 6694 endif95 dclick mushroom96 wait 20097 if insysmsg "You consume a magic mushroom and restore some mana."98 settimer magicMushroomTimer 0 99 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"100 settimer magicMushroomTimer 30000101 endif102 if followers > 0 and timer antispam > 10000103 say "all guard me"104 endif105 endif106 107 #if not findbuff "actively meditating"108# skill 'Meditation'109# settimer meditationTimer 0110# insysmsg 'meditation'111# 112# endif113endif114 115if targetexists harmful116 wait 500117 if timer antispam > 10000118 sysmsg 'target acquired'119 endif120 @setvar myKillTarget lasttarget 121endif122 123if skill "Discordance" >= 50 and canDiscord = 1 124 if isDiscorded = 0 125 getlabel myKillTarget discordDesc126 if "discord" in discordDesc127 @setvar! isDiscorded 1128 elseif timer musicTimer >= 11000 129 useskill 'Discordance'130 wft 500131 if insysmsg "What instrument"132 if findtype "bamboo flute" backpack as inny133 target inny134 elseif findtype "tambourine" backpack as inny135 target inny136 elseif findtype "drum" backpack as inny137 target inny138 elseif findtype "lute" backpack as inny139 target inny140 elseif findtype "harp" backpack as inny141 target inny142 elseif findtype "lap harp" backpack as inny143 target inny144 else145 overhead "I do not have an inny" 34146 @setvar! canDiscord 0147 endif148 wft 500149 endif150 if targetexists 151 target myKillTarget152 overhead "Discorded" 88 myKillTarget153 endif154 settimer musicTimer 5000155 endif156 endif157 158 if not findbuff "song of discordance" and timer musicTimer >= 11000159 useskill 'Discordance'160 wft 500161 if insysmsg "What instrument"162 if findtype "bamboo flute" backpack as inny163 target inny164 elseif findtype "tambourine" backpack as inny165 target inny166 elseif findtype "drum" backpack as inny167 target inny168 elseif findtype "lute" backpack as inny169 target inny170 elseif findtype "harp" backpack as inny171 target inny172 elseif findtype "lap harp" backpack as inny173 target inny174 else175 overhead "I do not have an inny" 34176 @setvar! canDiscord 0177 endif178 wft 500179 endif180 target backpack181 settimer musicTimer 0182 endif 183endif184 185if poisoned186 if automaticallyDrinkCurePot = 1 and diffhits >= hpCheckToTriggerCurePotion and findtype "Orange Potion" backpack as pot 187 dclick pot188 wait 200189 endif190 191 while not targetexists beneficial192 if not poisoned193 hotkey '> Interrupt'194 break195 else196 cast 'Cure'197 wait 50198 endif 199 endwhile200 if targetexists beneficial201 hotkey "Target Self"202 wait 500203 endif204endif205 206if dead 207 overhead "Rip" 34208 for 10209 if gumpexists 2957810225210 gumpresponse 1 2957810225211 break212 endif 213 wait 500214 endfor215 replay216endif217 218if skill "Tracking" > 0219 if not findbuff "tracking"220 clearsysmsg221 while not gumpexists 4267467659222 useskill 'tracking'223 wait minimumWaitForPing224 endwhile225 if gumpexists 4267467659226 while not insysmsg "You will now hunt all hostile players."227 gumpresponse 8 4267467659228 waitforgump 4267467659 5000229 endwhile230 gumpresponse 6 4267467659231 wait minimumWaitForPing232 endif233 gumpclose 4267467659234 endif235endif236 237if timer antispam > 11000238 settimer antispam 0239endif240 241if not targetexists242 @setvar! isDiscorded 0243 skill 'spirit speak'244 if timer antispam > 10000245 sysmsg 'Target is dead' 88246 endif247endif248 249loop