Skip to content
Outlands Hub

Razor script

Keep Me Alive v1.2

by ProMess · 355 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

This script is kind of a branch of of Jaseown's script... Basically it's more interactive? It tells me how many pets I have up, and then keeps me alive. I was set up for Discording targets before, but I've changed off of it for economic…

TamingBardMeditationDiscordanceTracking
Keep Me Alive v12.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/4aa03531-018f-4ac6-a7be-d246ea976231 for latest2# Automation by Jaseowns3## Script: Keep Me Alive v1.24## Created by: ProMess#17035#############################################6 7// This script is kind of a branch of of Jaseown's script...8// Basically it's more interactive? It tells me how many pets I have up, and then keeps me alive. 9// I was set up for Discording targets before, but I've changed off of it for economic reasons10//11// In order to cast spells I actually set up scripts to use from hotkeys to cast the spell then 12// start the script running again. If you don't weird things start to happen. Here's an Example:13// 14//hotkey '> interrupt'15//cast 'curse'16//sysmsg 'Curse'17//wft18//hotkey 'Play Script: Keep Me Alive'19 20 21@setvar! minimumWaitForPing 20022// todo @setvar! cdReactiveArmor 6100023@setvar! cdMushroom 6100024 25@setvar! canYouMakeAMushroom 126@setvar! cdLightning 2000027@setvar! cdMagicArrow 2000028@setvar! cdHarm 2000029@setvar! cdFireball 6000030 31@setvar! hpCheckToTriggerGreaterHealSpell 4032@setvar! hpCheckToTriggerMiniEmergencyHealSpell 6533@setvar! hpCheckToTriggerHealPotion 5034@setvar! hpCheckToTriggerCurePotion 4535 36//statuses37@setvar! canMushroom 138@setvar! canDiscord 039@setvar! isDiscorded 040 41@setvar! firstPet 042@setvar! secondPet 043 44 45if not timerexists magicMushroomTimer46    createtimer magicMushroomTimer47endif48 49if not timerexists meditationTimer50    createtimer meditationTimer51    settimer meditationTimer 052endif53 54if not timerexists statusM55    createtimer statusM56    settimer statusM 2100057endif58 59if not timerexists cdMushroom60    createtimer cdMushroom61endif62 63if not timerexists musicTimer64    createtimer musicTimer65endif66 67if not timerexists antispam68    createtimer antispam69endif70 71if not timerexists ssTimer72    createtimer ssTimer73endif74 75if timer statusM > 2000076    sysmsg 'Keeping you up'77    if followers = 178        sysmsg 'one follower, probably bs'79    elseif followers = 280        sysmsg 'one pet'81    elseif followers = 382        sysmsg 'big + bs'83    elseif followers = 484        sysmsg 'two pets'85    elseif followers = 586        sysmsg 'two pets + bs'87    else88        overhead 'no pets'89    endif90    settimer statusM 091endif92 93if not listexists petNameList94    createlist petNameList95endif96 97if list petNameList = 098    pushlist petNameList "ThiccBoi"99    pushlist petNameList "Disposable"100    pushlist petNameList "BadName"101    #pushlist petNameList "Timmy"102    #pushlist petNameList "Harry"103endif104 105if not listexists nameToChange106    createlist nameToChange107endif108 109if paralyzed 110    say [pouch111    say 'Get the fuck off me'112endif113 114if poisoned115    if diffhits >= hpCheckToTriggerCurePotion and findtype "Orange Potion" backpack as pot 116        dclick pot117        wait 200118    endif119    120    while not targetexists beneficial121        if not poisoned122            hotkey '> Interrupt'123            say 'Not today!'124            break125        else126            cast 'Cure'127            wait 50128        endif 129    endwhile130    if targetexists beneficial131        hotkey "Target Self"132        wait 500133    endif134    say 'Not today!'135endif136 137if diffhits >= hpCheckToTriggerGreaterHealSpell138    if targetexists 139        hotkey 'Cancel Current Target'140    endif141    while not targetexists 'beneficial'142        if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell143           cast 'Heal'144        else145            cast 'Greater Heal'                146        endif147        wait 50148    endwhile149    if targetexists 'beneficial'150        hotkey "Target Self"151    endif152    if diffhits >= hpCheckToTriggerHealPotion and findtype "Yellow Potion" backpack as pot 153        getlabel pot desc154        if "next usable" in desc155            // do nothing156        else157            dclick pot158            wait 650159        endif160    endif161    replay162endif163 164if diffmana > 41 165    if timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as shroom166        if timer antispam > 10000167            overhead "Eating shrooms" 66168        endif169        dclick shroom170        wait 200171        if insysmsg "You consume a magic mushroom and restore some mana."172            settimer magicMushroomTimer 0    173        elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"174            settimer magicMushroomTimer 30000175        endif176        if followers > 0 and timer antispam > 10000177            say "all guard me"178        endif179    endif180 181    if not findbuff "actively meditating"182        if meditationTimer > cdMeditation183            useskill 'Meditation'184            settimer meditationTimer 0185            sysmsg 'meditating'186            overhead 'Meditating, chill'187        endif188    endif189endif190 191@setvar! autoTarg lasttarget192if not warmode193    if targetexists beneficial194        if noto autoTarg = 'friend','innocent' #or noto lasttarget = 'innocent'195            wait 600 196            target lasttarget197        else 198            wait 600199            @setvar! myFriend200            target myFriend201        endif202    elseif targetexists harmful203        if dead myKillTarget204            wait 600205            target closest gray,red206            @setvar myKillTarget lasttarget207        elseif noto autoTarg = 'hostile' or noto autoTarg = 'criminal' or noto autoTarg = 'enemy' or noto autoTarg = 'murderer'208            target lasttarget209        else210 211        endif212    endif213    if insysmsg "Target cannot be seen"214        overhead "Cannot see target, move closer."215    endif216else217    waitfortarget218endif219 220if skill "Discordance" >= 50 221    if canDiscord = 1222        if not dead myKillTarget223            getlabel myKillTarget discordDesc224            if "discord" in discordDesc225                @setvar isDiscorded 1226            endif227        endif228        if timer musicTimer >= 11000 and isDiscorded = 0229            if not dead myKillTarget230                useskill 'Discordance'231                wft 500232            endif233            if insysmsg "What instrument"234                if findtype "bamboo flute" backpack as inny235                    target inny236                elseif findtype "tambourine" backpack as inny237                    target inny238                elseif findtype "drum" backpack as inny239                    target inny240                elseif findtype "lute" backpack as inny241                    target inny242                elseif findtype "harp" backpack as inny243                    target inny244                elseif findtype "lap harp" backpack as inny245                    target inny246                else247                    overhead "I do not have an inny" 34248                    @setvar! canDiscord 0249                endif250                wft 500251            endif252            if targetexists and not dead myKillTarget253                target myKillTarget254                overhead "Discorded" 88 myKillTarget255                wait 100256            else257                // do nothing intentionally258            endif259            settimer musicTimer 5000260        endif261    endif262    263    if not findbuff "song of discordance" and timer musicTimer >= 11000 and canDiscord = 1264        useskill 'Discordance'265        wft 500266        if insysmsg "What instrument"267            if findtype "bamboo flute" backpack as inny268                target inny269            elseif findtype "tambourine" backpack as inny270                target inny271            elseif findtype "drum" backpack as inny272                target inny273            elseif findtype "lute" backpack as inny274                target inny275            elseif findtype "harp" backpack as inny276                target inny277            elseif findtype "lap harp" backpack as inny278                target inny279            else280                overhead "I do not have an inny" 34281                @setvar! canDiscord 0282            endif283            wft 500284        endif285        target backpack286        settimer musicTimer 0287    endif    288endif289 290if dead 291    overhead "Rip" 34292    for 10293        if gumpexists 2957810225294            gumpresponse 1 2957810225295            break296        endif        297        wait 500298    endfor299    replay300endif301 302if skill "Tracking" > 0303    if not findbuff "tracking"304        clearsysmsg305        while not gumpexists 4267467659306            useskill 'tracking'307            wait minimumWaitForPing308        endwhile309        if gumpexists 4267467659310            while not insysmsg "You will now hunt all hostile players."311                gumpresponse 8 4267467659312                waitforgump 4267467659 5000313            endwhile314            gumpresponse 6 4267467659315            wait minimumWaitForPing316        endif317       gumpclose 4267467659318    endif319endif320 321// 15 - a fire elemental322// 9 - a demon323// 14 - a earth elemental324// 16 - a water elemental325// 574 - blade spirit326if findtype 16|9|14|15|574 ground -1 -1 3 as myPet and followers > 0327    if noto myPet = "friend" and list petNameList > 0328        wait 200329        if insysmsg 'getlabel - Skipped getting label because serial'330            @ignore myPet331        endif332        getlabel myPet petLabel333        sysmsg petLabel334        overhead "Renaming..."335        foreach petName in petNameList336            sysmsg petName337            rename myPet petName338            break339        endfor340        poplist petNameList "front"341        wait 500342        @ignore myPet343    endif344endif345 346if timer antispam > 11000347    settimer antispam 0348endif349 350if timer ssTimer > 20000351    skill 'spiritspeak'352    settimer ssTimer 0353endif354 355loop