Skip to content
Outlands Hub

Razor script

Auto bot tmapper kill dude with tinkering

by Jaseowns · 595 lines
Download

Jaseowns UO Outlands - https://youtu.be/K3bVPhHcInE

CraftingCombatMeditationHidingTinkering
Auto bot tmapper kill dude with tinkering.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/93784f07-81e4-46cb-99f7-8b59f8ca8a70 for latest2# Automation by Jaseowns3## Script:  Auto bot tmapper kill dude with tinkering4## Created by: Jaseowns#66945#############################################6 7# Auto bot tmapper kill dude with tinkering Jaseowns8# UO Outlands - https://youtu.be/K3bVPhHcInE9 10// Beta client for cooldowns11// cooldowns for mushrooms, mana vampire and healpots12// for now using timers13 14overhead "Autobot engaged" 8815    16    @setvar! cdTrap 42000017 18    if not timerexists myTrapTimer119        createtimer myTrapTimer120        settimer myTrapTimer1 cdTrap21    endif22    if not timerexists myTrapTimer223        createtimer myTrapTimer224        settimer myTrapTimer2 cdTrap25    endif26    if not timerexists myTrapTimer327        createtimer myTrapTimer328        settimer myTrapTimer3 cdTrap29    endif30    if not timerexists myTrapTimer431        createtimer myTrapTimer432        settimer myTrapTimer4 cdTrap33    endif34    if not timerexists myTrapTimer535        createtimer myTrapTimer536        settimer myTrapTimer5 cdTrap37    endif38 39// Make sure we have a spell book attached40if findlayer self righthand as item41    // do nothing42elseif findtype "3834" backpack as item43    dclick item44else 45    overhead "No book bro!" 3446endif47 48if position 1828 99849    50    while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate51        dclick jGate52    endwhile53 54    if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate55        gumpresponse 2 389901987156    endif57 58    if not hidden59        useskill 'Hiding'60    endif61    wait 50062    replay63endif64 65 66# Update this variable to 1 for ALL KILL67# Update this variable to 0 for target nearest68@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 069 70 71@setvar! cdLightning 4000072@setvar! cdMagicArrow 2000073@setvar! cdHarm 2000074@setvar! cdFireball 6000075@setvar! cdEvilOmen 3000076@setvar! cdVampiricEmbrace 3000077@setvar! cdCorpseSkin 3000078@setvar! cdMindRot 3000079@setvar! cdMushroom 6000080@setvar! cdMagicShield 6000081@setvar! cdReactiveArmor 6000082@setvar! cdGuardMe 1500083 84if not timerexists reactiveArmorTimer85    createtimer reactiveArmorTimer86    settimer reactiveArmorTimer cdMagicShield87endif88 89if not timerexists magicShieldTimer90    createtimer magicShieldTimer91    settimer magicShieldTimer cdMagicShield92endif93 94if not timerexists magicMushroomTimer95    createtimer magicMushroomTimer96    settimer magicMushroomTimer cdMushroom97endif98 99if not timerexists magicArrowTimer100    createtimer magicArrowTimer101    settimer magicArrowTimer cdMagicArrow102endif103 104if not timerexists lightningTimer105    createtimer lightningTimer106    settimer lightningTimer cdLightning107endif108 109if not timerexists harmTimer110    createtimer harmTimer111    settimer harmTimer cdHarm112endif113 114if not timerexists fireballTimer115    createtimer fireballTimer116    settimer fireballTimer cdFireball117endif118 119if not timerexists evilOmenTimer120    createtimer evilOmenTimer121    settimer evilOmenTimer cdEvilOmen122endif123 124if not timerexists vampiricEmbraceTimer125    createtimer vampiricEmbraceTimer126    settimer vampiricEmbraceTimer cdVampiricEmbrace127endif128 129if not timerexists corpseSkinTimer130    createtimer corpseSkinTimer131    settimer corpseSkinTimer cdCorpseSkin132endif133 134if not timerexists mindRotTimer135    createtimer mindRotTimer136    settimer mindRotTimer cdMindRot137endif138 139if not timerexists allGuardMeTimer140    createtimer allGuardMeTimer141    settimer allGuardMeTimer cdGuardMe142endif143 144 145if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 1146    say "all kill"147    wait 200148    while targetexists 149        // wait150        wait 50151    endwhile152else153    hotkey 'Target Closest Non-Friendly Monster'154    wait 200155    if insysmsg "No one matching that was found" or not find lasttarget ground -1 -1 8156        overhead "found no one" 34157        wait 500158        if targetexists 159            hotkey 'Cancel Current Target'160        endif161        if timer allGuardMeTimer >= cdGuardMe162            say "all guard me"163            settimer allGuardMeTimer 0164        endif165        if counttype "mushroom" backpack < 5166            while counttype "mushroom" backpack < 15167                cast "Create Food"168                wait 200169            endwhile170        endif171        while mana < 50172            if not findbuff "actively meditating" 173                useskill 'meditation'174            endif175            wait 500176        endwhile177        if timer vampiricEmbraceTimer >= cdVampiricEmbrace and findtype 8198 ground -1 -1 4 as jorpse178            say "[VampiricEmbrace"179            wft 500180            target jorpse181            settimer vampiricEmbraceTimer 0182        endif183        replay184    endif    185endif186 187@setvar myKillTarget lasttarget 188 189if not varexist myPreviousKillTarget190    @setvar myPreviousKillTarget 0     191endif192 193getlabel myKillTarget desc194overhead desc195 196if not varexist myEarthPet or dead myEarthPet197    overhead "Your pet is dead, demonic summon time" 34198else199    menu myEarthPet 2200    wft 500201    target myKillTarget202endif203 204if diffhits >= 30 and mana > 12205    while not targetexists206        if diffhits >= 60207            cast 'Heal'208        else209            cast 'Greater Heal'                210        endif211        wait 50212        if hp = maxhp213            hotkey '> Interrupt'214            break215        endif216    endwhile217    if targetexists218        target self219    endif220endif221 222if find myKillTarget -1 -1 8 as killy223    if myKillTarget = myPreviousKillTarget224        // do nthoing225    else226        @setvar myPreviousKillTarget myKillTarget227    endif228else229    overhead "Out of range" 34230endif231 232clearsysmsg 233 234say "all guard"235 236@setvar! isLethalPoison 0237clearsysmsg 238 239while not dead myKillTarget and find myKillTarget -1 -1 8 as killy240    241    if not findtype "Purple Potion" backpack 242        overhead "Thou hast a distinct lack of boom juice" 34243    endif244 245    if find myKillTarget -1 -1 2 and findtype "metal chest|wooden chest" ground -1 -1 2246        overhead "We found a chest!"247 248        if findtype "barrel lid" ground -1 -1 2249           overhead "Already on a trap!"250        else251            if timer myTrapTimer1 >= cdTrap252                if findtype 6263 backpack as jire253                    while not gumpexists 3489968915254                        dclick jire255                        wft 500256                        target self257                    endwhile258                    if gumpexists 3489968915259                        overhead "Using trap 1 of 5" 88260                        gumpresponse 20 3489968915261                        wait 200262                        if insysmsg "You place a trap."263                            overhead "Sucess" 66264                            settimer myTrapTimer1 0265                        endif266                    endif267                endif268            elseif timer myTrapTimer2 >= cdTrap269                if findtype 6263 backpack as jire270                    while not gumpexists 3489968915271                        dclick jire272                        wft 500273                        target self274                    endwhile275                    if gumpexists 3489968915276                        overhead "Using trap 2 of 5" 88277                        gumpresponse 20 3489968915278                        wait 200279                        if insysmsg "You place a trap."280                            overhead "Sucess" 66281                            settimer myTrapTimer2 0282                        endif283                    endif284                endif285            elseif timer myTrapTimer3 >= cdTrap286                if findtype 6263 backpack as jire287                    while not gumpexists 3489968915288                        dclick jire289                        wft 500290                        target self291                    endwhile292                    if gumpexists 3489968915293                        overhead "Using trap 3 of 5" 88294                        gumpresponse 20 3489968915295                        wait 200296                        if insysmsg "You place a trap."297                            overhead "Sucess" 66298                            settimer myTrapTimer3 0299                        endif300                    endif301                endif302            elseif timer myTrapTimer4 >= cdTrap303                if findtype 6263 backpack as jire304                    while not gumpexists 3489968915305                        dclick jire306                        wft 500307                        target self308                    endwhile309                    if gumpexists 3489968915310                        overhead "Using trap 4 of 5" 88311                        gumpresponse 20 3489968915312                        wait 200313                        if insysmsg "You place a trap."314                            overhead "Sucess" 66315                            settimer myTrapTimer4 0316                        endif317                    endif318                endif319            elseif timer myTrapTimer5 >= cdTrap320                if findtype 6263 backpack as jire321                    while not gumpexists 3489968915322                        dclick jire323                        wft 500324                        target self325                    endwhile326                    if gumpexists 3489968915327                        overhead "Using trap 5 of 5" 88328                        gumpresponse 20 3489968915329                        wait 200330                        if insysmsg "You place a trap."331                            overhead "Sucess" 66332                        settimer myTrapTimer5 0333                        endif334                    endif335                endif336            elseif findtype 6263 backpack as jire337                while not gumpexists 3489968915338                    dclick jire339                    wft 500340                    target self341                endwhile342                if gumpexists 3489968915343                    if ingump "5/5" 3489968915344                        // do nothing345                        overhead "NO MORE BOOM!" 34346                    else347                        settimer myTrapTimer1 cdTrap348                        gumpresponse 8 3489968915349                    endif350                endif351            else352                overhead "NO MORE BOOM WIRE!" 34353            endif354        endif355 356        // This code will blow shit up357        if findtype "barrel lid" ground -1 -1 8 and findtype "music box" backpack as item358            dclick item359            wft 500360            target self361        endif362            363    endif364    365    if timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"366        cast "Magic Reflection"367        wait 1000368    elseif not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot369        dclick pot370        wait 200371    endif372 373    if findbuff "Magic Reflection"374        settimer magicShieldTimer 0375    endif376    377    if timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"378        cast "Reactive Armor"379        wait 200380    endif381 382    if findbuff "Reactive Armor"383        settimer reactiveArmorTimer 0384    endif385 386    if timer corpseSkinTimer >= cdCorpseSkin387        overhead "Should be CorpseSkin!" 34388        say "[CorpseSkin"389        settimer corpseSkinTimer 0390        wait 500391    endif392    393    if skill "poisoning" >= 100394 395        if timer mindRotTimer >= cdMindRot396            overhead "Should be mind rotting!" 34397            say "[MindRot"398            settimer mindRotTimer 0399            wait 500400        endif401        402        while isLethalPoison = 0403            getlabel myKillTarget desc2404            overhead desc2 66405            // poison lethal406            if "Lethal" in desc2407                @setvar! isLethalPoison 1408                break409            elseif diffhits >= 30 410                // need a heal411                break412            elseif mana >= 9413                while not targetexists414                    cast 'poison'415                    wait 50416                    if dead myKillTarget417                        hotkey '> Interrupt'418                        break419                    endif420                endwhile421                target myKillTarget422            else423                wait 200424            endif425        endwhile426    endif427    if timer evilOmenTimer >= cdEvilOmen428        say "[EvilOmen"429        settimer evilOmenTimer 0430        wait 200431    endif432 433    if timer vampiricEmbraceTimer >= cdVampiricEmbrace and findtype 8198 ground -1 -1 4 as jorpse434        say "[VampiricEmbrace"435        wft 500436        target jorpse437        settimer vampiricEmbraceTimer 0438    endif439   440    if find myKillTarget -1 -1 12 as killy441       // do nothing442    else443        overhead "Out of range" 34444        break445    endif446    447    if poisoned448        if findtype "Orange Potion" backpack as pot 449            dclick pot450            wait 200451        else452            while not targetexists453                if not poisoned454                    hotkey '> Interrupt'455                    break456                else457                    cast 'Cure'458                    wait 50459                endif 460            endwhile461            if targetexists462                target self463                wait 500464            endif465        endif466    endif467 468    469    if diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning470        while not targetexists471            if dead myKillTarget or diffhits >= 30472                hotkey '> Interrupt'473                break474            else475                cast 'Lightning'476                wait 50477            endif 478        endwhile479        if targetexists480            target myKillTarget481            settimer lightningTimer 0482            wait 500483        endif484    endif485 486    if diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow487        while not targetexists488            if dead myKillTarget or diffhits >= 30489                hotkey '> Interrupt'490                break491            else492                cast 'magic arrow'493                wait 50494            endif 495        endwhile496        if targetexists497            target myKillTarget498            settimer magicArrowTimer 0499            wait 500500        endif501    endif502 503    if diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm504        while not targetexists505            if dead myKillTarget or diffhits >= 30506                hotkey '> Interrupt'507                break508            else509                cast 'harm'510                wait 50511            endif 512        endwhile513        if targetexists514            target myKillTarget515            settimer harmTimer 0516            wait 500517        endif518    endif519 520    if diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball521        while not targetexists522            if dead myKillTarget or diffhits >= 30523                hotkey '> Interrupt'524                break525            else526                cast 'fireball'527                wait 50528            endif 529        endwhile530        if targetexists531            target myKillTarget532            settimer fireballTimer 0533            wait 500534        endif535    endif536    537    if diffhits >= 30538            539        if findtype "Yellow Potion" backpack as pot 540            getlabel pot desc541            if "next usable" in desc542                // do nothing543            else544                dclick pot545                wait 200546            endif547        endif548 549        if diffhits >= 30 and mana >= 12550            while not targetexists551                if diffhits >= 60552                    cast 'Heal'553                else554                    cast 'Greater Heal'                555                endif556                wait 50557                if hp = maxhp558                    hotkey '> Interrupt'559                    break560                endif561            endwhile562            if targetexists563                target self564                wait 50565            endif566        endif567    elseif mana < 55 and findbuff "actively meditating" 568        // wait for mana569    elseif mana > 42570        while not targetexists571            if dead myKillTarget or diffhits >= 30572                hotkey '> Interrupt'573                break574            else575                cast 'Flamestrike'576                wait 50577            endif 578        endwhile579        if targetexists580            target myKillTarget581            wait 500582        endif583    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy584        overhead "Eatting shrooms" 66585        dclick mushy586        settimer magicMushroomTimer 0587    elseif not findbuff "actively meditating" 588        useskill 'meditation'589        wait 500590    endif591    wait 50592endwhile593 594wait 200595replay