Page 1 of 1
(Script requesting) Mining
Posted: 2004-05-27 22:06:28
by Kons¸.·´
Pleeeeeeeeeeeeeeeeeeeeeeeeeease make a complete script for mining:
that ricognize when a place is empty
change pick when one is broken
move the pg
pull down the ores when the pg is full
...eat
and more if you can
............
Pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeease
Posted: 2004-06-03 15:42:14
by Kons¸.·´
up

Posted: 2004-06-03 21:34:08
by -=M@rTin=-
tested on ZHR
Code: Select all
sub main()
var x,y,where_x,where_y,waits, coords , resources_count, times_dig=0, ore='0x19b9',goldsand='0x0eed', fishstake='0x097b',pickaxe='0x0e85',hammerpick='0x
143c', shovel='0x0f39', dagger='0x0f51',clay='0x1be9'
while uo.weight<60000
x=-2
while x<=2
y=-2
while y<=2
where_x=uo.getx()
where_y=uo.gety()
resources_count=uo.count(ore)+uo.count(goldsand)+uo.count(clay)
coords="waittargettile "+"0 "+str(where_x+x)+" "+str(where_y+y)+" 0"
uo.exec(coords)
if uo.count(pickaxe)>0 then
uo.usetype(pickaxe)
else
if uo.count(hammerpick)>0 then
uo.usetype(hammerpick)
else
if uo.count(shovel)>0 then
uo.usetype(shovel)
else
while (uo.count(pickaxe)+ uo.count(shovel)+uo.count(hammerpick)<1)
uo.waittargettype(dagger)
uo.useskill('Arms Lore')
wait(10000)
wend
endif
endif
endif
###uo.print(coords); - for debug - prints calculated coordinates in command line
waits=0
repeat
wait(1000)
waits=waits+1
until resources_count<>(uo.count(ore)+uo.count(goldsand)+uo.count(clay)) or waits>6
if (uo.count(ore)+uo.count(goldsand)+uo.count(clay))==resources_count then
y=y+1
endif
times_dig=times_dig+1
if times_dig>20 then
if uo.count(fishstake)>0 then
uo.usetype(fishstake)
endif
times_dig=0
endif
wend
x=x+1
wend
wend
end sub
sub dagger()
var x,y,where_x,where_y,waits, coords , resources_count, times_dig=0, ore='0x19b9',goldsand='0x0eed', fishstake='0x097b',pickaxe='0x0e85',hammerpick='0x
143c', shovel='0x0f39', dagger='0x0f51',clay='0x1be9'
while (uo.count(pickaxe)+ uo.count(shovel)+uo.count(hammerpick)>1)
uo.waittargettype(dagger)
uo.useskill('Arms Lore')
wait(10000)
wend
Posted: 2004-06-03 21:38:09
by -=M@rTin=-
its only change pick (by using it, however i`m not sure that this script will work on other shards) & when you haven`t pick, going to loop Arms Lore
Posted: 2004-06-08 06:00:59
by SnowMan
I know this is pretty old, but when i try to run the script i have a problem with the coords because it tells me that the location cannot be seen. Any ideas on this? Or does anyone have a better script then this one to mine in minocs mine. I'd appreciate it alot.
Thanks.