Yoko http://forum.yoko.com.ua/ |
|
Всё тотже мининг( http://forum.yoko.com.ua/viewtopic.php?f=17&t=15068 |
Page 1 of 1 |
Author: | Nokiaf [ 2009-09-01 13:27:00 ] |
Post subject: | Всё тотже мининг( |
Подкиньте пожалуйста скриптик на мининг , чтобы чар бегал по координатам в шахту и из шахты и копал в определённых координатах буду очень признателен! я обыскал форум только так и ненашол ( |
Author: | Mirage [ 2009-09-01 14:01:04 ] |
Post subject: | |
слово "мининг" Результатов поиска: 406 слово "mining" Результатов поиска: 489 И правдо совсем ничего нет ![]() |
Author: | Nokiaf [ 2009-09-01 15:55:39 ] |
Post subject: | |
у меня только 76 ( и то нечего нету подобного( |
Author: | Nokiaf [ 2009-09-01 16:22:46 ] |
Post subject: | |
Ура нашол) sub Na4alokopki() while gotoxy(3669,2175,0) Mining() GoToHome() GoToMine() gotoxy(3665,2175,0) Mining() GoToHome() GoToMine() gotoxy(3661,2175,0) Mining() GoToHome() GoToMine() gotoxy(3657,2175,0) Mining() GoToHome() GoToMine() gotoxy(3653,2175,0) Mining() GoToHome() GoToMine() gotoxy(3649,2175,0) Mining() GoToHome() GoToMine() gotoxy(3645,2175,0) Mining() GoToHome() GoToMine() gotoxy(3641,2175,0) Mining() GoToHome() GoToMine() wend end sub sub GoToHome() gotoxy(3662,2175,0) gotoxy(3662,2193,0) gotoxy(3655,2193,0) gotoxy(3655,2207,0) gotoxy(3637,2207,0) gotoxy(3637,2207,0) gotoxy(3637,2211,0) loot() end sub sub GoToMine() gotoxy(3637,2209,0) gotoxy(3655,2207,0) gotoxy(3655,2193,0) gotoxy(3662,2193,0) gotoxy(3662,2175,0) gotoxy(3669,2175,0) end sub sub Mining() var x,y,z, n VAR LastTimer UO.Set('finddistance','2') n=0 z=UO.GetZ("self") for x=-2 to 2 for y=-2 to 2 UO.Print(str(x)+" "+str(y)) Repeat if UO.InJournal('TORMOZ') then pause() endif UO.DeleteJournal() UO.Warmode("0") UO.WaitTargetTile("1341",STR(UO.GetX()+x),STR(UO.GetY()+Y),str(z)) UO.UseType('0x0E85') LastTimer=UO.Timer() Repeat wait(500) Until UO.InJournal("You put") or UO.InJournal("can't see") or UO.InJournal("heavy") or UO.InJournal("stop") or UO.InJournal("location") or UO.InJournal("no ore") or UO.InJournal("but fail") or UO.InJournal("far away") or UO.InJournal("in rock") or UO.InJournal("must wait") or UO.InJournal("nothing") or UO.InJournal("elsewhere") or UO.InJournal("where it") OR UO.Timer()>LastTimer+200 if UO.InJournal("You put") then n=0 else n=n+1 endif Until UO.InJournal("nothing") or UO.InJournal("elsewhere") or UO.InJournal("no ore here") or UO.InJournal("location") or UO.InJournal("far away") or UO.InJournal("in rock") or UO.InJournal("where it") or n>=5 next next end sub sub loot() ; begin: if uo.waiting() then uo.canceltarget() endif VAR a,Exit VAR UnloadCont='0x400115BA' ; ID sunduka DIM Ore[5] 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) wait(500) For a=0 to 3 Exit=0 repeat UO.FindType(Ore[a]) if UO.GetQuantity('finditem')>0 then UO.Grab('0','finditem') wait(1500) Else Exit=1 endif until Exit==1 Next UO.UnSetReceivingContainer() end sub sub gotoxy(x,y,prec) var ld=0,ldc=0 var dx,dy var mx,my var ox,oy,mk,k #uo.print(">") #uo.track("1",str(x),str(y)) start: mx=UO.GetX() my=UO.GetY() dx=mx-x if dx<0 then dx=0-dx endif dy=my-y if dy<0 then dy=0-dy endif if dy>dx then dx=dy end if if dx<=prec then return end if if not ldc then uo.print(STR(dx)) end if if dx<3 then mk=70 else mk=15 end if ox=mx oy=my for k=1 to mk mx=UO.GetX() my=UO.GetY() if mx<>ox or my<>oy then goto sdidapl end if wait(10) next sdidapl: mx=UO.GetX() my=UO.GetY() dx=mx-x if dx<0 then dx=0-dx endif dy=my-y if dy<0 then dy=0-dy endif if dy>dx then dx=dy end if if dx<=prec then return end if if ld==dx then ldc=ldc+1 if ldc>100 then uo.print("Can not reach location!") return end if else ld=dx end if if mx==x then if my==y then return endif if my>y then #UO.Print("UR") UO.Press(33) goto start endif #UO.Print("DL") UO.Press(35) goto start end if if mx<x then if my>y then #UO.Print("R") UO.Press(39) goto start endif if my==y then #UO.Print("DR") UO.Press(34) goto start endif #UO.Print("D") UO.Press(40) goto start end if if my<y then #UO.Print("L") UO.Press(37) goto start endif if my==y then #UO.Print("LU") UO.Press(36) goto start endif #UO.Print("U") UO.Press(38) goto start end sub Помогите пожалуйста закиньте в етот скрипт типо если выкопал элементаля то скрипт останавливается пожалуйста |
Author: | kostjan [ 2009-09-12 23:42:41 ] |
Post subject: | |
Я в своём скрипте сделал так.... Можеш ешё сирену поставить когда видеш Элементаля, лично у меня так стоит. "is attacking you" можеш заменить своей любой фразой после чего он будет остонавливать скрипт! Это вписываеш в сам скрипт с минингом. Quote: if uo.injournal("is attacking you") then Pauza() endif Сама Пауза Ставиш в низ скрипта куда хочеш! Quote: sub Pauza() ; Пауза... Чтобы продолжить напиши GO или после убийства элементаля он сам продолжит. UO.DeleteJournal() REPEAT WAIT(3000) UO.Print("!!!СКРИПТ НА ПАУЗЕ!!!!") UNTIL UO.InJournal('GO') or UO.InJournal('Body of Earth Elemental') UO.Print("!!!СКРИПТ ПРОДОЛЖЕН!!!!") endif end sub Вот Сирена Чтобы работала вставь "sirena()" после того где идёт проверка журнала! Quote: sub sirena(); ЗВУК
uo.playwav("D:\alarm.wav") endsub Надеюсь помог. И скрипт свой в QUOTE поставь! |
Author: | Nokiaf [ 2009-09-14 14:45:39 ] |
Post subject: | |
Nokiaf wrote: Ура нашол)
sub Na4alokopki() while gotoxy(3669,2175,0) Mining() GoToHome() GoToMine() gotoxy(3665,2175,0) Mining() GoToHome() GoToMine() gotoxy(3661,2175,0) Mining() GoToHome() GoToMine() gotoxy(3657,2175,0) Mining() GoToHome() GoToMine() gotoxy(3653,2175,0) Mining() GoToHome() GoToMine() gotoxy(3649,2175,0) Mining() GoToHome() GoToMine() gotoxy(3645,2175,0) Mining() GoToHome() GoToMine() gotoxy(3641,2175,0) Mining() GoToHome() GoToMine() wend end sub sub GoToHome() gotoxy(3662,2175,0) gotoxy(3662,2193,0) gotoxy(3655,2193,0) gotoxy(3655,2207,0) gotoxy(3637,2207,0) gotoxy(3637,2207,0) gotoxy(3637,2211,0) loot() end sub sub GoToMine() gotoxy(3637,2209,0) gotoxy(3655,2207,0) gotoxy(3655,2193,0) gotoxy(3662,2193,0) gotoxy(3662,2175,0) gotoxy(3669,2175,0) end sub sub Mining() var x,y,z, n VAR LastTimer UO.Set('finddistance','2') n=0 z=UO.GetZ("self") for x=-2 to 2 for y=-2 to 2 UO.Print(str(x)+" "+str(y)) Repeat if UO.InJournal('TORMOZ') then pause() endif UO.DeleteJournal() UO.Warmode("0") UO.WaitTargetTile("1341",STR(UO.GetX()+x),STR(UO.GetY()+Y),str(z)) UO.UseType('0x0E85') LastTimer=UO.Timer() Repeat wait(500) Until UO.InJournal("You put") or UO.InJournal("can't see") or UO.InJournal("heavy") or UO.InJournal("stop") or UO.InJournal("location") or UO.InJournal("no ore") or UO.InJournal("but fail") or UO.InJournal("far away") or UO.InJournal("in rock") or UO.InJournal("must wait") or UO.InJournal("nothing") or UO.InJournal("elsewhere") or UO.InJournal("where it") OR UO.Timer()>LastTimer+200 if UO.InJournal("You put") then n=0 else n=n+1 endif Until UO.InJournal("nothing") or UO.InJournal("elsewhere") or UO.InJournal("no ore here") or UO.InJournal("location") or UO.InJournal("far away") or UO.InJournal("in rock") or UO.InJournal("where it") or n>=5 next next end sub sub loot() ; begin: if uo.waiting() then uo.canceltarget() endif VAR a,Exit VAR UnloadCont='0x400115BA' ; ID sunduka DIM Ore[5] 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) wait(500) For a=0 to 3 Exit=0 repeat UO.FindType(Ore[a]) if UO.GetQuantity('finditem')>0 then UO.Grab('0','finditem') wait(1500) Else Exit=1 endif until Exit==1 Next UO.UnSetReceivingContainer() end sub sub gotoxy(x,y,prec) var ld=0,ldc=0 var dx,dy var mx,my var ox,oy,mk,k #uo.print(">") #uo.track("1",str(x),str(y)) start: mx=UO.GetX() my=UO.GetY() dx=mx-x if dx<0 then dx=0-dx endif dy=my-y if dy<0 then dy=0-dy endif if dy>dx then dx=dy end if if dx<=prec then return end if if not ldc then uo.print(STR(dx)) end if if dx<3 then mk=70 else mk=15 end if ox=mx oy=my for k=1 to mk mx=UO.GetX() my=UO.GetY() if mx<>ox or my<>oy then goto sdidapl end if wait(10) next sdidapl: mx=UO.GetX() my=UO.GetY() dx=mx-x if dx<0 then dx=0-dx endif dy=my-y if dy<0 then dy=0-dy endif if dy>dx then dx=dy end if if dx<=prec then return end if if ld==dx then ldc=ldc+1 if ldc>100 then uo.print("Can not reach location!") return end if else ld=dx end if if mx==x then if my==y then return endif if my>y then #UO.Print("UR") UO.Press(33) goto start endif #UO.Print("DL") UO.Press(35) goto start end if if mx<x then if my>y then #UO.Print("R") UO.Press(39) goto start endif if my==y then #UO.Print("DR") UO.Press(34) goto start endif #UO.Print("D") UO.Press(40) goto start end if if my<y then #UO.Print("L") UO.Press(37) goto start endif if my==y then #UO.Print("LU") UO.Press(36) goto start endif #UO.Print("U") UO.Press(38) goto start end sub Помогите пожалуйста закиньте в етот скрипт типо если выкопал элементаля то скрипт останавливается пожалуйста |
Page 1 of 1 | All times are UTC+02:00 |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |