Anti Lumber macro. Is possible fix it? How?

Code: Select all
sub Lumberjack_equip()
var tool = "0x0f43" , temp1 , temp2 , temp3 , x , y ,z , mine = "3302"
uo.exec("addtype tool")
while uo.targeting()
wait(500)
wend
UO.Equipt('Rhand','tool')
wait(500)
start:
uo.deletejournal()
for temp1 = 1 to 3
for temp2 = 1 to 3
x = 2-temp1
y = 2-temp2
z = 0
temp3 = "waittargettile " +mine +" " +str(x) +" " +str(y) +" " +str(z)
repeat
uo.exec(temp3)
uo.usetype(tool)
wait(5000)
until uo.injournal("wood here") or uo.injournal("no more ore")
uo.deletejournal()
next
next
goto start
end sub
thx for all!