| Yoko http://forum.yoko.com.ua/ |
|
| Люди помогите пожалуйста проблема с скриптом. http://forum.yoko.com.ua/viewtopic.php?f=20&t=2235 |
Page 1 of 1 |
| Author: | Angel Shadof [ 2004-12-13 12:44:53 ] |
| Post subject: | Люди помогите пожалуйста проблема с скриптом. |
У меня такая проблемка есть один скрипт который норм но он под рун бук сделан а у нас на шарде их нема ктонить может переделать плиз под руны. sub mining() VAR x,y,z='0',TileNum='1339' VAR Last=0,LastTimer For x=-4 to 4 For y=-4 to 4 Repeat CheckLag() ToHide() UO.WaitTargetTile(TileNum,STR(UO.GetX()+x),STR(UO.GetY()+Y),z) UO.UseType('0x0E85') LastTimer=UO.Timer() if UO.Weight>650 runebookhome() endif repeat wait(2000) until UO.InJournal("Try mining") OR UO.InJournal("You put") OR UO.InJournal("You loosen") OR UO.InJournal("There is no") OR UO.InJournal("That is too") OR UO.InJournal("OOPS") OR UO.InJournal("attacking you") OR LastTimer+105<UO.Timer() if UO.InJournal('You loosen') then repeat wait (500) until UO.InJournal("You put") OR LastTimer+105<UO.Timer() endif until UO.InJournal("There is no") OR UO.InJournal("That is too") OR UO.InJournal("Try mining") Next Next ; runebookhome() end sub sub tohide() while NOT UO.Hidden() UO.DeleteJournal() UO.FindType('0x0F0E','0x0631','my') if UO.Life<UO.STR/2 AND UO.GetQuantity('finditem')>0 then UO.UseType('0x0F0E','0x0631') UO.Exec('warmode 0') wait(2000) else UO.Exec('warmode 0') UO.UseSkill('Stealth') repeat wait(50) until UO.InJournal('You have hidden') OR UO.InJournal('seem to hide') OR UO.InJournal('preoccupied') endif wend end sub sub CheckLag() UO.DeleteJournal() UO.Click('backpack') repeat wait(500) until UO.InJournal('backpack') end sub sub unloadore() VAR TempX,TempY,i,Exit DIM Ore[5] CheckLag() tohide() TempX=UO.GetX() TempY=UO.GetY() Ore[0]=0x19B9 Ore[1]=0x19B7 Ore[2]=0x19BA Ore[3]=0x19B8 UO.SetReceivingContainer('0x414479A5') 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() runebookmining2() end sub sub runebookhome() CheckLag() uo.print('Реколимся домой...') UO.UseObject ('0x40055E0C') ;-Здесь вписываем ID рунбука wait(3500) UO.LClick(135,99) ;-ето номер руны в рунбуке...мой номр 3 слот... wait(12000) unloadore() end sub sub runebookmining() CheckLag() uo.print('Реколимся обратно...') wait(5000) UO.UseObject('0x40055E0C') ;-Здесь вписываем ID рунбука wait(3500) UO.LClick(135,129) ;-ето номер руны в рунбуке...мой номр 5 слот... wait(12000) mining() end sub sub runebookmining2() CheckLag() uo.print('Реколимся обратно...') wait(5000) UO.UseObject('0x40055E0C') ;-Здесь вписываем ID рунбука wait(3500) UO.LClick(135,114) ;-ето номер руны в рунбуке...мой номр 4 слот... wait(12000) mining2() end sub sub mining2() VAR x,y,z='0',TileNum='1339' VAR Last=0,LastTimer For x=-4 to 4 For y=-4 to 4 Repeat CheckLag() ToHide() UO.WaitTargetTile(TileNum,STR(UO.GetX()+x),STR(UO.GetY()+Y),z) UO.UseType('0x0E85') LastTimer=UO.Timer() if UO.Weight>650 runebookhome2() endif repeat wait(2000) until UO.InJournal("Try mining") OR UO.InJournal("You put") OR UO.InJournal("You loosen") OR UO.InJournal("There is no") OR UO.InJournal("That is too") OR UO.InJournal("OOPS") OR UO.InJournal("attacking you") OR LastTimer+105<UO.Timer() if UO.InJournal('You loosen') then repeat wait (500) until UO.InJournal("You put") OR LastTimer+105<UO.Timer() endif until UO.InJournal("There is no") OR UO.InJournal("That is too") OR UO.InJournal("Try mining") Next Next ; runebookhome2() end sub sub runebookhome2() CheckLag() uo.print('Реколимся домой...') UO.UseObject('0x40055E0C') ;-Здесь вписываем ID рунбука wait(3500) UO.LClick(135,99) ;-ето номер руны в рунбуке...мой номр 3 слот... wait(12000) unloadore2() end sub sub unloadore2() VAR TempX,TempY,i,Exit DIM Ore[5] CheckLag() tohide() TempX=UO.GetX() TempY=UO.GetY() Ore[0]=0x19B9 Ore[1]=0x19B7 Ore[2]=0x19BA Ore[3]=0x19B8 UO.SetReceivingContainer('0x414479A5') ;--Здесь вписываем ID яшика 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() wait(10000) runebookmining() end sub Или еще лучьше помогите просто вот к етому скрипту добавить чтобы чар ходил и относил руду домой в сундук и возвращался. sub mining() var mx, my, mz, i, j var ismining, ixx, isheavy mx = UO.GetX("self") my = UO.GetY("self") mz = UO.GetZ("self") UO.DeleteJournal() for i = mx-3 to mx+3 for j = my -3 to my+3 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() UO.Waittargettile("1341", str(i), str(j), str(mz)) UO.Usetype('0x0e85') if UO.Weight>840 then UO.recall('0x40023FBD','2') Return endif ixx = 0 ismining=1 while not UO.InJournal("You put") 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") and ixx <= 100 wait (100) ixx = ixx + 1 wend if uo.injournal("Rusty") then ismining = 0 endif if uo.injournal("Old Copper") then ismining = 0 endif if uo.injournal("Copper Ore") then ismining = 0 endif if uo.injournal("the Copper") then ismining = 0 endif if uo.injournal("Iron") then ismining = 0 endif if not ismining then uo.print("Not mining here") endif wend UO.DeleteJournal() next next goto allstop UO.recall('0x40023FBD','2') allstop: uo.print("*** Script ended ***") end sub sub healing() UO.SetArm('CWeapon') UO.Exec("bandageself") wait(500) UO.Arm('CWeapon') end sub Плиз помогите. |
|
| Author: | Lord Desa [ 2004-12-14 03:15:01 ] |
| Post subject: | |
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('!!Home-Rune!! ') uo.exec('home-rune') while uo.targeting() wait(100) wend uo.print('!!Cave-Rune!! ') uo.exec('cave-rune') 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(90000) ; âðåìÿ â ñåêóíäàõ ïðè îæèäàíèè ïîêà óéäåò ÏÊ loot() wait(3000) goto reccal endif next wend if uo.weight > 700 then ; Ìàêñèìàëüíûé âåñ ïðè êîòîðîì äîìîé ñ ðóäîé goto end endif wend UO.DeleteJournal() next next goto na4alo end: if uo.waiting() then uo.canceltarget() endif uo.exec("recall home-rune") ; äîìîé wait(10000) loot() wait(3000) reccal: uo.deletejournal() if uo.waiting() then uo.canceltarget() endif uo.exec("recall cave-rune") ; â øàõòó 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='0x400B2A69' ; ÀÉÄÈ ñóíäóêà äëÿ ðóäû 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.FindType('home-rune',-1,'my') wait(200) UO.Cast('Recall','finditem') wait(4000) if not UO.GetX("self") <> mx and not UO.GetY("self") <> my then goto reccal endif end sub sub pwav() ; çâóê ïðè âûêàïûâàíèè ÝËÅÌÅÍÒÀËÀ uo.playwav("D:\games\ultima online\alert.wav") endsub sub pwavw(); çâóê ïðè ïîÿâëåíèè ÏÊ uo.playwav("D:\games\ultima online\alert.wav") endsub sub Pause() ; Ïàóçà ñêðèïòà åñëè âûêîïàëè Ýëåìà (ïðîäîëæèòü ñêàçàâ GO ) UO.DeleteJournal() REPEAT WAIT(3000) UO.Print("!!!ÑÊÐÈÏÒ ÍÀ ÏÀÓÇÅ!!!!") UNTIL UO.InJournal('GO') UO.Print("!!!ÑÊÐÈÏÒ ÏÐÎÄÎËÆÅÍ!!!!") endif end sub mozet budet rabotat' |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|