Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub autopilot()
- uo.setglobal("bandeni","zaple")
- uo.exec("exec on_off")
- wait(500)
- wait(1500)
- end sub
- sub e0()
- uo.exec("terminate autobandy")
- wait(2000)
- uo.canceltarget()
- wait(1000)
- uo.addobject("obj0")
- wait(200)
- while UO.Targeting()
- wait(100)
- wend
- uo.Print('Objekt zadan')
- uo.msg('.setequip0')
- uo.waittargetobject("obj0")
- end sub
- sub e1()
- uo.exec("terminate autobandy")
- wait(2000)
- uo.canceltarget()
- wait(1000)
- uo.addobject("obj1")
- wait(200)
- while UO.Targeting()
- wait(100)
- wend
- uo.Print('Objekt zadan')
- uo.msg('.setequip1')
- uo.waittargetobject("obj1")
- end sub
- sub e2()
- uo.exec("terminate autobandy")
- wait(2000)
- uo.canceltarget()
- wait(1000)
- uo.addobject("obj2")
- wait(200)
- while UO.Targeting()
- wait(100)
- wend
- uo.Print('Objekt zadan')
- uo.msg('.setequip2')
- uo.waittargetobject("obj2")
- end sub
- sub e3()
- uo.exec("terminate autobandy")
- wait(2000)
- uo.canceltarget()
- wait(1000)
- uo.addobject("obj3")
- wait(200)
- while UO.Targeting()
- wait(100)
- wend
- uo.Print('Objekt zadan')
- uo.msg('.setequip3')
- uo.waittargetobject("obj3")
- end sub
- sub e4()
- uo.exec("terminate autobandy")
- wait(2000)
- uo.canceltarget()
- wait(1000)
- uo.addobject("obj4")
- wait(200)
- while UO.Targeting()
- wait(100)
- wend
- uo.Print('Objekt zadan')
- uo.msg('.setequip4')
- uo.waittargetobject("obj4")
- end sub
- sub e5()
- uo.exec("terminate autobandy")
- wait(2000)
- uo.canceltarget()
- wait(1000)
- uo.addobject("obj5")
- wait(200)
- while UO.Targeting()
- wait(100)
- wend
- uo.Print('Objekt zadan')
- uo.msg('.setequip5')
- uo.waittargetobject("obj5")
- end sub
- sub e6()
- uo.exec("terminate autobandy")
- wait(2000)
- uo.canceltarget()
- wait(1000)
- uo.addobject("obj6")
- wait(200)
- while UO.Targeting()
- wait(100)
- wend
- uo.Print('Objekt zadan')
- uo.msg('.setequip6')
- uo.waittargetobject("obj6")
- end sub
- sub on_off()
- if uo.getglobal("stav")=="zap" then
- uo.exec("terminate autobandy")
- uo.print("BANDENI V Y P N U T E !!")
- wait(150)
- UO.SetGlobal("stav","vyp")
- wait(150)
- uo.setglobal("bandeni","vyple")
- else
- uo.print("BANDENI Z A P N U T E !!")
- wait(150)
- Uo.SetGlobal("stav","zap")
- wait(150)
- uo.setglobal("bandeni","zaple")
- Uo.exec("exec autobandy")
- endif
- end sub
- sub harmik()
- uo.exec("terminate autobandy")
- uo.exec("terminate lecenihracjedna")
- uo.exec("terminate lecenihractri")
- uo.exec("terminate lecenihracdva")
- uo.exec("terminate lecenihracctyri")
- uo.exec("terminate lecenihracpet")
- uo.exec("terminate lesenihracsest")
- uo.cast("Harm","self")
- wait(2000)
- uo.exec("exec autobandy")
- end sub
- sub autobandy()
- if uo.getglobal("bandeni")=="vyple" then
- return
- end if
- zacatek:
- while not uo.dead()
- wait(100)
- while uo.hidden("self")
- wait(100)
- wend
- if uo.gethp("self") < 80 then
- goto sebe
- end if
- if uo.count("0x0E20") < 80 then ;pocita krvave bandy
- uo.print("Mas jen "+str(uo.count("0x0E20"))+" bandazi, umyju spinave")
- wait(1000)
- uo.canceltarget()
- wait(1000)
- uo.waittargettype("0x0FAB") ;kad s krvi
- uo.usetype("0x0E21") ;ciste bandy
- wait(1000)
- end if
- uo.setglobal("vitez","10")
- uo.setglobal("pkp","10")
- uo.setglobal("pkd","10")
- uo.setglobal("pkt","10")
- uo.setglobal("pkc","10")
- uo.setglobal("dkp","10")
- uo.setglobal("dkd","10")
- if not (uo.gethp("obj0")==0) and not (uo.gethp("obj0")>90) and not Uo.getdistance("obj0") > 6 then
- uo.setglobal("n","1")
- else
- uo.setglobal("n","0")
- end if
- if not (uo.gethp("obj1")==0) and not (uo.gethp("obj1")>85) and not Uo.getdistance("obj1") > 6 then
- uo.setglobal("j","1")
- else
- uo.setglobal("j","0")
- end if
- if not (uo.gethp("obj2")==0) and not (uo.gethp("obj2")>85) and not Uo.getdistance("obj2") > 6 then
- uo.setglobal("d","1")
- else
- uo.setglobal("d","0")
- end if
- if not (uo.gethp("obj3")==0) and not (uo.gethp("obj3")>85) and not Uo.getdistance("obj3") > 6 then
- uo.setglobal("t","1")
- else
- uo.setglobal("t","0")
- end if
- if not (uo.gethp("obj4")==0) and not (uo.gethp("obj4")>85) and not Uo.getdistance("obj4") > 6 then
- uo.setglobal("c","1")
- else
- uo.setglobal("c","0")
- end if
- if not (uo.gethp("obj5")==0) and not (uo.gethp("obj5")>85) and not Uo.getdistance("obj5") > 6 then
- uo.setglobal("p","1")
- else
- uo.setglobal("p","0")
- end if
- if not (uo.gethp("obj6")==0) and not (uo.gethp("obj6")>85) and not Uo.getdistance("obj6") > 6 then
- uo.setglobal("s","1")
- else
- uo.setglobal("s","0")
- end if
- if not (uo.gethp("obj7")==0) and not (uo.gethp("obj7")>85) and not Uo.getdistance("obj7") > 6 then
- uo.setglobal("x","1")
- else
- uo.setglobal("x","0")
- end if
- if (uo.getglobal("n")=="1") and (uo.getglobal("j")=="1") and not Uo.getdistance("obj0") > 6 then
- if uo.gethp("obj0") < uo.gethp("obj1") then
- uo.setglobal("pkp","0")
- else
- uo.setglobal("pkp","1")
- end if
- else
- if uo.getglobal("n")=="1" then
- uo.setglobal("pkp","0")
- else
- if uo.getglobal("j")=="1" then
- uo.setglobal("pkp","1")
- end if
- end if
- end if
- if (uo.getglobal("d")=="1") and (uo.getglobal("t")=="1") then
- if uo.gethp("obj2") < uo.gethp("obj3") then
- uo.setglobal("pkd","2")
- else
- uo.setglobal("pkd","3")
- end if
- else
- if uo.getglobal("d")=="1" then
- uo.setglobal("pkd","2")
- else
- if uo.getglobal("t")=="1" then
- uo.setglobal("pkd","3")
- end if
- end if
- end if
- if (uo.getglobal("c")=="1") and (uo.getglobal("p")=="1") then
- if uo.gethp("obj4") < uo.gethp("obj5") then
- uo.setglobal("pkt","4")
- else
- uo.setglobal("pkt","5")
- end if
- else
- if uo.getglobal("c")=="1" then
- uo.setglobal("pkt","4")
- else
- if uo.getglobal("p")=="1" then
- uo.setglobal("pkt","5")
- end if
- end if
- end if
- if (uo.getglobal("s")=="1") and (uo.getglobal("x")=="1") then
- if uo.gethp("obj6") < uo.gethp("obj7") then
- uo.setglobal("pkc","6")
- else
- uo.setglobal("pkc","7")
- end if
- else
- if uo.getglobal("s")=="1" then
- uo.setglobal("pkc","6")
- else
- if uo.getglobal("x")=="1" then
- uo.setglobal("pkc","7")
- end if
- end if
- end if
- if uo.getglobal("pkp")=="0" then
- if uo.getglobal("pkd")=="2" then
- if uo.gethp("obj0") < uo.gethp("obj2") then
- uo.setglobal("dkp","0")
- goto skokjedna
- else
- uo.setglobal("dkp","2")
- goto skokjedna
- end if
- end if
- end if
- if uo.getglobal("pkp")=="0" then
- if uo.getglobal("pkd")=="3" then
- if uo.gethp("obj0") < uo.gethp("obj3") then
- uo.setglobal("dkp","0")
- goto skokjedna
- else
- uo.setglobal("dkp","3")
- goto skokjedna
- end if
- end if
- end if
- if uo.getglobal("pkp")=="1" then
- if uo.getglobal("pkd")=="2" then
- if uo.gethp("obj1") < uo.gethp("obj2") then
- uo.setglobal("dkp","1")
- goto skokjedna
- else
- uo.setglobal("dkp","2")
- goto skokjedna
- end if
- end if
- end if
- if uo.getglobal("pkp")=="1" then
- if uo.getglobal("pkd")=="3" then
- if uo.gethp("obj1") < uo.gethp("obj3") then
- uo.setglobal("dkp","1")
- goto skokjedna
- else
- uo.setglobal("dkp","3")
- goto skokjedna
- end if
- end if
- end if
- if uo.getglobal("pkp")=="0" then
- uo.setglobal("dkp","0")
- end if
- if uo.getglobal("pkp")=="1" then
- uo.setglobal("dkp","1")
- end if
- if uo.getglobal("pkd")=="2" then
- uo.setglobal("dkp","2")
- end if
- if uo.getglobal("pkd")=="3" then
- uo.setglobal("dkp","3")
- end if
- skokjedna:
- if uo.getglobal("pkt")=="4" then
- if uo.getglobal("pkc")=="6" then
- if uo.gethp("obj4") < uo.gethp("obj6") then
- uo.setglobal("dkd","4")
- goto skokdva
- else
- uo.setglobal("dkd","6")
- goto skokdva
- end if
- end if
- end if
- if uo.getglobal("pkt")=="4" then
- if uo.getglobal("pkc")=="7" then
- if uo.gethp("obj4") < uo.gethp("obj7") then
- uo.setglobal("dkd","4")
- goto skokdva
- else
- uo.setglobal("dkd","7")
- goto skokdva
- end if
- end if
- end if
- if uo.getglobal("pkt")=="5" then
- if uo.getglobal("pkc")=="6" then
- if uo.gethp("obj5") < uo.gethp("obj6") then
- uo.setglobal("dkd","5")
- goto skokdva
- else
- uo.setglobal("dkd","6")
- goto skokdva
- end if
- end if
- end if
- if uo.getglobal("pkt")=="5" then
- if uo.getglobal("pkc")=="7" then
- if uo.gethp("obj5") < uo.gethp("obj7") then
- uo.setglobal("dkd","5")
- goto skokdva
- else
- uo.setglobal("dkd","7")
- goto skokdva
- end if
- end if
- end if
- if uo.getglobal("pkt")=="4" then
- uo.setglobal("dkd","4")
- end if
- if uo.getglobal("pkt")=="5" then
- uo.setglobal("dkd","5")
- end if
- if uo.getglobal("pkc")=="6" then
- uo.setglobal("dkd","6")
- end if
- if uo.getglobal("pkc")=="7" then
- uo.setglobal("dkd","7")
- end if
- skokdva:
- if (uo.getglobal("dkp")=="0") and (uo.getglobal("dkd")=="4") then
- if uo.gethp("obj0") < uo.gethp("obj4") then
- uo.setglobal("vitez","0")
- else
- uo.setglobal("vitez","4")
- end if
- end if
- if (uo.getglobal("dkp")=="0") and (uo.getglobal("dkd")=="5") then
- if uo.gethp("obj0") < uo.gethp("obj5") then
- uo.setglobal("vitez","0")
- else
- uo.setglobal("vitez","5")
- end if
- end if
- if (uo.getglobal("dkp")=="0") and (uo.getglobal("dkd")=="6") then
- if uo.gethp("obj0") < uo.gethp("obj6") then
- uo.setglobal("vitez","0")
- else
- uo.setglobal("vitez","6")
- end if
- end if
- if (uo.getglobal("dkp")=="0") and (uo.getglobal("dkd")=="7") then
- if uo.gethp("obj0") < uo.gethp("obj7") then
- uo.setglobal("vitez","0")
- else
- uo.setglobal("vitez","7")
- end if
- end if
- if (uo.getglobal("dkp")=="1") and (uo.getglobal("dkd")=="4") then
- if uo.gethp("obj1") < uo.gethp("obj4") then
- uo.setglobal("vitez","1")
- else
- uo.setglobal("vitez","4")
- end if
- end if
- if (uo.getglobal("dkp")=="1") and (uo.getglobal("dkd")=="5") then
- if uo.gethp("obj1") < uo.gethp("obj5") then
- uo.setglobal("vitez","1")
- else
- uo.setglobal("vitez","5")
- end if
- end if
- if (uo.getglobal("dkp")=="1") and (uo.getglobal("dkd")=="6") then
- if uo.gethp("obj1") < uo.gethp("obj6") then
- uo.setglobal("vitez","1")
- else
- uo.setglobal("vitez","6")
- end if
- end if
- if (uo.getglobal("dkp")=="1") and (uo.getglobal("dkd")=="7") then
- if uo.gethp("obj1") < uo.gethp("obj7") then
- uo.setglobal("vitez","1")
- else
- uo.setglobal("vitez","7")
- end if
- end if
- if (uo.getglobal("dkp")=="2") and (uo.getglobal("dkd")=="4") then
- if uo.gethp("obj2") < uo.gethp("obj4") then
- uo.setglobal("vitez","2")
- else
- uo.setglobal("vitez","4")
- end if
- end if
- if (uo.getglobal("dkp")=="2") and (uo.getglobal("dkd")=="5") then
- if uo.gethp("obj2") < uo.gethp("obj5") then
- uo.setglobal("vitez","2")
- else
- uo.setglobal("vitez","5")
- end if
- end if
- if (uo.getglobal("dkp")=="2") and (uo.getglobal("dkd")=="6") then
- if uo.gethp("obj2") < uo.gethp("obj6") then
- uo.setglobal("vitez","2")
- else
- uo.setglobal("vitez","6")
- end if
- end if
- if (uo.getglobal("dkp")=="2") and (uo.getglobal("dkd")=="7") then
- if uo.gethp("obj2") < uo.gethp("obj7") then
- uo.setglobal("vitez","2")
- else
- uo.setglobal("vitez","7")
- end if
- end if
- if (uo.getglobal("dkp")=="3") and (uo.getglobal("dkd")=="4") then
- if uo.gethp("obj3") < uo.gethp("obj4") then
- uo.setglobal("vitez","3")
- else
- uo.setglobal("vitez","4")
- end if
- end if
- if (uo.getglobal("dkp")=="3") and (uo.getglobal("dkd")=="5") then
- if uo.gethp("obj3") < uo.gethp("obj5") then
- uo.setglobal("vitez","3")
- else
- uo.setglobal("vitez","5")
- end if
- end if
- if (uo.getglobal("dkp")=="3") and (uo.getglobal("dkd")=="6") then
- if uo.gethp("obj3") < uo.gethp("obj6") then
- uo.setglobal("vitez","3")
- else
- uo.setglobal("vitez","6")
- end if
- end if
- if (uo.getglobal("dkp")=="3") and (uo.getglobal("dkd")=="7") then
- if uo.gethp("obj3") < uo.gethp("obj7") then
- uo.setglobal("vitez","3")
- else
- uo.setglobal("vitez","7")
- end if
- end if
- if uo.getglobal("vitez")=="10" then
- if uo.getglobal("dkp")=="0" then
- uo.setglobal("vitez","0")
- end if
- if uo.getglobal("dkp")=="1" then
- uo.setglobal("vitez","1")
- end if
- if uo.getglobal("dkp")=="2" then
- uo.setglobal("vitez","2")
- end if
- if uo.getglobal("dkp")=="3" then
- uo.setglobal("vitez","3")
- end if
- if uo.getglobal("dkd")=="4" then
- uo.setglobal("vitez","4")
- end if
- if uo.getglobal("dkd")=="5" then
- uo.setglobal("vitez","5")
- end if
- if uo.getglobal("dkd")=="6" then
- uo.setglobal("vitez","6")
- end if
- if uo.getglobal("dkd")=="7" then
- uo.setglobal("vitez","7")
- end if
- end if
- uo.deletejournal()
- wait(50)
- if uo.getglobal("vitez")=="0" then
- healjedna:
- uo.msg(".samheal0")
- wait(200)
- while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
- uo.journal(2)
- repeat
- wait(100)
- if uo.gethp("obj0")==0 then
- uo.print(""+uo.getname("obj0")+" Umrel")
- goto zacatek
- end if
- if uo.injournal("neni zranen") then
- wait(100)
- goto zacatek
- end if
- if uo.injournal("prestal krvacet") then
- goto zacatek
- end if
- if UO.injournal ("se ti nepovedlo") then
- goto zacatek
- end if
- until uo.injournal("byl uspesne osetren")
- goto zacatek
- wend
- uo.journal(2)
- if uo.injournal("je moc daleko") then
- uo.print(""+uo.getname("obj0")+" daleko")
- UO.Click("obj0")
- wait(1000)
- goto zacatek
- end if
- if uo.injournal("Nevidis cil") then
- uo.print(""+uo.getname("obj0")+" daleko")
- UO.Click("obj0")
- wait(1000)
- goto zacatek
- end if
- uo.deletejournal()
- wait(200)
- goto healjedna
- end if
- if uo.getglobal("vitez")=="1" then
- healdva:
- uo.msg(".samheal1")
- wait(200)
- while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
- uo.journal(2)
- repeat
- wait(100)
- if uo.gethp("obj1")==0 then
- uo.print(""+uo.getname("obj1")+" Umrel")
- goto zacatek
- end if
- if uo.injournal("neni zranen") then
- wait(100)
- goto zacatek
- end if
- if uo.injournal("prestal krvacet") then
- goto zacatek
- end if
- if UO.injournal ("se ti nepovedlo") then
- goto zacatek
- end if
- until uo.injournal("byl uspesne osetren")
- goto zacatek
- wend
- uo.journal(2)
- if uo.injournal("je moc daleko") then
- uo.print(""+uo.getname("obj1")+" daleko")
- UO.Click("obj1")
- wait(1000)
- goto zacatek
- end if
- if uo.injournal("Nevidis cil") then
- uo.print(""+uo.getname("obj1")+" daleko")
- UO.Click("obj1")
- wait(1000)
- goto zacatek
- end if
- uo.deletejournal()
- wait(200)
- goto healdva
- end if
- if uo.getglobal("vitez")=="2" then
- healtri:
- uo.msg(".samheal2")
- wait(200)
- while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
- uo.journal(2)
- repeat
- wait(100)
- if uo.gethp("obj2")==0 then
- uo.print(""+uo.getname("obj2")+" Umrel")
- goto zacatek
- end if
- if uo.injournal("neni zranen") then
- wait(100)
- goto zacatek
- end if
- if uo.injournal("prestal krvacet") then
- goto zacatek
- end if
- if UO.injournal ("se ti nepovedlo") then
- goto zacatek
- end if
- until uo.injournal("byl uspesne osetren")
- goto zacatek
- wend
- uo.journal(2)
- if uo.injournal("je moc daleko") then
- uo.print(""+uo.getname("obj2")+" daleko")
- UO.Click("obj2")
- wait(1000)
- goto zacatek
- end if
- if uo.injournal("Nevidis cil") then
- uo.print(""+uo.getname("obj2")+" daleko")
- UO.Click("obj2")
- wait(1000)
- goto zacatek
- end if
- uo.deletejournal()
- wait(200)
- goto healtri
- end if
- if uo.getglobal("vitez")=="3" then
- healctyry:
- uo.msg(".samheal3")
- wait(200)
- while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
- uo.journal(2)
- repeat
- wait(100)
- if uo.gethp("obj3")==0 then
- uo.print(""+uo.getname("obj3")+" Umrel")
- goto zacatek
- end if
- if uo.injournal("neni zranen") then
- wait(100)
- goto zacatek
- end if
- if uo.injournal("prestal krvacet") then
- goto zacatek
- end if
- if UO.injournal ("se ti nepovedlo") then
- goto zacatek
- end if
- until uo.injournal("byl uspesne osetren")
- goto zacatek
- wend
- uo.journal(2)
- if uo.injournal("je moc daleko") then
- uo.print(""+uo.getname("obj3")+" daleko")
- UO.Click("obj3")
- wait(1000)
- goto zacatek
- end if
- if uo.injournal("Nevidis cil") then
- uo.print(""+uo.getname("obj3")+" daleko")
- UO.Click("obj3")
- wait(1000)
- goto zacatek
- end if
- uo.deletejournal()
- wait(200)
- goto healctyry
- end if
- if uo.getglobal("vitez")=="4" then
- healpet:
- uo.msg(".samheal4")
- wait(200)
- while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
- uo.journal(2)
- repeat
- wait(100)
- if uo.gethp("obj4")==0 then
- uo.print(""+uo.getname("obj4")+" Umrel")
- goto zacatek
- end if
- if uo.injournal("neni zranen") then
- wait(100)
- goto zacatek
- end if
- if uo.injournal("prestal krvacet") then
- goto zacatek
- end if
- if UO.injournal ("se ti nepovedlo") then
- goto zacatek
- end if
- until uo.injournal("byl uspesne osetren")
- goto zacatek
- wend
- uo.journal(2)
- if uo.injournal("je moc daleko") then
- uo.print(""+uo.getname("obj4")+" daleko")
- UO.Click("obj4")
- wait(1000)
- goto zacatek
- end if
- if uo.injournal("Nevidis cil") then
- uo.print(""+uo.getname("obj4")+" daleko")
- UO.Click("obj4")
- wait(1000)
- goto zacatek
- end if
- uo.deletejournal()
- wait(200)
- goto healpet
- end if
- if uo.getglobal("vitez")=="5" then
- healsest:
- uo.msg(".samheal5")
- wait(200)
- while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
- uo.journal(2)
- repeat
- wait(100)
- if uo.gethp("obj5")==0 then
- uo.print(""+uo.getname("obj5")+" Umrel")
- goto zacatek
- end if
- if uo.injournal("neni zranen") then
- wait(100)
- goto zacatek
- end if
- if uo.injournal("prestal krvacet") then
- goto zacatek
- end if
- if UO.injournal ("se ti nepovedlo") then
- goto zacatek
- end if
- until uo.injournal("byl uspesne osetren")
- goto zacatek
- wend
- uo.journal(2)
- if uo.injournal("je moc daleko") then
- uo.print(""+uo.getname("obj5")+" daleko")
- UO.Click("obj5")
- wait(1000)
- goto zacatek
- end if
- if uo.injournal("Nevidis cil") then
- uo.print(""+uo.getname("obj5")+" daleko")
- UO.Click("obj5")
- wait(1000)
- goto zacatek
- end if
- uo.deletejournal()
- wait(200)
- goto healsest
- end if
- if uo.getglobal("vitez")=="6" then
- healsedum:
- uo.msg(".samheal6")
- wait(200)
- while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
- uo.journal(2)
- repeat
- wait(100)
- if uo.gethp("obj6")==0 then
- uo.print(""+uo.getname("obj6")+" Umrel")
- goto zacatek
- end if
- if uo.injournal("neni zranen") then
- wait(100)
- goto zacatek
- end if
- if uo.injournal("prestal krvacet") then
- goto zacatek
- end if
- if UO.injournal ("se ti nepovedlo") then
- goto zacatek
- end if
- until uo.injournal("byl uspesne osetren")
- goto zacatek
- wend
- uo.journal(2)
- if uo.injournal("je moc daleko") then
- uo.print(""+uo.getname("obj6")+" daleko")
- UO.Click("obj6")
- wait(1000)
- goto zacatek
- end if
- if uo.injournal("Nevidis cil") then
- uo.print(""+uo.getname("obj6")+" daleko")
- UO.Click("obj6")
- wait(1000)
- goto zacatek
- end if
- uo.deletejournal()
- wait(200)
- goto healsedum
- end if
- if uo.getglobal("vitez")=="7" then
- goto zacatek
- end if
- wend
- sebe:
- uo.deletejournal()
- uo.msg(".samheal15") ; upravit na svuj equip SVUJ EQUIP
- while not (uo.gethp("self") > 80)
- wait(200)
- if uo.injournal("byl uspesne osetren") or uo.injournal("Leceni se ti nepovedlo") or uo.injournal("prestal krvacet") then
- uo.deletejournal()
- goto sebe
- end if
- wend
- goto zacatek:
- end sub
- sub hid()
- uo.warmode("0")
- uo.exec("terminate autobandy")
- wait(250)
- uo.deletejournal()
- uo.useskill("Hiding")
- repeat
- wait(100)
- until (uo.injournal("Nepovedlo se ti schovat.")) or (uo.injournal("Skryti se povedlo"))
- uo.deletejournal()
- uo.exec("exec autobandy")
- end sub
- sub zvedani()
- var hlaska=0
- Uo.exec("terminate autobandy")
- uo.set("quiet","1")
- Find:
- Uo.set("finddistance","3")
- Uo.findtype("0x2006","-1","ground")
- if uo.findcount() then
- Uo.deletejournal()
- Uo.addobject("mrtvy","finditem")
- Wait(50)
- zvednuti:
- Uo.waittargetobject("mrtvy")
- Uo.usetype("0x0E20") ;typ bandy
- wait(500)
- if uo.injournal("Duch neni ve") then
- uo.deletejournal()
- wait(1500)
- goto zvednuti
- end if
- If uo.injournal("Necht se navrati") then
- Uo.deletejournal()
- repeat
- wait(500)
- if uo.injournal("Duch neni ve") then
- uo.deletejournal()
- goto zvednuti
- end if
- until uo.injournal("Ozivil jsi")
- end if
- if uo.injournal("Jako Priest nemuzes ozivovat") then
- uo.ignore("mrtvy")
- wait(200)
- goto find
- end if
- uo.set("quiet","0")
- else
- uo.set("quiet","0")
- wait(500)
- uo.print("Nikdo v blizkosti neni mrtvy")
- end if
- end sub
- sub autoheal()
- start:
- if uo.Life<25 then
- uo.serverprint(".elixirheal")
- wait(22000)
- uo.print("OK mozes pit!!!!")
- endif
- wait(100)
- goto start
- end sub
- sub dispellair()
- uo.serverprint(".resync")
- uo.findtype('0x000D','-1','ground')
- uo.waittargetobject('finditem')
- uo.exec("cast 'Dispel'")
- end sub
- sub hopbanda()
- uo.findtype('0x0E20','-1','backpack') ; 0x0E21 - normal banda
- UO.moveitem('finditem',1,'ground')
- end sub
- sub healhrac1()
- while not uo.dead()
- UO.DeleteJournal()
- IF NOT (Uo.GetHP("obj1")>94) and NOT (Uo.GetHP("obj1")==0) and NOT Uo.GetDistance("obj1")>6 then
- Uo.msg(".samheal1")
- wait(300)
- if uo.injournal("Nyni jsi schopna lecit lepe.") or Uo.Injournal("neni zranen") then
- repeat
- wait(3800)
- until uo.injournal("byl uspesne osetren") or Uo.Injournal("prestal krvacet") or Uo.InJournal("Leceni se nepovedlo")
- ENDIF
- ENDIF
- wend
- end sub
- sub lecenihracjedna()
- uo.exec("terminate autobandy")
- uo.exec("terminate lecenihractri")
- uo.exec("terminate lecenihracdva")
- uo.exec("terminate lecenihracctyri")
- uo.exec("terminate lecenihracpet")
- uo.exec("terminate lecenihracsest")
- while not uo.dead()
- uo.deletejournal()
- if uo.gethp("obj1")<94 and not uo.gethp("obj1")==0 and uo.getdistance("obj1")<6 then
- uo.msg(".samheal1")
- wait(5000)
- if uo.injournal("Nyni jsi schopna lecit lepe.") then
- repeat
- wait(2000)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
- endif
- endif
- if (uo.gethp("self")<80) and (uo.gethp("obj1")>94) then
- uo.deletejournal()
- uo.msg(".samheal15")
- repeat
- wait(200)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo") or uo.gethp("obj1")<66 and uo.getdistance("obj1")<6
- endif
- wait(100)
- wend
- end sub
- sub lecenihracdva()
- uo.exec("terminate autobandy")
- uo.exec("terminate lecenihractri")
- uo.exec("terminate lecenihracjedna")
- uo.exec("terminate lecenihracctyri")
- uo.exec("terminate lecenihracpet")
- uo.exec("terminate lesenihracsest")
- while not uo.dead()
- uo.deletejournal()
- if uo.gethp("obj2")<94 and not uo.gethp("obj2")==0 and uo.getdistance("obj2")<6 then
- uo.msg(".samheal2")
- wait(3800)
- if uo.injournal("Nyni jsi schopna lecit lepe.") then
- repeat
- wait(100)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
- endif
- endif
- if (uo.gethp("self")<80) and (uo.gethp("obj2")>94) then
- uo.deletejournal()
- uo.msg(".samheal15")
- repeat
- wait(200)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo") or uo.gethp("obj2")<66 and uo.getdistance("obj2")<6
- endif
- wait(100)
- wend
- end sub
- sub lecenihractri()
- uo.exec("terminate autobandy")
- uo.exec("terminate lecenihracctyri")
- uo.exec("terminate lecenihracdva")
- uo.exec("terminate lecenihracjedna")
- uo.exec("terminate lecenihracpet")
- uo.exec("terminate lesenihracsest")
- while not uo.dead()
- uo.deletejournal()
- if uo.gethp("obj3")<94 and not uo.gethp("obj3")==0 and uo.getdistance("obj3")<6 then
- uo.msg(".samheal3")
- wait(3800)
- if uo.injournal("Nyni jsi schopna lecit lepe.") then
- repeat
- wait(3800) ;pauza banda
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
- endif
- endif
- if (uo.gethp("self")<80) and (uo.gethp("obj3")>94) then
- uo.deletejournal()
- uo.msg(".samheal15")
- repeat
- wait(200)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo") or uo.gethp("obj3")<66 and uo.getdistance("obj3")<6
- endif
- wait(100)
- wend
- end sub
- sub lecenihracctyri()
- uo.exec("terminate autobandy")
- uo.exec("terminate lecenihractri")
- uo.exec("terminate lecenihracdva")
- uo.exec("terminate lecenihracjedna")
- uo.exec("terminate lecenihracpet")
- uo.exec("terminate lesenihracsest")
- while not uo.dead()
- uo.deletejournal()
- if uo.gethp("obj4")<94 and not uo.gethp("obj4")==0 and uo.getdistance("obj4")<6 then
- uo.msg(".samheal4")
- wait(3800)
- if uo.injournal("Nyni jsi schopna lecit lepe.") then
- repeat
- wait(100)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
- endif
- endif
- if (uo.gethp("self")<80) and (uo.gethp("obj4")>94) then
- uo.deletejournal()
- uo.msg(".samheal15")
- repeat
- wait(200)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo") or uo.gethp("obj4")<66 and uo.getdistance("obj4")<6
- endif
- wait(100)
- wend
- end sub
- sub lecenihracpet()
- uo.exec("terminate autobandy")
- uo.exec("terminate lecenihractri")
- uo.exec("terminate lecenihracdva")
- uo.exec("terminate lecenihracctyri")
- uo.exec("terminate lecenihracjedna")
- uo.exec("terminate lesenihracsest")
- while not uo.dead()
- uo.deletejournal()
- if uo.gethp("obj5")<94 and not uo.gethp("obj5")==0 and uo.getdistance("obj5")<6 then
- uo.msg(".samheal5")
- wait(3800)
- if uo.injournal("Nyni jsi schopna lecit lepe.") then
- repeat
- wait(100)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
- endif
- endif
- if (uo.gethp("self")<80) and (uo.gethp("obj5")>94) then
- uo.deletejournal()
- uo.msg(".samheal15")
- repeat
- wait(200)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo") or uo.gethp("obj5")<66 and uo.getdistance("obj5")<6
- endif
- wait(100)
- wend
- end sub
- sub lecenihracsest()
- uo.exec("terminate autobandy")
- uo.exec("terminate lecenihractri")
- uo.exec("terminate lecenihracdva")
- uo.exec("terminate lecenihracctyri")
- uo.exec("terminate lecenihracpet")
- uo.exec("terminate lesenihracjedna")
- while not uo.dead()
- uo.deletejournal()
- if uo.gethp("obj6")<94 and not uo.gethp("obj6")==0 and uo.getdistance("obj6")<6 then
- uo.msg(".samheal6")
- wait(3800)
- if uo.injournal("Nyni jsi schopna lecit lepe.") then
- repeat
- wait(100)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
- endif
- endif
- if (uo.gethp("self")<80) and (uo.gethp("obj6")>94) then
- uo.deletejournal()
- uo.msg(".samheal15")
- repeat
- wait(200)
- until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo") or uo.gethp("obj6")<66 and uo.getdistance("obj6")<6
- endif
- wait(100)
- wend
- end sub
- sub stop()
- uo.exec("terminate autobandy")
- uo.exec("terminate lecenihracjedna")
- uo.exec("terminate lecenihractri")
- uo.exec("terminate lecenihracdva")
- uo.exec("terminate lecenihracctyri")
- uo.exec("terminate lecenihracpet")
- uo.exec("terminate lesenihracsest")
- uo.exec("exec autobandy")
- end sub
- sub dzban()
- uo.serverprint(".resync")
- uo.useobject("dzban")
- UO.WaitTargetObject('kadinka')
- wait(500)
- uo.findtype('0x0FAB','-1','backpack') ;0x0FF8
- UO.moveitem('finditem',65000,'ground')
- end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement