Hi all,
I'm trying to make a non-afk one click macro for mining. One click should prompt mining, if there is ore at the target then it should keep mining (transfer ore when full, refresh pickaxe if it breaks) and stop when there's no more metal there. I probably need a for loop or something to make it work i'd appreciate any help or advice on it.
I'm new at this and the code is very sloppy. Here's the script
clearjournal
// get pickaxe
if not @findtype 0xe86 0x0 'backpack'
__movetype 0xe86 0x133fc7 'backpack' 0 0 0
__pause 700
endif
//transfer ore
if diffweight < 20
__pause 700
__@findtype 0x19b9
__movetype 0x19b9 'backpack' 0x133fc7 0 0 0
__pause 800
__@findtype 0x19b9
__movetype 0x19b9 'backpack' 0x133fc7 0 0 0
__pause 800
endif
//prompt mining SHOULD PROMPT ONCE
usetype 0xe86
//Probably need a for loop after this point, with the pickaxe and ore transfer in it.
FOR waitforjournal 'ore' 1000000 'system'
if @injournal 'ore' 'system'
__usetype 0xe86
__waitfortarget 15000
__targettile 'last'
__pause 1200
__if @injournal 'worn out' 'system'
___movetype 0xe86 0x133fc7 'backpack' 0 0 0
___pause 700
__endif
_endif
if @injournal 'no metal' 'system'
__stop
endif
ENDFOR
Thank you..
I'm trying to make a non-afk one click macro for mining. One click should prompt mining, if there is ore at the target then it should keep mining (transfer ore when full, refresh pickaxe if it breaks) and stop when there's no more metal there. I probably need a for loop or something to make it work i'd appreciate any help or advice on it.
I'm new at this and the code is very sloppy. Here's the script
clearjournal
// get pickaxe
if not @findtype 0xe86 0x0 'backpack'
__movetype 0xe86 0x133fc7 'backpack' 0 0 0
__pause 700
endif
//transfer ore
if diffweight < 20
__pause 700
__@findtype 0x19b9
__movetype 0x19b9 'backpack' 0x133fc7 0 0 0
__pause 800
__@findtype 0x19b9
__movetype 0x19b9 'backpack' 0x133fc7 0 0 0
__pause 800
endif
//prompt mining SHOULD PROMPT ONCE
usetype 0xe86
//Probably need a for loop after this point, with the pickaxe and ore transfer in it.
FOR waitforjournal 'ore' 1000000 'system'
if @injournal 'ore' 'system'
__usetype 0xe86
__waitfortarget 15000
__targettile 'last'
__pause 1200
__if @injournal 'worn out' 'system'
___movetype 0xe86 0x133fc7 'backpack' 0 0 0
___pause 700
__endif
_endif
if @injournal 'no metal' 'system'
__stop
endif
ENDFOR
Thank you..