(Script requesting) Mining

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Kons¸.·&#180
Posts: 2
Joined: 2004-05-27 22:01:11
Contact:

(Script requesting) Mining

Post by Kons¸.·&#180 »

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 :D
and more if you can :)




............


Pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeease
Kons¸.·&#180
Posts: 2
Joined: 2004-05-27 22:01:11
Contact:

Post by Kons¸.·&#180 »

up :|
-=M@rTin=-
Posts: 47
Joined: 2004-05-19 04:47:11
Location: MSK, RU, TheМля
Contact:

Post 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
-=M@rTin=-
Posts: 47
Joined: 2004-05-19 04:47:11
Location: MSK, RU, TheМля
Contact:

Post 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
SnowMan
Posts: 10
Joined: 2004-05-31 03:37:37

Post 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.
Post Reply