uo steam mining macro help

Don't know how something works? Here you will find some useful links. And if you have a question, feel free to ask.
Post Reply
Geriatric
Legendary Scribe
Posts: 237
Joined: Thu Dec 08, 2022 4:51 am

uo steam mining macro help

Post by Geriatric »

im trying to create a fairly basic macro for my wife to do mining so she can just push a button and mine at her feet
use object shovel
wait for target
target relative location

now the relative location is going to be right at the characters feet, the same tile the character is standing on

but im not sure what this line of code in the macro means or what to do with it
targettilerelative (serial) (range) [reverse: 'true' or 'false']
sarmatian
Grandmaster Scribe
Posts: 91
Joined: Fri May 29, 2020 10:55 am

Re: uo steam mining macro help

Post by sarmatian »

have you tried ?

Code: Select all

targettileoffset 0 0 0
I have this code to mine one tile at the front of person (using direction)
this way I can mine places where I cannot stand. Like vertical cliffs.

Code: Select all

waitfortarget 2000
if direction == 0
  targettileoffset 0 -1 0
elseif direction == 1
  targettileoffset 1 -1 0
elseif direction == 2
  targettileoffset 1 0 0
elseif direction == 3
  targettileoffset 1 1 0
elseif direction == 4
  targettileoffset 0 1 0
elseif direction == 5
  targettileoffset -1 1 0
elseif direction == 6
  targettileoffset -1 0 0
elseif direction == 7
  targettileoffset -1 -1 0
endif
pause 200
Geriatric
Legendary Scribe
Posts: 237
Joined: Thu Dec 08, 2022 4:51 am

Re: uo steam mining macro help

Post by Geriatric »

just tried using both of those and they keep coming up as target cannot be seen

keeping the macro as simple as i can

useobject 0x41405193 <--- thats the shovel
waitfortarget 1000
targettileoffset 0 0 0
Geriatric
Legendary Scribe
Posts: 237
Joined: Thu Dec 08, 2022 4:51 am

Re: uo steam mining macro help

Post by Geriatric »

update:

the macro works while in a mine in tokuno

but i get the target cannot be seen error while trying to mine at minoc
malkari
Passer by
Posts: 2
Joined: Mon Dec 26, 2022 2:20 pm

Re: uo steam mining macro help

Post by malkari »

At this point:

Code: Select all

useobject 0x436B73A1
waitfortarget 15000

if direction == 0
  targettileoffset 0 -1 0
elseif direction == 1
  targettileoffset 1 -1 0
elseif direction == 2
  targettileoffset 1 0 0
elseif direction == 3
  targettileoffset 1 1 0
elseif direction == 4
  targettileoffset 0 1 0
elseif direction == 5
  targettileoffset -1 1 0
elseif direction == 6
  targettileoffset -1 0 0
elseif direction == 7
  targettileoffset -1 -1 0
endif

pause 750
replay
still some flaws but works in general.. still on details.. or if anyone has some extras..!?
User avatar
Eremite
Grandmaster Scribe
Posts: 96
Joined: Sat Jan 28, 2023 7:20 pm

Re: uo steam mining macro help

Post by Eremite »

I noticed that UO Steam can't target tile offsets in Trammel. It always says "cannot be seen". Razor didn't seem to have any problems at all though - haven't tried with Razor Enhanced yet.
Post Reply