Compatibility unverified
This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.
MeditationDiscordanceTracking
Keep Me Alive.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/336767fb-b18c-4bf3-8635-d5187723951f for latest2# Automation by Jaseowns3## Script: Keep Me Alive4## Created by: promess#05#############################################6 7@setvar! minimumWaitForPing 2008// todo @setvar! cdReactiveArmor 610009@setvar! cdMushroom 6100010@setvar! canYouMakeAMushroom 111@setvar! cdLightning 2000012@setvar! cdMagicArrow 2000013@setvar! cdHarm 2000014@setvar! cdFireball 6000015@setvar! cdSkinningCheck 300016@setvar! cdMeditation 1000017 18 19@setvar! hpCheckToTriggerGreaterHealSpell 4020@setvar! hpCheckToTriggerMiniEmergencyHealSpell 6521@setvar! hpCheckToTriggerHealPotion 5022@setvar! hpCheckToTriggerCurePotion 4523//statuses24@setvar! automaticallySkinCorpses 125@setvar! canMushroom 126@setvar! canDiscord 027@setvar! isDiscorded 028@setvar! firstPet 029@setvar! secondPet 030 31 32if not timerexists magicMushroomTimer33 createtimer magicMushroomTimer34endif35 36if not timerexists meditationTimer37 createtimer meditationTimer38 settimer meditationTimer 039endif40 41if not timerexists statusM42 createtimer statusM43 settimer statusM 2100044endif45 46if not timerexists cdMushroom47 createtimer cdMushroom48endif49 50if not timerexists musicTimer51 createtimer musicTimer52endif53 54if not timerexists antispam55 createtimer antispam56endif57 58if not timerexists ssTimer59 createtimer ssTimer60endif61 62if timer statusM > 2000063 sysmsg 'Keeping you up'64 if followers = 165 sysmsg 'one follower, probably bs'66 elseif followers = 267 sysmsg 'one pet'68 elseif followers = 369 sysmsg 'big + bs'70 elseif followers = 471 sysmsg 'two pets'72 elseif followers = 573 sysmsg 'two pets + bs'74 else75 overhead 'no pets'76 endif77 settimer statusM 078endif79 80if not listexists petNameList81 createlist petNameList82endif83 84if list petNameList = 085 pushlist petNameList "ThiccBoi"86 pushlist petNameList "Disposable"87 pushlist petNameList "BadName"88 #pushlist petNameList "Timmy"89 #pushlist petNameList "Harry"90endif91 92if not listexists nameToChange93 createlist nameToChange94endif95 96if paralyzed 97 say [pouch98 say 'Get the fuck off me'99endif100 101if poisoned102 if diffhits >= hpCheckToTriggerCurePotion and findtype "Orange Potion" backpack as pot 103 dclick pot104 wait 200105 endif106 107 while not targetexists beneficial108 if not poisoned109 hotkey '> Interrupt'110 say 'Not today!'111 break112 else113 cast 'Cure'114 wait 50115 endif 116 endwhile117 if targetexists beneficial118 hotkey "Target Self"119 wait 500120 endif121 say 'Not today!'122endif123 124if diffhits >= hpCheckToTriggerGreaterHealSpell125 if targetexists 126 hotkey 'Cancel Current Target'127 endif128 while not targetexists 'beneficial'129 if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell130 cast 'Heal'131 else132 cast 'Greater Heal' 133 endif134 wait 50135 endwhile136 if targetexists 'beneficial'137 hotkey "Target Self"138 endif139 if diffhits >= hpCheckToTriggerHealPotion and findtype "Yellow Potion" backpack as pot 140 getlabel pot desc141 if "next usable" in desc142 // do nothing143 else144 dclick pot145 wait 650146 endif147 endif148 replay149endif150 151if diffmana > 41 152 if timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as shroom153 if timer antispam > 10000154 overhead "Eating shrooms" 66155 endif156 dclick shroom157 wait 200158 if insysmsg "You consume a magic mushroom and restore some mana."159 settimer magicMushroomTimer 0 160 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"161 settimer magicMushroomTimer 30000162 endif163 if followers > 0 and timer antispam > 10000164 say "all guard me"165 endif166 endif167 168 if not findbuff "actively meditating" and not warmode169 if meditationTimer > cdMeditation170 useskill 'Meditation'171 overhead 'Meditating, chill'172 endif173 174 endif175endif176 177@setvar! autoTarg lasttarget178if not warmode179 if targetexists beneficial180 if noto autoTarg = 'friend','innocent' #or noto lasttarget = 'innocent'181 wait 800 182 target lasttarget183 else 184 wait 1600185 @setvar! myFriend186 target myFriend187 endif188 elseif targetexists harmful189 if dead myKillTarget190 wait 800191 target closest gray,red192 @setvar myKillTarget lasttarget193 elseif noto autoTarg = 'hostile' or noto autoTarg = 'criminal' or noto autoTarg = 'enemy' or noto autoTarg = 'murderer'194 wait 800195 target lasttarget196 else197 198 endif199 endif200 if insysmsg "Target cannot be seen"201 overhead "Cannot see target, move closer."202 endif203else204 waitfortarget205endif206 207if skill "Discordance" >= 50 and not warmode208 if canDiscord = 1209 if not dead myKillTarget210 getlabel myKillTarget discordDesc211 if "discord" in discordDesc212 @setvar isDiscorded 1213 endif214 endif215 if timer musicTimer >= 11000 and isDiscorded = 0216 if not dead myKillTarget217 useskill 'Discordance'218 wft 500219 endif220 if insysmsg "What instrument"221 if findtype "bamboo flute" backpack as inny222 target inny223 elseif findtype "tambourine" backpack as inny224 target inny225 elseif findtype "drum" backpack as inny226 target inny227 elseif findtype "lute" backpack as inny228 target inny229 elseif findtype "harp" backpack as inny230 target inny231 elseif findtype "lap harp" backpack as inny232 target inny233 else234 overhead "I do not have an inny" 34235 @setvar! canDiscord 0236 endif237 wft 500238 endif239 if targetexists and not dead myKillTarget240 target myKillTarget241 overhead "Discorded" 88 myKillTarget242 wait 100243 else244 // do nothing intentionally245 endif246 settimer musicTimer 5000247 endif248 endif249 250 if not findbuff "song of discordance" and timer musicTimer >= 11000 and canDiscord = 1251 useskill 'Discordance'252 wft 500253 if insysmsg "What instrument"254 if findtype "bamboo flute" backpack as inny255 target inny256 elseif findtype "tambourine" backpack as inny257 target inny258 elseif findtype "drum" backpack as inny259 target inny260 elseif findtype "lute" backpack as inny261 target inny262 elseif findtype "harp" backpack as inny263 target inny264 elseif findtype "lap harp" backpack as inny265 target inny266 else267 overhead "I do not have an inny" 34268 @setvar! canDiscord 0269 endif270 wft 500271 endif272 target backpack273 settimer musicTimer 0274 endif 275endif276 277if dead 278 overhead "Rip" 34279 for 20280 if gumpexists 2957810225281 gumpresponse 1 2957810225282 break283 endif 284 wait 2000285 endfor286 replay287endif288 289if skill "Tracking" > 0290 if not findbuff "tracking"291 clearsysmsg292 while not gumpexists 4267467659293 useskill 'tracking'294 wait minimumWaitForPing295 endwhile296 if gumpexists 4267467659297 while not insysmsg "You will now hunt all hostile players."298 gumpresponse 8 4267467659299 waitforgump 4267467659 5000300 endwhile301 gumpresponse 6 4267467659302 wait minimumWaitForPing303 endif304 gumpclose 4267467659305 endif306endif307 308// 15 - a fire elemental309// 9 - a demon310// 14 - a earth elemental311// 16 - a water elemental312// 574 - blade spirit313if findtype 16|9|14|15 ground -1 -1 3 as myPet and followers > 0 and not warmode314 if noto myPet = "friend" and list petNameList > 0315 wait 200316 if insysmsg 'getlabel - Skipped getting label because serial'317 @ignore myPet318 endif319 getlabel myPet petLabel320 sysmsg petLabel321 overhead "Renaming..."322 foreach petName in petNameList323 sysmsg petName324 rename myPet petName325 break326 endfor327 poplist petNameList "front"328 wait 500329 @ignore myPet330 endif331endif332 333if timer antispam > 11000334 settimer antispam 0335endif336 337if timer ssTimer > 20000338 skill 'spiritspeak'339 settimer ssTimer 0340endif341 342if not timerexists skinningCheckTimer343 settimer skinningCheckTimer cdSkinningCheck344endif345 346if automaticallySkinCorpses = 1 and findtype "corpse" ground -1 -1 2 as jorpse and not warmode347 if findtype "Elven Spellblade" backpack and timer skinningCheckTimer >= cdSkinningCheck 348 while not targetexists 349 useskill 'forensicevaluation'350 endwhile351 if targetexists beneficial or targetexists neutral 352 hotkey "Target Self"353 wait minimumWaitForPing354 settimer skinningCheckTimer 0355 @ignore jorpse356 endif357 endif358endif359 360loop