Skip to content
Outlands Hub

Razor script

Simplified Lumberjacking to avoid thieves

by Jaseowns · 129 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.

by Jaseowns UO Outlands Requirements: organizer 2 as lumber and wood planks

GatheringOrganizingLumberjacking
Simplified Lumberjacking to avoid thieves.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/c99c2326-5d06-4c9b-8200-d9ed56e01574 for latest2# Automation by Jaseowns3## Script: Simplified Lumberjacking to avoid thieves4## Created by: Jaseowns#66945#############################################6 7# Simplified Lumberjacking to avoid thieves by Jaseowns8# UO Outlands9# Requirements: 10#   organizer 2 as lumber and wood planks11 12if not varexist needToOrganize13    @setvar! needToOrganize 014endif15 16sysmsg needToOrganize17 18clearsysmsg 19 20if needToOrganize = 121    @setvar! needToOrganize 022    organizer 223    while queued24        wait 5025    endwhile26endif27 28if lhandempty ?? 0 29    if findtype "hatchet" backpack30        dclicktype 'hatchet' backpack31        wait 20032    endif33endif34            35if lhandempty ?? 0 36    overhead "No more hatchets!" 3437    replay38endif39 40wait 50041overhead 'Lumberjacking' 042hotkey 'Use item in hand'43wft 100044hotkey 'Target Self'45for 7546    wait 10047    if insysmsg 'world is saving'48        for 3049            overhead 'Waiting for world save...'50            wait 100051            if insysmsg 'save complete'52                overhead 'Save complete - continue on!' 8853                clearsysmsg 54                wait 25055                replay56            endif57        endfor58    elseif lhandempty ?? 0 59        overhead "Broke axe" 3460        replay61    elseif insysmsg 'You do not see any' or insysmsg 'You cannot produce any wood'62        overhead 'Move to next spot' 8863        wait 25064        replay65    elseif insysmsg "travel"66        overhead 'Waiting for travel...'67        wait 100068        replay69    else70        if insysmsg "You chop"71            // Success72            if needToOrganize = 073                @setvar! needToOrganize 174            elseif needToOrganize = 175                @setvar! needToOrganize 276            elseif needToOrganize = 277                @setvar! needToOrganize 378            endif79            replay80        elseif insysmsg "any harvestable"81            // No Ore82            overhead 'Move to next spot' 8883            replay84        elseif insysmsg "skillgain" or insysmsg "harvesting is not allowed"85            // Gained skill86            replay87        elseif insysmsg "world is saving" or insysmsg 'World save complete'88            // World Save89            replay90        elseif insysmsg "You hack"91            // Failed92            replay93        elseif insysmsg "You chop"94            // Success95            if needToOrganize = 096                @setvar! needToOrganize 197            elseif needToOrganize = 198                @setvar! needToOrganize 299            elseif needToOrganize = 2100                @setvar! needToOrganize 3101            endif102            replay103        elseif insysmsg "You must wait"104            // Wait message105            overhead 'You must wait..' 34106            wait 500107            replay108        endif109    endif110endfor111 112if insysmsg "You must wait"113    // Wait message114    overhead 'You must wait..' 34115    wait 500116    replay117endif118 119overhead 'Captcha break!' 34120for 20121    overhead 'Awaiting Captcha...' 34122    wait 1000123    if insysmsg 'Captcha successful'124        overhead 'Success - continue on!' 88125        wait 1000126        replay127    endif128endfor129overhead 'Stopping script' 34