UOsteam mining macro

Bor

Novice
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..
 

Bor

Novice
Got it working, no hiccups so far. I start with 150 below weight and have pickaxes ready in my bug (bug serial in my case 0x133fc7).

Code:
clearjournal
if not @findtype 0xe86 0x0 'backpack'
  movetype 0xe86 0x133fc7 'backpack' 0 0 0
  pause 900
endif
if weight > 350
  while weight > 150
    movetype 0x19b9 'backpack' 0x133fc7
    pause 900
  endwhile
endif
if not @injournal 'ore' 'system'
  usetype 0xe86
endif
waitforjournal 'ore' 10000 'system'
while @injournal 'ore' 'system'
  if not @findtype 0xe86 0x0 'backpack'
    movetype 0xe86 0x133fc7 'backpack' 0 0 0
    pause 900
  endif
  usetype 0xe86
  waitfortarget 15000
  targettile 'last'
  pause 1000
  if weight > 350
    while weight > 150
      movetype 0x19b9 'backpack' 0x133fc7
      pause 900
    endwhile
  endif
  if @injournal 'no metal' 'system'
    stop
  endif
endwhile
 

Greenman

Apprentice
Does anyone know what the highest mining level you can get to to mine ONLY iron? and is that "real" or displayed?
 
Top