Back to "escape" tags

Ultimate Lumberjack Script by Jaseowns

Description: Jaseowns ultimate lumberjacking script using one packhorse that will pause for captcha and let you know when to move. If you have tracking and magery, the script will also attempt to recall away if a PK shows. You must attempt to stand still and avoid other actions while the lumberjacker is running but once the script says Move to next spot, walk to the next one, if the captcha break shows up when you don't think it should just restart the script.

1# Ultimate Lumberjacking Script by Jaseowns
2# UO Outlands
3# Requirements: 
4#   organizer 1 as lumber and wood planks
5#   setup weight checks (default diff weight 30)
6#   
7
8if not varexist jase_lumber_runebook
9    overhead "Select your escape runebook" 88
10    setvar jase_lumber_runebook
11endif
12
13if not listexists "jase_lumber_actions"
14    createlist "jase_lumber_actions"
15endif
16
17if inlist "jase_lumber_actions" "red_alert"
18    overhead "Red Alert!" 34
19    if skill "Magery" >= 40
20        overhead 'Recalling...'
21        while not targetexists
22            cast "Recall"
23            wait 200
24        endwhile
25        target jase_lumber_runebook
26    elseif skill "Hiding" >= 40
27        useskill "Hiding"
28    endif
29    poplist "jase_lumber_actions" "red_alert"
30    overhead "Stopping script..." 34
31    stop
32    # replay
33endif
34
35clearsysmsg 
36
37if diffweight <= 30
38    organizer 1
39    while queued
40        overhead 'Moving items...'
41        wait 500
42    endwhile
43    if diffweight <= 30
44        overhead "Too heavy still.. check organizer agent 1" 34
45        replay
46    endif
47endif
48
49if lhandempty ?? 0 
50    if findtype "hatchet" backpack
51        dclicktype 'hatchet' backpack
52        wait 200
53    endif
54endif
55            
56if lhandempty ?? 0 
57    overhead "No more hatchets!" 34
58    replay
59endif
60
61wait 500
62overhead 'Lumberjacking' 0
63hotkey 'Use item in hand'
64wft 1000
65hotkey 'Target Self'
66for 75
67    wait 100
68    if insysmsg 'world is saving'
69        for 30
70            overhead 'Waiting for world save...'
71            wait 1000
72            if insysmsg 'save complete'
73                overhead 'Save complete - continue on!' 88
74                clearsysmsg 
75                wait 250
76                replay
77            elseif insysmsg "now tracking"
78                pushlist "jase_lumber_actions" "red_alert"
79                clearsysmsg 
80                wait 250
81                replay
82            endif
83        endfor
84    elseif insysmsg "now tracking"
85        pushlist "jase_lumber_actions" "red_alert"
86        replay
87    elseif lhandempty ?? 0 
88        overhead "Broke axe" 34
89        replay
90    elseif insysmsg 'You do not see any' or insysmsg 'You cannot produce any wood'
91        overhead 'Move to next spot' 88
92        wait 250
93        replay
94    elseif insysmsg "travel"
95        overhead 'Waiting for travel...'
96        wait 1000
97        replay
98    else
99        if insysmsg "any harvestable" or insysmsg "jase_lumber_actions"
100            // No Ore
101            overhead 'Move to next spot' 88
102            replay
103        elseif insysmsg "skillgain" or insysmsg "harvesting is not allowed"
104            // Gained skill
105            replay
106        elseif insysmsg "world is saving" or insysmsg 'World save complete'
107            // World Save
108            replay
109        elseif insysmsg "You hack"
110            // Failed
111            replay
112        elseif insysmsg "You chop"
113            // Success
114            replay
115        elseif insysmsg "You must wait"
116            // Wait message
117            overhead 'You must wait..' 34
118            wait 500
119            replay
120        endif
121    endif
122endfor
123
124if insysmsg "You must wait"
125    // Wait message
126    overhead 'You must wait..' 34
127    wait 500
128    replay
129endif
130
131overhead 'Captcha break!' 34
132for 20
133    overhead 'Awaiting Captcha...' 34
134    wait 1000
135    if insysmsg 'Captcha successful'
136        overhead 'Success - continue on!' 88
137        wait 1000
138        replay
139    endif
140endfor
141overhead 'Stopping script' 34