Yoko

All sides of Injection
It is currently 2025-11-22 23:36:02

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2010-01-20 16:54:08 
Offline

Joined: 2009-06-01 10:02:57
Posts: 64
Пожалуйста переделайте мининг этот так чтоб он руду в банк клал.


Top
   
 Post subject:
PostPosted: 2010-01-20 16:54:49 
Offline

Joined: 2009-06-01 10:02:57
Posts: 64
sub mining()
var mx, my, mz, i, j
var ismining, ixx, isheavy
UO.Set('finddistance', '4')

mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")


UO.UseObject(sunduk)
wait(1000)

While not UO.Dead()
UO.DeleteJournal()
for i = mx-4 to mx+4
for j = my -4 to my+2
UO.Print("Now Mining In: "+str(mx-i)+" "+str(my-j))
ismining = 1
while not UO.InJournal("no ore here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in rock") and ismining

UO.DeleteJournal()
hide()
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Usetype('0x0E85')
ixx = 0
ismining=1
while not UO.InJournal("You put") and not UO.InJournal("location")and not UO.InJournal("but fail") and not UO.InJournal("no ore") and not UO.InJournal("far away") and not UO.InJournal("in rock") and ixx <= 100
wait (100)
ixx = ixx + 1
wend
while UO.InJournal("but fail")
Wait (3000)
UO.DeleteJournal()
wend

if uo.weight > 300 then
CheckLag()
UnloadOre()
end if

if uo.injournal("Dull Copper") then
ismining = 0
endif

if not ismining then
uo.print("Not mining here")
endif
wend
UO.DeleteJournal()
next
next
wend
end sub

sub hide()
while not UO.Hidden()
UO.Warmode("0")
UO.UseSkill("Hiding")
wait(4000)
wend
end sub

Sub UnloadOre()
var i
DIM Ore[4]
Ore[0]=0x19B9 ; 4 and more ore
Ore[1]=0x19B7 ; 1 ore
Ore[2]=0x19BA ; 2 ore
Ore[3]=0x19B8 ; 3 ore

for i = 0 to 3
UO.FindType(ore[i], '-1', 'backpack')
If UO.FindCount() > 0 then
repeat
CheckLag()
UO.MoveItem('finditem', '-1', sunduk)
wait(100)
UO.FindType(ore[i], '-1', 'backpack')
until not UO.FindCount()
else
wait(100)
end if
next
end sub


Sub Grab()
var i
DIM Ore[4]
Ore[0]=0x19B9 ; 4 and more ore
Ore[1]=0x19B7 ; 1 ore
Ore[2]=0x19BA ; 2 ore
Ore[3]=0x19B8 ; 3 ore

for i = 0 to 3
UO.FindType(ore[i], '-1', 'ground')
If UO.FindCount() > 0 then
repeat
CheckLag()
UO.MoveItem('finditem', '-1', 'backpack')
wait(100)
UO.FindType(ore[i], '-1', 'ground')
until not UO.FindCount()
else
wait(100)
end if
next
end sub

sub CheckLag()
UO.DeleteJournal()
UO.Click('backpack')
repeat
wait(500)
until UO.InJournal('backpack')
end sub


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 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