Yoko

All sides of Injection
It is currently 2025-12-26 09:51:16

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2004-06-25 13:22:39 
Offline

Joined: 2004-06-11 12:26:31
Posts: 11
Люди! Плиз дайте скрипт на мининг, который РАБОТАЕТ на всех шардах(или хотя бы на РУО), что бы чар выкопаную руду клал в банк, сам банк стоит прям в шахте(в виде сундука), желательно при атоковании чара кричал бы "guards", или любой другой скрипт с ходьбой, ПЛИЗ!!!


Top
   
 Post subject:
PostPosted: 2004-06-25 17:08:07 
Offline
Expert!
User avatar

Joined: 2004-05-31 09:31:51
Posts: 838
http://yoko.netroof.net/forum/viewtopic.php?t=615


Top
   
 Post subject:
PostPosted: 2004-06-25 17:22:04 
Offline
Expert!
User avatar

Joined: 2004-05-31 09:31:51
Posts: 838
Мининг (вокруг себя) + в конце есть скрит на разгрузку
sub main()
var mx, my, mz, i, j
repeat
uo.addobject("Shovel",0x40033BC8) # ID лопаты или, чем ты, там, копаешь
na4:
; gotoxy(5136,1181) #точка копки
mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")
UO.DeleteJournal()
for i = mx-4 to mx+4
for j = my-4 to my+4
while not UO.Hidden()
UO.Warmode("0")
UO.UseSkill("Hiding")
wait(4000)
wend
UO.Print("Now Mining In: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("no ore here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in rock")
UO.DeleteJournal()
if uo.waiting() then
uo.canceltarget()
endif
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Useobject("Shovel")
while not UO.InJournal("You put") and not UO.InJournal("heavy") and not UO.InJournal("location") and not UO.InJournal("no ore") and not UO.InJournal("but fail") and not UO.InJournal("far away") and not UO.InJournal("in rock")
wait(500)
endif
wend
UO.DeleteJournal()
if uo.Weight>740 then # максимальный вес
loot()
goto na4
endif
next
next
until uo.dead()
end sub

sub unloadore()
VAR TempX,TempY,i,Exit
VAR UnloadX=5518, UnloadY=1434
VAR UnloadCont='0x401d7b11' # Ид сундука
DIM Ore[5]

TempX=UO.GetX()
TempY=UO.GetY()

While UO.GetEasyUO(99)=='1'
wait(3000)
Wend

Ore[0]=0x19B9 ; 4 and more ore
Ore[1]=0x19B7 ; 1 ore
Ore[2]=0x19BA ; 2 ore
Ore[3]=0x19B8 ; 3 ore

UO.SetReceivingContainer(UnloadCont) ; storecontainer
wait(500)
For i=0 to 3
Exit=0
repeat
UO.FindType(Ore[i])

if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(1500)
Else
Exit=1
endif
until Exit==1
Next

UO.UnSetReceivingContainer()
end sub


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 3 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