Back to "b" tags

TemporalShift by temporalshift.

Related: Lumberjacking

Description: Modified Jaseowns Lumberjack Script - Logs in Red Bag & Detect Hidden

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