Flu Mining by flutschi
Related: Mining
#its basescript is jasonowns one, just edited for my taste
#create the cooldown 'summons' for keeping up the elementals!
#create cooldown 'afk' and 'walk' (walk needs to be set to walk in the settings!)
hotkey 'cancel current target'
@setvar! enableRecall 1
@setvar! enableSummons 0
@setvar! enableAFK 1
# use >info on ur woodbag and copy the serial and insert into line 12
@setvar! woodBag 0x49B39EA9
@setvar! hatchet 3908
@setvar! pickaxe 3718
@setvar! tool hatchet
# 7127 for logs (aka lumber) and 6585 for ore (aka miner)
@setvar! ressources 6585
clearsysmsg
#this is when u want to summon something
while casting
overhead 'casting..'
pause 1000
endwhile
if rhandempty ?? 0
if findtype "pickaxe" backpack
dclicktype 'pickaxe' backpack
wait 500
endif
endif
if rhandempty ?? 0
overhead "No more pickaxe!" 34
wait 500
replay
endif
# Smelter Part
if findtype "forge" ground -1 -1 12 as forge
overhead "Forge..." 88 forge
endif
# AFK PART
@setvar! afkTime 180000
@setvar! afkAlert 24000
@setvar! afkTooLong 5000
if enableAFK = 1
if cooldown 'afk' < 500
cooldown 'afk' afkTime
endif
if cooldown 'walk'
cooldown 'afk' afkTime
endif
if cooldown 'afk' < afkAlert
overhead 'timer runs out..' 33
dclicktype 3834 backpack
pause 1500
endif
if cooldown 'afk' < afkTooLong
overhead 'afk too long..' 33
#use runebook
dclicktype 8901 backpack
waitforgump 1551740969
gumpresponse 5
stop
script 'recallHome'
stop
endif
endif
# different Chars stuff
if name == 'Flu Miner'
@setvar! woodBag 0x49B39EA9
endif
if name == 'Flu Logger'
@setvar! woodBag 0x44CC0C8C
endif
if name == 'Flutschi'
@setvar! woodBag 0x40FFC28F
endif
if name == 'Flu Log'
@setvar! woodBag 0x46281849
endif
if findtype 7133 backpack as log
lift log 999
drop woodBag -1 -1 -1
pause 200
endif
if findtype 7133 backpack as log
dclick log
endif
# check for summons
#casttime with summoners tome is 2500, else put 5000
@setvar! castTime 5200
if enableSummons = 1
if followers < 1 or cooldown 'summons' < 60000 and mana > 50
cast 'Earth Elemental'
pause castTime
pause 500
say 'all guard me'
cooldown 'summons' 600000
endif
endif
# ANTI Thieves
clearignore
if counttype 7127 woodBag 0 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 0 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
if counttype 7127 woodBag 2419 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 2419 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
if counttype 7127 woodBag 2406 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 2406 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
if counttype 7127 woodBag 2413 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 2413 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
if counttype 7127 woodBag 2418 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 2418 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
if counttype 7127 woodBag 2213 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 2213 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
if counttype 7127 woodBag 2425 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 2425 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
if counttype 7127 woodBag 2207 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 2207 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
if counttype 7127 woodBag 2219 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 2219 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
if counttype 7127 woodBag 1763 > 50
overhead 'sorting..'
while findtype 3705 backpack 38 as pouch
if findtype 7127 woodBag 1763 as log
lift log 10
drop pouch -1 -1 -1
pause 700
endif
ignore pouch
endwhile
endif
clearignore
#tracking!
if not findbuff 'tracking'
overhead 'i should track..'
while not gumpexists 4267467659
useskill 'tracking'
wait 250
endwhile
if gumpexists 4267467659
while not insysmsg "You will now hunt all hostile players."
gumpresponse 8 4267467659
waitforgump 4267467659 5000
endwhile
gumpresponse 6 4267467659
wait 1000
clearsysmsg
endif
gumpclose 4267467659
endif
#protection!
if not findbuff 'Magic Reflection'
cast 'Magic Reflection'
pause 3000
endif
#start chopping
wait 500
overhead 'Mining' 0
hotkey 'Use item in hand'
for 75
wait 100
if enableRecall = 1
if insysmsg 'Now tracking' or insysmsg 'Distance'
#use runebook
dclicktype 8901 backpack
waitforgump 1551740969
gumpresponse 5
stop
#this would be if you have my other script.
script 'recallHome'
stop
endif
endif
if cooldown 'walk'
cooldown 'afk' afkTime
endif
if cooldown 'afk' < 18000
overhead 'timer runs out..' 33
dclicktype 3834 backpack
pause 1500
endif
if cooldown 'afk' < 3000
overhead 'afk too long..' 33
guild 'afk too long..'
script 'recallHome'
stop
endif
if insysmsg 'world is saving'
for 30
overhead 'Waiting for world save...'
wait 1000
if insysmsg 'save complete'
overhead 'Save complete - continue on!' 88
clearsysmsg
wait 250
replay
endif
endfor
elseif rhandempty ?? 0
overhead "Broke axe" 34
replay
elseif insysmsg 'You do not see any'
overhead 'Move to next spot' 88
wait 250
replay
elseif insysmsg "travel"
overhead 'Waiting for travel...'
wait 1000
replay
else
if insysmsg "any harvestable"
overhead 'Move to next spot' 88
replay
elseif insysmsg "skillgain" or insysmsg "harvesting is not allowed"
replay
elseif insysmsg "world is saving" or insysmsg 'World save complete'
replay
elseif insysmsg "You hack"
replay
elseif insysmsg "You chop"
replay
elseif insysmsg "You must wait"
overhead 'You must wait..' 34
wait 500
replay
endif
endif
endfor
if insysmsg "You must wait"
wait 500
replay
endif
overhead 'Stopping script' 34
replay