| Yoko http://forum.yoko.com.ua/ |
|
| Помогите пожалуйсто доработать скрипт мининг шард ДрВ http://forum.yoko.com.ua/viewtopic.php?f=17&t=12819 |
Page 1 of 1 |
| Author: | Dimedroll [ 2007-11-27 13:09:34 ] |
| Post subject: | Помогите пожалуйсто доработать скрипт мининг шард ДрВ |
Очень прошу помочь мне со скриптом на мининг для ДрВ шарда. Копает руду в хайде при появлении элементаля чтобы кастовал вортекса и пиз инвизку потом ан орд.Имееться 2 скрипта но не могу соеденить их пробовал не получяеться.Заранее ОГРОМНЕЙШЕЕ СПАСИБО за помощь. Да и ещё если можно чтобы он брал бутылки манки и инвиза из сундука в которые он сбрасывает руду _____________________________ sub maning() #BETEP™# var mx, my, mz, i, j, jor, ser, noto Uo.exec("set norbcheck 1"); äëÿ ðåêîëà uo.exec("set norbcalc 1"); òîæå uo.print('!!Âûáåðè Ëîïàòó!! ') uo.exec('addobject Shovel') while uo.targeting() wait(100) wend uo.print('!!Âûáåðè Ðóíó ÄÎÌÎÉ !! ') uo.exec('addobject runeHome') while uo.targeting() wait(100) wend uo.print('!!Âûáåðè Ðóíó  ÏÅÙÅÐÓ !! ') uo.exec('addobject runeCave') while uo.targeting() wait(100) wend na4alo: 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.print("Ïðÿ÷åìñÿ...") UO.UseSkill("Hiding") wait(4000) wend UO.Print("Êîïàåì â êîîðäèíàòàõ: "+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") and not UO.InJournal("Iron Ore") and not UO.InJournal("Copper") and not UO.InJournal("Rusty Ore") 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) if uo.injournal("heavy") or uo.dead() then pwav() Pause() endif for jor = 0 to 9 ser = uo.journalserial(jor) noto = uo.getnotoriety(ser) if noto <> 1 and noto <> 0 and not uo.injournal("elemental") then if uo.waiting() then uo.canceltarget() endif Save() pwavw() wait(10000) ; âðåìÿ â ñåêóíäàõ ïðè îæèäàíèè ïîêà óéäåò ÏÊ loot() wait(3000) goto reccal endif next wend if uo.weight > 350 then ; Ìàêñèìàëüíûé âåñ ïðè êîòîðîì äîìîé ñ ðóäîé goto end endif wend UO.DeleteJournal() next next goto na4alo end: if uo.waiting() then uo.canceltarget() endif uo.waittargetobject('runeHome') ; äîìîé wait(500) uo.cast('Recall') wait(3000) loot() wait(3000) reccal: uo.deletejournal() if uo.waiting() then uo.canceltarget() endif uo.waittargetobject('runeCave') ; â øàõòó wait(500) uo.cast('Recall') mx = UO.GetX("self") my = UO.GetY("self") wait(10000) if not UO.GetX("self") <> mx and not UO.GetY("self") <> my then goto reccal endif goto na4alo end sub sub loot() ; ïåðåêëàäêà ðóäû â ñóíäóê if uo.waiting() then uo.canceltarget() endif VAR a,Exit VAR UnloadCont='0x40084DAB' ; ÀÉÄÈ ñóíäóêà äëÿ ðóäû 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 Save() ; Ðåêîëë îò ÏÊ ïðè èõ ïîÿâëåíèè (â ïàêå ðóíêà â áåçîïàñíîå ìåñòî è ðåãè) var mx, my reccal: uo.deletejournal() if uo.waiting() then uo.canceltarget() endif mx = UO.GetX("self") my = UO.GetY("self") UO.DeleteJournal() uo.waittargetobject('runeHome') ; äîìîé uo.Usetype('0x0F0E','0x0631') ; Invise wait(50) uo.cast('Recall') wait(4000) if not UO.GetX("self") <> mx and not UO.GetY("self") <> my then goto reccal endif end sub sub pwav() ; çâóê ïðè âûêàïûâàíèè ÝËÅÌÅÍÒÀËÀ uo.playwav("E:\UO\inject\SOUND\chanting sound 01.wav") endsub sub pwavw(); çâóê ïðè ïîÿâëåíèè ÏÊ uo.playwav("E:\UO\inject\SOUND\chanting sound 01.wav") endsub sub Pause() ; Ïàóçà ñêðèïòà åñëè âûêîïàëè Ýëåìà (ïðîäîëæèòü ñêàçàâ GO ) UO.DeleteJournal() REPEAT WAIT(3000) UO.Print("!!!ÑÊÐÈÏÒ ÍÀ ÏÀÓÇÅ!!!!") UNTIL UO.InJournal('GO') UO.Print("!!!ÑÊÐÈÏÒ ÏÐÎÄÎËÆÅÍ!!!!") endif end sub ____________________________________________ ;----------- Summon Energy Vortex, kill elem and loot him ----------- sub killelem() DIM Ore[4] Ore[0]='0x19B7' ; 1 ore Ore[1]='0x19BA' ; 2 ore Ore[2]='0x19B8' ; 3 ore Ore[3]='0x19B9' ; 4 and more ore var i, exit,l UO.DeleteJournal() UO.UnSetReceivingContainer() uo.usetype('0x0f0e','0x0631') wait(3000) povtor: uo.WaitTargetTile("6044", str(UO.GetX()), str(UO.GetY()), str(UO.GetZ())) wait(500) uo.usetype('0x1f66','') wait(5000) if uo.injournal('spell fizzles') then goto povtor endif wait(13000) uo.WaitTargetTile("6044", str(UO.GetX()), str(UO.GetY()), str(UO.GetZ())) wait(500) uo.usetype('0x1f66','') wait(10000) For i=0 to 3 Exit=0 While Exit<>1 UO.FindType(Ore[i],-1,'ground') If UO.GetQuantity('finditem')>0 then UO.Grab('all','finditem') CheckLag() Wait(1000) uo.ignore('finditem') Else Exit=1 Endif Wend Next uo.ignorereset() uo.WaitTargetTile("6044", str(UO.GetX()), str(UO.GetY()), str(UO.GetZ())) dispel: uo.usetype('0x1f62','') wait(6000) if uo.injournal('fizzles') then goto dispel endif end sub ОООООООЧЕНЬ ПРОШУ ПОМОЧЬ |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|