I don't undestand russian, so i can't check if there is another mining script..
My Problem is this, on my shard now for mining, you need to stay in the same direction , where you mine... and now i need some mod on my mining script, but i can't do it...this script is a friend donations!
So Someone can Modify that script?Please?
This script for me is really good...if someone can please, modify that script
I need to move, and to stay in the facing direction where i mine
Thank you!
Code: Select all
##########################-.MINARE.-#############################
# | | 18| 19| 20| |
# |___|___|___|___|___|
# | 17| 7 | 8 | 1 | 9 |
# |___|___|___|___|___|
# | 16| 6 | | 2 | 10|
# |___|___|___|___|___|
# | 15| 5 | 4 | 3 | 11|
# |___|___|___|___|___|
# | | 14| 13| 12| |
# | | | | | |
sub lamer()
UO.Say(".autoloop 1")
var a=0, b=0, x, x0, y, y0, z, z0, tile
uo.exec("waittargetself")
uo.exec("addobject my")
wait(500)
uo.exec("waittargetself")
uo.exec("addobject my")
wait(500)
x0=UO.Getx("my")
y0=UO.Gety("my")
z0=UO.Getz("my")
uo.print("x " + str(x0) + " y " + str(y0) + " z " + str(z0))
tile=1339
IF uo.count("0x0e85")==0 THEN
uo.print("Non hai picconi in borsa")
uo.say("terminate all")
ENDIF
REPEAT
x=x0-1
y=y0-1
z=z0
a=1
azione:
uo.exec("disarm")
wait(300)
IF tile==1339 THEN
uo.exec("equipt Rhand 0x0e85")
z=0
ENDIF
IF tile==3384 THEN
uo.exec("equipt Rhand 0x0F43")
ENDIF
wait(300)
b=0
REPEAT
b=b+1
uo.exec("waittargettile " + str(tile) + " " + Str(x) + " " + Str(y) + " " + str(z))
IF tile==1339 THEN
UO.Exec("usetype 0x0e85")
ENDIF
IF tile==3384 THEN
uo.exec("usetype 0x0F43")
ENDIF
uo.deletejournal()
wait(1000)
uo.print("azione " + str(b) + " posizione " + str(a))
repeat
wait(10)
until uo.injournal("You finished looping") or uo.injournal("You are not facing that direction") or uo.injournal("That is too") or uo.injournal("Looping aborted") or uo.injournal ("There's no ore left there")
UNTIL b==10 or uo.injournal("There's no")
a=a+1
IF a==2 THEN
x=x0
y=y0-1
goto azione
ENDIF
IF a==3 THEN
x=x0+1
y=y0-1
goto azione
ENDIF
IF a==4 THEN
x=x0+1
y=y0
goto azione
ENDIF
IF a==5 THEN
x=x0+1
y=y0+1
goto azione
ENDIF
IF a==6 THEN
x=x0
y=y0+1
goto azione
ENDIF
IF a==7 THEN
x=x0-1
y=y0+1
goto azione
ENDIF
IF a==8 THEN
x=x0-1
y=y0
goto azione
ENDIF
IF a==9 THEN
x=x0-1
y=y0-2
goto azione
ENDIF
IF a==10 THEN
x=x0
y=y0-2
goto azione
ENDIF
IF a==11 THEN
x=x0+1
y=y0-2
goto azione
ENDIF
IF a==12 THEN
x=x0+2
y=y0-1
goto azione
ENDIF
IF a==13 THEN
x=x0+2
y=y0
goto azione
ENDIF
IF a==14 THEN
x=x0+2
y=y0+1
goto azione
ENDIF
IF a==15 THEN
x=x0+1
y=y0+2
goto azione
ENDIF
IF a==16 THEN
x=x0
y=y0+2
goto azione
ENDIF
IF a==17 THEN
x=x0-1
y=y0+2
goto azione
ENDIF
IF a==18 THEN
x=x0-2
y=y0+1
goto azione
ENDIF
IF a==19 THEN
x=x0-2
y=y0
goto azione
ENDIF
IF a==20 THEN
x=x0-2
y=y0-1
goto azione
ENDIF
UNTIL uo.life==0
end sub