Back to "b" tags

Walk and chop logs by golfinh0

Description: You should consider setting a hotkey 'Stop current script' so if you need to run, recall, or whatever, you just hit that key.

I use Hiding as my stop condition, so if I see any PK I hide myself and the script stop.

1# Author: golfinho
2
3# Check for hatchet
4if lhandempty and findtype 'hatchet' backpack as _hatchet
5    dclick _hatchet
6elseif not findlayer self lefthand 
7    sysmsg "No hatchet found!" 38
8    stop
9endif
10
11# Track PKs if you have tracking
12if skill 'Tracking' > 0 and not findbuff 'Tracking Hunting'
13    @setvar! tracking_gump 4267467659
14
15    while not gumpexists tracking_gump
16        useskill 'Tracking'
17        waitforgump tracking_gump 500       
18    endwhile
19
20    while not insysmsg "You will now hunt all hostile players."
21        gumpresponse 8 tracking_gump
22        waitforgump tracking_gump 500
23    endwhile
24
25    gumpresponse 6 tracking_gump
26endif
27
28# In case a PK is seen, just notify. It is up to you what to do
29if insysmsg "Now tracking:"
30   overhead "**PK SEEN**" 38
31endif
32
33# I use Hiding as my stop condition, so if I see any PK I hide myself and the script stop
34# Feel free to remove this
35if hidden
36    stop
37endif
38
39hotkey 'use item in hand'
40wft 300
41target self
42
43while not insysmsg "You chop some" and not insysmsg "You hack at" 
44    if insysmsg "You do not see any" or hidden
45        wait 1000
46        break
47    endif
48    wait 1000
49endwhile
50
51loop