Skip to content
Outlands Hub

Razor script

Lumberjacking with hiding, tracking, and camping

by wolfgeist · 239 lines
Download
HidingLumberjackingCampingTracking
Lumberjacking with hiding tracking and camping.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/121a791a-44ad-4183-8f5c-c0accfcd8749 for latest2# Automation by Jaseowns3## Script: Lumberjacking with hiding, tracking, and camping4## Created by: wolfgeist#05#############################################6 7if targetexists 'neutral'8    hotkey 'Target Self'9endif10 11if not dead 12    if not hidden13        if hp < maxhp and not bandaging14            hotkey 'Bandage Self'15        endif16        wait 5017    endif18endif19 20//CHECK FOR TRACKING21 22while not findbuff 'tracking'23 24skill 'tracking'25waitforgump 426746765926gumpresponse 627waitforgump 426746765928gumpclose29endwhile30 31//ANTI THIEF32 33 34if findtype hatchet lefthand as myhatchet35    getlabel myhatchet hlabel36   if '(50 uses' in hlabel or '(45 uses' in hlabel or '(40 uses' in hlabel or '(35 uses' in hlabel or '(30 uses' in hlabel or '(25 uses' in hlabel or '(20 uses' in hlabel or '(15 uses' in hlabel or '(10 uses' in hlabel or '(9 uses' in hlabel or '(8 uses' in hlabel or '(7 uses' in hlabel37            overhead "My hatchet is damaged!" 38      38        elseif '(5 uses' in hlabel or '(4 uses' in hlabel or '(3 uses' in hlabel or '(2 uses' in hlabel or '(1 uses' in hlabel39            overhead 'Looking for another hatchet'    40            if findtype 'hatchet' backpack41                dclicktype 'hatchet' backpack42                wait 100043                overhead 'Hatchet found, restarting!'44                replay45            endif46          47        clearhands 'both'    48        overhead 'Stopping script, hatchet is about to break.' 3849            pause 100050            clearhands 'both'51            if not hidden52                skill 'hiding'53            endif54            script 'Camp'55    endif56endif57 58//This assumes you have 3 trapped pouches. Adjust for however many you carry. If a thief opens a trapped pouch59//it will count fewer trapped pouches and trigger the "camp" script which will do whatever you set it to do,60//for me it drops weapon, hides, lights a fire, and hikes away.61 62if counttype 'pouch' backpack 38 < 3     63    overhead "THIEF ALERT!" 3864    pause 250 65    script 'camp'66endif67 68//END ANTI-THIEF69 70 71if not listexists "lumberjack_actions"72    createlist "lumberjack_actions"73endif74 75if not listexists "4-failures"76    createlist "4-failures"77endif78 79//Red alert80 81if inlist "lumberjack_actions" "red_alert"82    overhead "Red Alert!" 3483    poplist "lumberjack_actions" "red_alert"84    clearhands 'both'85    pause 25086    skill 'Hiding'87    overhead "Stopping script..." 3488    clearsysmsg 89    pause 25090    script 'Camp'91endif92 93if hidden 94    clearlist "4-failures"95endif96 97//Break after 5 failures98 99if list "4-failures" = 1100    overhead "Ive gathered all I can here."101//hide wood in trapped pouch102if findtype "pouch" backpack 38 as trappedPouch103overhead 'Hiding logs.'104while findtype "log%s" backpack as wood 105    lift wood 60000106    drop trappedPouch -1 -1 -1107    @ignore wood108endwhile109endif110//111elseif list "4-failures" = 7112    overhead "Im going to rest soon."113elseif list "4-failures" = 8114    overhead "Taking a break." 34115    wait 250116elseif list "4-failures" = 9117    wait 250118elseif list "4-failures" >= 10  119    wait 250  120        if skill "Hiding" >= 40121            useskill "Hiding"122        endif123    pause 100124    while hidden125        pause 500126        clearlist "4-failures"127        if insysmsg "now tracking"128            overhead 'MURDERER ON THE PROWL!' 34129            pause 50130            script 'Camp'131        endif132    endwhile133endif134 135##CLEAR SYSMSG136clearsysmsg 137##CLEAR SYSMSG138 139 140//Check for hatchet141 142if lhandempty ?? 0 143    if findtype 'hatchet' backpack144        dclicktype 'hatchet' backpack145        wait 200146    endif147endif148            149if lhandempty ?? 0 150    overhead "I need a hatchet." 34151    replay152endif153 154//Main chopping loop155if insysmsg "You chop"156    clearlist "4-failures"157endif158wait 50159hotkey 'Use item in hand'160wft 5000161hotkey 'Target Self'162if insysmsg "harvestable"163    164endif165 166for 75167    wait 150168    if insysmsg 'world is saving'169        pause 50170        hotkey 'Clear Target Queue'171        hotkey 'Cancel Current Target'172        for 30173            overhead 'Waiting for world save...'174            wait 1000175            if insysmsg 'save complete'176                overhead 'Save complete - continue on!' 88177                clearsysmsg 178                wait 250179                replay180            elseif insysmsg "now tracking"181                pushlist "lumberjack_actions" "red_alert"182                clearsysmsg 183                wait 250184                replay185            endif186        endfor187    elseif insysmsg "now tracking"188        pushlist "lumberjack_actions" "red_alert"189        replay190    elseif insysmsg "harvestable"191        wait 250192        pushlist "4-failures" "failure"193        replay194    elseif lhandempty ?? 0 195        overhead "Broke axe" 34196        replay197    elseif insysmsg 'You do not see any' or insysmsg 'You cannot produce any wood'198        wait 500199        replay200    elseif insysmsg "travel"201        overhead 'Waiting for travel...'202        wait 1000203        replay204    else205        if insysmsg "any harvestable" or insysmsg "lumberjack_actions"206            // No Ore207            overhead 'Move to next spot' 88208            replay209        elseif insysmsg "skillgain" or insysmsg "harvesting is not allowed"210            // Gained skill211            replay212        elseif insysmsg "world is saving" or insysmsg 'World save complete'213            // World Save214            replay215        elseif insysmsg "You hack"216            // Failed217            replay218        elseif insysmsg "You chop"219            clearlist "4-failures"220            replay221        elseif insysmsg "You must wait"222            // Wait message223            overhead 'You must wait..' 34224            wait 500225            replay226        endif227    endif228endfor229overhead 'Captcha break!' 34230for 10231    overhead 'Awaiting Captcha...' 34232    wait 1000233    if insysmsg 'Captcha successful'234        overhead 'Success - continue on!' 88235        wait 1000236        replay237    endif238endfor239replay