Resource Maps - Ore Map V2.0 by zerotokraken
Description from the author:
#Set these variables before using.
@setvar! tomechest
@setvar! oretome
@setvar! globalTimeout 650
if not findlayer self lefthand and not findlayer self righthand
dclicktype 'pickaxe'
wait 700
endif
dclicktype 'pickaxe'
wait 2000
if insysmsg 'You have completely exhausted your mining camp.'
if findtype 'map' backpack as map
lift map
drop 0x0
endif
clearjournal
clearsysmsg
target clear
if findtype 3948 'ground' 0 1 2 as 'bluegate'
dclick 'bluegate'
waitforgump 3899019871
gumpresponse 2
cast 'Dispel Field'
waitfortarget
target self
pause 1000
dclicktype 'iron ore'
if findtype "storage shelf" ground -1 -1 2 as shelf
menu shelf 1
endif
if findtype "resource container" ground -1 -1 2 as resource
overhead 'Dumping Stockpile'
menu resource 0
wft globalTimeout
target self
wait 200
endif
if findtype "garden shelf" ground -1 -1 2 as gshelf
overhead 'Dumping Seeds'
menu gshelf 0
wft globalTimeout
target self
wait 200
endif
dclick oretome tomechest
waitforgump 1667380559
gumpresponse 20
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 21
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 22
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 23
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 24
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 25
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 26
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 27
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 28
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
overhead 'No maps left!'
endif
endif
endif
endif
endif
endif
endif
endif
endif
gumpclose
wait globalTimeout
dclicktype 'map'
overhead 'Ready to go!'
stop
endif
if weight < 464
if weight < 394
hotkey 'Recall'
overhead 'Recalling!'
waitfortarget
targettype 'runetome'
endif
if weight >= 394
wait 250
hotkey 'Drink Strength'
pause 650
hotkey 'Recall'
overhead 'Recalling!'
waitfortarget
targettype 'runetome'
endif
endif
if weight >= 464
overhead 'Too heavy to recall!'
hotkey 'Gate Travel'
overhead 'Gating'
waitfortarget
targettype 'runetome'
wait 100
if findtype 3948 'ground' 0 1 2 as 'bluegate'
dclick 'bluegate'
waitforgump 3899019871
gumpresponse 2
cast 'Dispel Field'
waitfortarget
target self
endif
endif
pause 1000
dclicktype 'iron ore'
if findtype "storage shelf" ground -1 -1 2 as shelf
menu shelf 1
endif
if findtype "resource container" ground -1 -1 2 as resource
overhead 'Dumping Stockpile'
menu resource 0
wft globalTimeout
target self
wait 200
endif
if findtype "garden shelf" ground -1 -1 2 as gshelf
overhead 'Dumping Seeds'
menu gshelf 0
wft globalTimeout
target self
wait 200
endif
dclick oretome tomechest
waitforgump 1667380559
gumpresponse 20
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 21
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 22
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 23
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 24
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 25
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 26
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 27
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
clearsysmsg
gumpresponse 28
waitforgump 1667380559
if insysmsg 'No map of that type is currently being stored.'
overhead 'No maps left!'
endif
endif
endif
endif
endif
endif
endif
endif
endif
gumpclose
wait globalTimeout
dclicktype 'map'
overhead 'Ready to go!'
stop
endif
if weight > 440
clearjournal
clearsysmsg
target clear
overhead 'Dropping off..'
hotkey 'Gate Travel'
overhead 'Gating'
waitfortarget
targettype 'runetome'
wait 100
if findtype 3948 'ground' 0 1 2 as 'bluegate'
dclick 'bluegate'
waitforgump 3899019871
gumpresponse 2
endif
pause 1000
dclicktype 'iron ore'
if findtype "storage shelf" ground -1 -1 2 as shelf
menu shelf 1
endif
if findtype "resource container" ground -1 -1 2 as resource
overhead 'Dumping Stockpile'
menu resource 0
wft globalTimeout
target self
wait 200
endif
if findtype "garden shelf" ground -1 -1 2 as gshelf
overhead 'Dumping Seeds'
menu gshelf 0
wft globalTimeout
target self
wait 200
endif
if findtype 3948 'ground' 0 1 2 as 'bluegate'
dclick 'bluegate'
waitforgump 3899019871
gumpresponse 2
say 'all guard me'
replay
endif
stop
endif
loopResource map mining, this will gate to your CY once you hit a weight threshold (440), This is easily adjustable to account for camping and such. Edit: I have updated it to not dispel the gate and use the gate if it is still available when the map is finished to conserve mana. Highly recommend running ban bot while doing this =)