| Yoko http://forum.yoko.com.ua/ |
|
| Нужен скрипт на мининг что бы ходил по квадрату и копал HELP http://forum.yoko.com.ua/viewtopic.php?f=20&t=5400 |
Page 1 of 1 |
| Author: | manfredy [ 2005-10-07 20:27:51 ] |
| Post subject: | Нужен скрипт на мининг что бы ходил по квадрату и копал HELP |
Нужен скрипт на мининг что бы ходил по квадрату и копал,руда хрен с ней пусть сама сыпится (Желательно что бы скрипт был под Арбуз (Abyss) сферу) Заранее спасибо. Может что можно будет зделать из этого! sub Mining() ; Капание var PX, PY, Ix,Iy, Dist Dist=2 repeat PX = UO.GetX("self") PY = UO.GetY("self") # repeat UO.DeleteJournal() For Iy = -Dist to Dist For Ix = -Dist to Dist UO.Print('Капаем по координате: '+Str(PX+Ix)+':'+Str(PY+Iy)) while (UO.Weight<=600) and not UO.InJournal('There is no ore') and not UO.InJournal("You have no line") and not UO.InJournal("That is to far away") and not UO.InJournal("You can't think") UO.DeleteJournal() UO.WaitTargetTile(-1,Str(PX+Ix),Str(PY+Iy),-1) UO.UseType("0x0E85") while not UO.InJournal("You put the") and not UO.InJournal("You loosen some") and not UO.InJournal("You can't think") and not UO.InJournal("That is to far away") and not UO.InJournal("There is no ore") # UO.Print('2-while') Wait(200) wend # UO.Print('1-while') #If UO.InJournal("You can't use the %s where it") then # uo.exec('exec restart') # uo.Exec('terminate Mining') # endif wend UO.Print('Всё выкапали в: '+Str(PX+Ix)+':'+Str(PY+Iy)+' UO.DeleteJournal() next next UO.Print('Усё!!! всё во круг себя выкапано... терь надо искать другое место!') UO.Press(33,4,300) Until (UO.Weight>=600) endsub sub restart() Wait(2000) uo.exec('exec Mining') endsub |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|