Yoko

All sides of Injection
It is currently 2025-10-16 00:02:39

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2004-05-27 22:06:28 
Offline

Joined: 2004-05-27 22:01:11
Posts: 2
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


Top
   
 Post subject:
PostPosted: 2004-06-03 15:42:14 
Offline

Joined: 2004-05-27 22:01:11
Posts: 2
up :|


Top
   
 Post subject:
PostPosted: 2004-06-03 21:34:08 
Offline

Joined: 2004-05-19 04:47:11
Posts: 47
Location: MSK, RU, TheМля
tested on ZHR
Code:
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


Top
   
 Post subject:
PostPosted: 2004-06-03 21:38:09 
Offline

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


Top
   
 Post subject:
PostPosted: 2004-06-08 06:00:59 
Offline

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited