Сабж.
Code: ######################################################## #IAU?AEAIEA IA?AIAIIUO: ######################################################## var tShovel='0x0E85' #Oei ee?ee eee eiiaou (ee?ea) ######################################################## var tSeif='0x4036BCB5' #Ea naeoa aaa ea?ao i?u e oaa?ee ######################################################## var tEat='0x097B' #Oei aau (oeonoaeee) ####################################
sub go(x,y,k,m) while UO.GetX()<>x or UO.GetY()<>y UO.Press(k) CheckLag() wend if m==1 then Dig() end if end sub
sub main() while Not UO.Dead() FollowMine() UnLoad() ToEat() GoBeg() wend end sub
sub FollowMine() dig() go(1775,1086,35,0) go(1775,1087,35,1) go(1775,1088,35,0) go(1775,1089,35,1) go(1775,1090,35,0) go(1775,1091,35,1) go(1775,1092,35,0) go(1775,1093,35,1) go(1775,1094,35,0) go(1775,1095,35,1) go(1775,1096,35,0) go(1775,1097,35,1) go(1775,1098,35,0) go(1775,1099,35,1) go(1775,1100,35,0) go(1775,1101,35,1) go(1775,1102,35,0) go(1775,1103,35,1) go(1775,1104,35,0) go(1775,1105,35,1) go(1775,1106,35,0) go(1775,1107,35,1) go(1775,1108,35,0) go(1776,1108,34,1) go(1776,1109,35,0) go(1776,1110,35,0) go(1777,1110,34,1) go(1777,1111,35,0) go(1777,1112,35,1) go(1777,1113,35,0) go(1777,1114,35,1) go(1777,1115,35,0) go(1777,1116,35,1) end sub
sub GoBeg() go(1777,1110,33,0) go(1775,1110,36,0) go(1775,1086,33,0) end sub
sub CheckLag() UO.DeleteJournal() UO.Click('backpack') repeat wait(50) until UO.InJournal('backpack') end sub
sub tohide() while NOT UO.Hidden() UO.DeleteJournal() UO.Warmode('0') UO.UseSkill('Hiding') repeat wait(50) until UO.InJournal('You have hidden') OR UO.InJou UO.InJournal('seem to hide') OR UO.InJournal('preoccupied') or UO.Dead() wend end sub
sub UnLoad() var i DIM Item[13] ###################################### #Oeiu i?ia, a?aaioaiiuo eaiiae, cieioa ###################################### Item[1]=0x19B9 ; >3 ore Item[2]=0x19B7 ; 1 ore Item[3]=0x19BA ; 2 ore Item[4]=0x19B8 ; 3 ore Item[5]=0x0F11 ; saphires Item[6]=0x0F16 ; amethysts Item[7]=0x0F18 ; tourmalines Item[8]=0x0F15 ; citrines Item[9]=0x0F10 ; emeralds Item[10]=0x0F0F ; star sapphires Item[11]=0x0F26 ; diamonds Item[12]=0x0EED ; gold ###################################### for i = 1 to 12 UO.FindType(Item[i], '-1', 'backpack') while UO.GetQuantity('finditem') > 0 UO.MoveItem('finditem','-1',tSeif) Wait(1000) CheckLag() UO.FindType(Item[i],'-1','backpack') wend next end sub
sub ToEat() UO.UseObject(tSeif) UO.FindType(tEat ?Maybek ?(07:43 PM)? : ,'0x0000',tSeif) if UO.FindCount() > 0 then UO.MoveItem('finditem','20','backpack') else return end if repeat CheckLag() uo.UseType(tEat) while not uo.InJournal("can't") and not uo.InJournal('full') and not uo.InJournal('stuffed') and not uo.InJournal('hungry') and not uo.InJournal('satiated') and not UO.Dead() wait(100) wend until uo.InJournal('too full') or UO.Dead() UO.FindType(tEat, '0x0000','backpack') if UO.FindC ount() > 0 then UO.MoveItem('finditem','20',tSeif) end if end sub
sub Dig() var mx = UO.GetX("self"), my = UO.GetY("self"), mz = UO.GetZ("self"),TileNum='1339', t=0 var i,j if UO.Dead() then UO.CloseUO() end if for i = mx-1 to mx+1 for j = my-1 to my+1 tohide() while not UO.InJournal("no ore here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in rock") tohide() CheckLag() UO.Waittargettile("1341", str(i), str(j), str(mz)) UO.Exec("usetype " + tShovel) 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 not UO.InJournal("OOPS") and not UO.InJournal("attacking you") wait(500) wend if UO.InJournal('something with ore') OR UO.InJournal("attacking you") then t =1 end if if UO.InJournal("but fail") then wait(1000) end if wend UO.DeleteJournal() next next if t == 1 then Pause() end if return 1 end sub
sub Pause() UO.DeleteJournal() REPEAT WAIT(3000) UO.Print("!!!Skript na payze!!!!") UNTIL UO.InJournal('GO') UO.Print("!!!Skript prodolgen!!!!") end sub
|