Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.12 KB | None | 0 0
  1.  
  2. sub autopilot()
  3. uo.setglobal("bandeni","zaple")
  4. uo.exec("exec on_off")
  5. wait(500)
  6.  
  7. wait(1500)
  8. end sub
  9.  
  10. sub e0()
  11. uo.exec("terminate autobandy")
  12. wait(2000)
  13. uo.canceltarget()
  14. wait(1000)
  15. uo.addobject("obj0")
  16. wait(200)
  17. while UO.Targeting()
  18. wait(100)
  19. wend
  20. uo.Print('Objekt zadan')
  21. uo.msg('.setequip0')
  22. uo.waittargetobject("obj0")
  23. end sub
  24.  
  25. sub e1()
  26. uo.exec("terminate autobandy")
  27. wait(2000)
  28. uo.canceltarget()
  29. wait(1000)
  30. uo.addobject("obj1")
  31. wait(200)
  32. while UO.Targeting()
  33. wait(100)
  34. wend
  35. uo.Print('Objekt zadan')
  36. uo.msg('.setequip1')
  37. uo.waittargetobject("obj1")
  38. end sub
  39.  
  40. sub e2()
  41. uo.exec("terminate autobandy")
  42. wait(2000)
  43. uo.canceltarget()
  44. wait(1000)
  45. uo.addobject("obj2")
  46. wait(200)
  47. while UO.Targeting()
  48. wait(100)
  49. wend
  50. uo.Print('Objekt zadan')
  51. uo.msg('.setequip2')
  52. uo.waittargetobject("obj2")
  53. end sub
  54.  
  55. sub e3()
  56. uo.exec("terminate autobandy")
  57. wait(2000)
  58. uo.canceltarget()
  59. wait(1000)
  60. uo.addobject("obj3")
  61. wait(200)
  62. while UO.Targeting()
  63. wait(100)
  64. wend
  65. uo.Print('Objekt zadan')
  66. uo.msg('.setequip3')
  67. uo.waittargetobject("obj3")
  68. end sub
  69.  
  70. sub e4()
  71. uo.exec("terminate autobandy")
  72. wait(2000)
  73. uo.canceltarget()
  74. wait(1000)
  75. uo.addobject("obj4")
  76. wait(200)
  77. while UO.Targeting()
  78. wait(100)
  79. wend
  80. uo.Print('Objekt zadan')
  81. uo.msg('.setequip4')
  82. uo.waittargetobject("obj4")
  83. end sub
  84.  
  85. sub e5()
  86. uo.exec("terminate autobandy")
  87. wait(2000)
  88. uo.canceltarget()
  89. wait(1000)
  90. uo.addobject("obj5")
  91. wait(200)
  92. while UO.Targeting()
  93. wait(100)
  94. wend
  95. uo.Print('Objekt zadan')
  96. uo.msg('.setequip5')
  97. uo.waittargetobject("obj5")
  98. end sub
  99.  
  100. sub e6()
  101. uo.exec("terminate autobandy")
  102. wait(2000)
  103. uo.canceltarget()
  104. wait(1000)
  105. uo.addobject("obj6")
  106. wait(200)
  107. while UO.Targeting()
  108. wait(100)
  109. wend
  110. uo.Print('Objekt zadan')
  111. uo.msg('.setequip6')
  112. uo.waittargetobject("obj6")
  113. end sub
  114.  
  115. sub on_off()
  116. if uo.getglobal("stav")=="zap" then
  117. uo.exec("terminate autobandy")
  118. uo.print("BANDENI V Y P N U T E !!")
  119. wait(150)
  120. UO.SetGlobal("stav","vyp")
  121. wait(150)
  122. uo.setglobal("bandeni","vyple")
  123. else
  124. uo.print("BANDENI Z A P N U T E !!")
  125. wait(150)
  126. Uo.SetGlobal("stav","zap")
  127. wait(150)
  128. uo.setglobal("bandeni","zaple")
  129. Uo.exec("exec autobandy")
  130. endif
  131. end sub
  132.  
  133. sub harmik()
  134. uo.exec("terminate autobandy")
  135. uo.exec("terminate lecenihracjedna")
  136. uo.exec("terminate lecenihractri")
  137. uo.exec("terminate lecenihracdva")
  138. uo.exec("terminate lecenihracctyri")
  139. uo.exec("terminate lecenihracpet")
  140. uo.exec("terminate lesenihracsest")
  141. uo.cast("Harm","self")
  142. wait(2000)
  143. uo.exec("exec autobandy")
  144. end sub
  145.  
  146. sub autobandy()
  147. if uo.getglobal("bandeni")=="vyple" then
  148. return
  149. end if
  150. zacatek:
  151. while not uo.dead()
  152. wait(100)
  153. while uo.hidden("self")
  154. wait(100)
  155. wend
  156.  
  157. if uo.gethp("self") < 80 then
  158. goto sebe
  159. end if
  160. if uo.count("0x0E20") < 80 then ;pocita krvave bandy
  161. uo.print("Mas jen "+str(uo.count("0x0E20"))+" bandazi, umyju spinave")
  162. wait(1000)
  163. uo.canceltarget()
  164. wait(1000)
  165. uo.waittargettype("0x0FAB") ;kad s krvi
  166. uo.usetype("0x0E21") ;ciste bandy
  167. wait(1000)
  168. end if
  169.  
  170. uo.setglobal("vitez","10")
  171. uo.setglobal("pkp","10")
  172. uo.setglobal("pkd","10")
  173. uo.setglobal("pkt","10")
  174. uo.setglobal("pkc","10")
  175. uo.setglobal("dkp","10")
  176. uo.setglobal("dkd","10")
  177.  
  178.  
  179. if not (uo.gethp("obj0")==0) and not (uo.gethp("obj0")>90) and not Uo.getdistance("obj0") > 6 then
  180. uo.setglobal("n","1")
  181. else
  182. uo.setglobal("n","0")
  183. end if
  184.  
  185. if not (uo.gethp("obj1")==0) and not (uo.gethp("obj1")>85) and not Uo.getdistance("obj1") > 6 then
  186. uo.setglobal("j","1")
  187. else
  188. uo.setglobal("j","0")
  189. end if
  190.  
  191. if not (uo.gethp("obj2")==0) and not (uo.gethp("obj2")>85) and not Uo.getdistance("obj2") > 6 then
  192. uo.setglobal("d","1")
  193. else
  194. uo.setglobal("d","0")
  195. end if
  196.  
  197. if not (uo.gethp("obj3")==0) and not (uo.gethp("obj3")>85) and not Uo.getdistance("obj3") > 6 then
  198. uo.setglobal("t","1")
  199. else
  200. uo.setglobal("t","0")
  201. end if
  202.  
  203. if not (uo.gethp("obj4")==0) and not (uo.gethp("obj4")>85) and not Uo.getdistance("obj4") > 6 then
  204. uo.setglobal("c","1")
  205. else
  206. uo.setglobal("c","0")
  207. end if
  208.  
  209. if not (uo.gethp("obj5")==0) and not (uo.gethp("obj5")>85) and not Uo.getdistance("obj5") > 6 then
  210. uo.setglobal("p","1")
  211. else
  212. uo.setglobal("p","0")
  213. end if
  214.  
  215. if not (uo.gethp("obj6")==0) and not (uo.gethp("obj6")>85) and not Uo.getdistance("obj6") > 6 then
  216. uo.setglobal("s","1")
  217. else
  218. uo.setglobal("s","0")
  219. end if
  220.  
  221. if not (uo.gethp("obj7")==0) and not (uo.gethp("obj7")>85) and not Uo.getdistance("obj7") > 6 then
  222. uo.setglobal("x","1")
  223. else
  224. uo.setglobal("x","0")
  225. end if
  226.  
  227. if (uo.getglobal("n")=="1") and (uo.getglobal("j")=="1") and not Uo.getdistance("obj0") > 6 then
  228. if uo.gethp("obj0") < uo.gethp("obj1") then
  229. uo.setglobal("pkp","0")
  230. else
  231. uo.setglobal("pkp","1")
  232. end if
  233. else
  234. if uo.getglobal("n")=="1" then
  235. uo.setglobal("pkp","0")
  236. else
  237. if uo.getglobal("j")=="1" then
  238. uo.setglobal("pkp","1")
  239. end if
  240. end if
  241. end if
  242. if (uo.getglobal("d")=="1") and (uo.getglobal("t")=="1") then
  243. if uo.gethp("obj2") < uo.gethp("obj3") then
  244. uo.setglobal("pkd","2")
  245. else
  246. uo.setglobal("pkd","3")
  247. end if
  248. else
  249. if uo.getglobal("d")=="1" then
  250. uo.setglobal("pkd","2")
  251. else
  252. if uo.getglobal("t")=="1" then
  253. uo.setglobal("pkd","3")
  254. end if
  255. end if
  256. end if
  257. if (uo.getglobal("c")=="1") and (uo.getglobal("p")=="1") then
  258. if uo.gethp("obj4") < uo.gethp("obj5") then
  259. uo.setglobal("pkt","4")
  260. else
  261. uo.setglobal("pkt","5")
  262. end if
  263. else
  264. if uo.getglobal("c")=="1" then
  265. uo.setglobal("pkt","4")
  266. else
  267. if uo.getglobal("p")=="1" then
  268. uo.setglobal("pkt","5")
  269. end if
  270. end if
  271. end if
  272. if (uo.getglobal("s")=="1") and (uo.getglobal("x")=="1") then
  273. if uo.gethp("obj6") < uo.gethp("obj7") then
  274. uo.setglobal("pkc","6")
  275. else
  276. uo.setglobal("pkc","7")
  277. end if
  278. else
  279. if uo.getglobal("s")=="1" then
  280. uo.setglobal("pkc","6")
  281. else
  282. if uo.getglobal("x")=="1" then
  283. uo.setglobal("pkc","7")
  284. end if
  285. end if
  286. end if
  287. if uo.getglobal("pkp")=="0" then
  288. if uo.getglobal("pkd")=="2" then
  289. if uo.gethp("obj0") < uo.gethp("obj2") then
  290. uo.setglobal("dkp","0")
  291. goto skokjedna
  292. else
  293. uo.setglobal("dkp","2")
  294. goto skokjedna
  295. end if
  296. end if
  297. end if
  298. if uo.getglobal("pkp")=="0" then
  299. if uo.getglobal("pkd")=="3" then
  300. if uo.gethp("obj0") < uo.gethp("obj3") then
  301. uo.setglobal("dkp","0")
  302. goto skokjedna
  303. else
  304. uo.setglobal("dkp","3")
  305. goto skokjedna
  306. end if
  307. end if
  308. end if
  309. if uo.getglobal("pkp")=="1" then
  310. if uo.getglobal("pkd")=="2" then
  311. if uo.gethp("obj1") < uo.gethp("obj2") then
  312. uo.setglobal("dkp","1")
  313. goto skokjedna
  314. else
  315. uo.setglobal("dkp","2")
  316. goto skokjedna
  317. end if
  318. end if
  319. end if
  320. if uo.getglobal("pkp")=="1" then
  321. if uo.getglobal("pkd")=="3" then
  322. if uo.gethp("obj1") < uo.gethp("obj3") then
  323. uo.setglobal("dkp","1")
  324. goto skokjedna
  325. else
  326. uo.setglobal("dkp","3")
  327. goto skokjedna
  328. end if
  329. end if
  330. end if
  331. if uo.getglobal("pkp")=="0" then
  332. uo.setglobal("dkp","0")
  333. end if
  334. if uo.getglobal("pkp")=="1" then
  335. uo.setglobal("dkp","1")
  336. end if
  337. if uo.getglobal("pkd")=="2" then
  338. uo.setglobal("dkp","2")
  339. end if
  340. if uo.getglobal("pkd")=="3" then
  341. uo.setglobal("dkp","3")
  342. end if
  343. skokjedna:
  344.  
  345.  
  346. if uo.getglobal("pkt")=="4" then
  347. if uo.getglobal("pkc")=="6" then
  348. if uo.gethp("obj4") < uo.gethp("obj6") then
  349. uo.setglobal("dkd","4")
  350. goto skokdva
  351. else
  352. uo.setglobal("dkd","6")
  353. goto skokdva
  354. end if
  355. end if
  356. end if
  357. if uo.getglobal("pkt")=="4" then
  358. if uo.getglobal("pkc")=="7" then
  359. if uo.gethp("obj4") < uo.gethp("obj7") then
  360. uo.setglobal("dkd","4")
  361. goto skokdva
  362. else
  363. uo.setglobal("dkd","7")
  364. goto skokdva
  365. end if
  366. end if
  367. end if
  368. if uo.getglobal("pkt")=="5" then
  369. if uo.getglobal("pkc")=="6" then
  370. if uo.gethp("obj5") < uo.gethp("obj6") then
  371. uo.setglobal("dkd","5")
  372. goto skokdva
  373. else
  374. uo.setglobal("dkd","6")
  375. goto skokdva
  376. end if
  377. end if
  378. end if
  379. if uo.getglobal("pkt")=="5" then
  380. if uo.getglobal("pkc")=="7" then
  381. if uo.gethp("obj5") < uo.gethp("obj7") then
  382. uo.setglobal("dkd","5")
  383. goto skokdva
  384. else
  385. uo.setglobal("dkd","7")
  386. goto skokdva
  387. end if
  388. end if
  389. end if
  390. if uo.getglobal("pkt")=="4" then
  391. uo.setglobal("dkd","4")
  392. end if
  393. if uo.getglobal("pkt")=="5" then
  394. uo.setglobal("dkd","5")
  395. end if
  396. if uo.getglobal("pkc")=="6" then
  397. uo.setglobal("dkd","6")
  398. end if
  399. if uo.getglobal("pkc")=="7" then
  400. uo.setglobal("dkd","7")
  401. end if
  402. skokdva:
  403.  
  404. if (uo.getglobal("dkp")=="0") and (uo.getglobal("dkd")=="4") then
  405. if uo.gethp("obj0") < uo.gethp("obj4") then
  406. uo.setglobal("vitez","0")
  407. else
  408. uo.setglobal("vitez","4")
  409. end if
  410. end if
  411. if (uo.getglobal("dkp")=="0") and (uo.getglobal("dkd")=="5") then
  412. if uo.gethp("obj0") < uo.gethp("obj5") then
  413. uo.setglobal("vitez","0")
  414. else
  415. uo.setglobal("vitez","5")
  416. end if
  417. end if
  418. if (uo.getglobal("dkp")=="0") and (uo.getglobal("dkd")=="6") then
  419. if uo.gethp("obj0") < uo.gethp("obj6") then
  420. uo.setglobal("vitez","0")
  421. else
  422. uo.setglobal("vitez","6")
  423. end if
  424. end if
  425. if (uo.getglobal("dkp")=="0") and (uo.getglobal("dkd")=="7") then
  426. if uo.gethp("obj0") < uo.gethp("obj7") then
  427. uo.setglobal("vitez","0")
  428. else
  429. uo.setglobal("vitez","7")
  430. end if
  431. end if
  432. if (uo.getglobal("dkp")=="1") and (uo.getglobal("dkd")=="4") then
  433. if uo.gethp("obj1") < uo.gethp("obj4") then
  434. uo.setglobal("vitez","1")
  435. else
  436. uo.setglobal("vitez","4")
  437. end if
  438. end if
  439. if (uo.getglobal("dkp")=="1") and (uo.getglobal("dkd")=="5") then
  440. if uo.gethp("obj1") < uo.gethp("obj5") then
  441. uo.setglobal("vitez","1")
  442. else
  443. uo.setglobal("vitez","5")
  444. end if
  445. end if
  446. if (uo.getglobal("dkp")=="1") and (uo.getglobal("dkd")=="6") then
  447. if uo.gethp("obj1") < uo.gethp("obj6") then
  448. uo.setglobal("vitez","1")
  449. else
  450. uo.setglobal("vitez","6")
  451. end if
  452. end if
  453. if (uo.getglobal("dkp")=="1") and (uo.getglobal("dkd")=="7") then
  454. if uo.gethp("obj1") < uo.gethp("obj7") then
  455. uo.setglobal("vitez","1")
  456. else
  457. uo.setglobal("vitez","7")
  458. end if
  459. end if
  460. if (uo.getglobal("dkp")=="2") and (uo.getglobal("dkd")=="4") then
  461. if uo.gethp("obj2") < uo.gethp("obj4") then
  462. uo.setglobal("vitez","2")
  463. else
  464. uo.setglobal("vitez","4")
  465. end if
  466. end if
  467. if (uo.getglobal("dkp")=="2") and (uo.getglobal("dkd")=="5") then
  468. if uo.gethp("obj2") < uo.gethp("obj5") then
  469. uo.setglobal("vitez","2")
  470. else
  471. uo.setglobal("vitez","5")
  472. end if
  473. end if
  474. if (uo.getglobal("dkp")=="2") and (uo.getglobal("dkd")=="6") then
  475. if uo.gethp("obj2") < uo.gethp("obj6") then
  476. uo.setglobal("vitez","2")
  477. else
  478. uo.setglobal("vitez","6")
  479. end if
  480. end if
  481. if (uo.getglobal("dkp")=="2") and (uo.getglobal("dkd")=="7") then
  482. if uo.gethp("obj2") < uo.gethp("obj7") then
  483. uo.setglobal("vitez","2")
  484. else
  485. uo.setglobal("vitez","7")
  486. end if
  487. end if
  488. if (uo.getglobal("dkp")=="3") and (uo.getglobal("dkd")=="4") then
  489. if uo.gethp("obj3") < uo.gethp("obj4") then
  490. uo.setglobal("vitez","3")
  491. else
  492. uo.setglobal("vitez","4")
  493. end if
  494. end if
  495. if (uo.getglobal("dkp")=="3") and (uo.getglobal("dkd")=="5") then
  496. if uo.gethp("obj3") < uo.gethp("obj5") then
  497. uo.setglobal("vitez","3")
  498. else
  499. uo.setglobal("vitez","5")
  500. end if
  501. end if
  502. if (uo.getglobal("dkp")=="3") and (uo.getglobal("dkd")=="6") then
  503. if uo.gethp("obj3") < uo.gethp("obj6") then
  504. uo.setglobal("vitez","3")
  505. else
  506. uo.setglobal("vitez","6")
  507. end if
  508. end if
  509. if (uo.getglobal("dkp")=="3") and (uo.getglobal("dkd")=="7") then
  510. if uo.gethp("obj3") < uo.gethp("obj7") then
  511. uo.setglobal("vitez","3")
  512. else
  513. uo.setglobal("vitez","7")
  514. end if
  515. end if
  516.  
  517. if uo.getglobal("vitez")=="10" then
  518. if uo.getglobal("dkp")=="0" then
  519. uo.setglobal("vitez","0")
  520. end if
  521. if uo.getglobal("dkp")=="1" then
  522. uo.setglobal("vitez","1")
  523. end if
  524. if uo.getglobal("dkp")=="2" then
  525. uo.setglobal("vitez","2")
  526. end if
  527. if uo.getglobal("dkp")=="3" then
  528. uo.setglobal("vitez","3")
  529. end if
  530. if uo.getglobal("dkd")=="4" then
  531. uo.setglobal("vitez","4")
  532. end if
  533. if uo.getglobal("dkd")=="5" then
  534. uo.setglobal("vitez","5")
  535. end if
  536. if uo.getglobal("dkd")=="6" then
  537. uo.setglobal("vitez","6")
  538. end if
  539. if uo.getglobal("dkd")=="7" then
  540. uo.setglobal("vitez","7")
  541. end if
  542. end if
  543.  
  544. uo.deletejournal()
  545. wait(50)
  546.  
  547.  
  548. if uo.getglobal("vitez")=="0" then
  549. healjedna:
  550. uo.msg(".samheal0")
  551. wait(200)
  552. while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
  553. uo.journal(2)
  554. repeat
  555. wait(100)
  556. if uo.gethp("obj0")==0 then
  557. uo.print(""+uo.getname("obj0")+" Umrel")
  558. goto zacatek
  559. end if
  560. if uo.injournal("neni zranen") then
  561. wait(100)
  562. goto zacatek
  563. end if
  564. if uo.injournal("prestal krvacet") then
  565. goto zacatek
  566. end if
  567. if UO.injournal ("se ti nepovedlo") then
  568. goto zacatek
  569. end if
  570. until uo.injournal("byl uspesne osetren")
  571. goto zacatek
  572. wend
  573. uo.journal(2)
  574. if uo.injournal("je moc daleko") then
  575. uo.print(""+uo.getname("obj0")+" daleko")
  576. UO.Click("obj0")
  577. wait(1000)
  578. goto zacatek
  579. end if
  580. if uo.injournal("Nevidis cil") then
  581. uo.print(""+uo.getname("obj0")+" daleko")
  582. UO.Click("obj0")
  583. wait(1000)
  584. goto zacatek
  585. end if
  586. uo.deletejournal()
  587. wait(200)
  588. goto healjedna
  589. end if
  590. if uo.getglobal("vitez")=="1" then
  591. healdva:
  592. uo.msg(".samheal1")
  593. wait(200)
  594. while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
  595. uo.journal(2)
  596. repeat
  597. wait(100)
  598. if uo.gethp("obj1")==0 then
  599. uo.print(""+uo.getname("obj1")+" Umrel")
  600. goto zacatek
  601. end if
  602. if uo.injournal("neni zranen") then
  603. wait(100)
  604. goto zacatek
  605. end if
  606. if uo.injournal("prestal krvacet") then
  607. goto zacatek
  608. end if
  609. if UO.injournal ("se ti nepovedlo") then
  610. goto zacatek
  611. end if
  612. until uo.injournal("byl uspesne osetren")
  613. goto zacatek
  614. wend
  615. uo.journal(2)
  616. if uo.injournal("je moc daleko") then
  617. uo.print(""+uo.getname("obj1")+" daleko")
  618. UO.Click("obj1")
  619. wait(1000)
  620. goto zacatek
  621. end if
  622. if uo.injournal("Nevidis cil") then
  623. uo.print(""+uo.getname("obj1")+" daleko")
  624. UO.Click("obj1")
  625. wait(1000)
  626. goto zacatek
  627. end if
  628. uo.deletejournal()
  629. wait(200)
  630. goto healdva
  631. end if
  632. if uo.getglobal("vitez")=="2" then
  633. healtri:
  634. uo.msg(".samheal2")
  635. wait(200)
  636. while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
  637. uo.journal(2)
  638. repeat
  639. wait(100)
  640. if uo.gethp("obj2")==0 then
  641. uo.print(""+uo.getname("obj2")+" Umrel")
  642. goto zacatek
  643. end if
  644. if uo.injournal("neni zranen") then
  645. wait(100)
  646. goto zacatek
  647. end if
  648. if uo.injournal("prestal krvacet") then
  649. goto zacatek
  650. end if
  651. if UO.injournal ("se ti nepovedlo") then
  652. goto zacatek
  653. end if
  654. until uo.injournal("byl uspesne osetren")
  655. goto zacatek
  656. wend
  657. uo.journal(2)
  658. if uo.injournal("je moc daleko") then
  659. uo.print(""+uo.getname("obj2")+" daleko")
  660. UO.Click("obj2")
  661. wait(1000)
  662. goto zacatek
  663. end if
  664. if uo.injournal("Nevidis cil") then
  665. uo.print(""+uo.getname("obj2")+" daleko")
  666. UO.Click("obj2")
  667. wait(1000)
  668. goto zacatek
  669. end if
  670. uo.deletejournal()
  671. wait(200)
  672. goto healtri
  673. end if
  674. if uo.getglobal("vitez")=="3" then
  675. healctyry:
  676. uo.msg(".samheal3")
  677. wait(200)
  678. while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
  679. uo.journal(2)
  680. repeat
  681. wait(100)
  682. if uo.gethp("obj3")==0 then
  683. uo.print(""+uo.getname("obj3")+" Umrel")
  684. goto zacatek
  685. end if
  686. if uo.injournal("neni zranen") then
  687. wait(100)
  688. goto zacatek
  689. end if
  690. if uo.injournal("prestal krvacet") then
  691. goto zacatek
  692. end if
  693. if UO.injournal ("se ti nepovedlo") then
  694. goto zacatek
  695. end if
  696. until uo.injournal("byl uspesne osetren")
  697. goto zacatek
  698. wend
  699. uo.journal(2)
  700. if uo.injournal("je moc daleko") then
  701. uo.print(""+uo.getname("obj3")+" daleko")
  702. UO.Click("obj3")
  703. wait(1000)
  704. goto zacatek
  705. end if
  706. if uo.injournal("Nevidis cil") then
  707. uo.print(""+uo.getname("obj3")+" daleko")
  708. UO.Click("obj3")
  709. wait(1000)
  710. goto zacatek
  711. end if
  712. uo.deletejournal()
  713. wait(200)
  714. goto healctyry
  715. end if
  716. if uo.getglobal("vitez")=="4" then
  717. healpet:
  718. uo.msg(".samheal4")
  719. wait(200)
  720. while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
  721. uo.journal(2)
  722. repeat
  723. wait(100)
  724. if uo.gethp("obj4")==0 then
  725. uo.print(""+uo.getname("obj4")+" Umrel")
  726. goto zacatek
  727. end if
  728. if uo.injournal("neni zranen") then
  729. wait(100)
  730. goto zacatek
  731. end if
  732. if uo.injournal("prestal krvacet") then
  733. goto zacatek
  734. end if
  735. if UO.injournal ("se ti nepovedlo") then
  736. goto zacatek
  737. end if
  738. until uo.injournal("byl uspesne osetren")
  739. goto zacatek
  740. wend
  741. uo.journal(2)
  742. if uo.injournal("je moc daleko") then
  743. uo.print(""+uo.getname("obj4")+" daleko")
  744. UO.Click("obj4")
  745. wait(1000)
  746. goto zacatek
  747. end if
  748. if uo.injournal("Nevidis cil") then
  749. uo.print(""+uo.getname("obj4")+" daleko")
  750. UO.Click("obj4")
  751. wait(1000)
  752. goto zacatek
  753. end if
  754. uo.deletejournal()
  755. wait(200)
  756. goto healpet
  757. end if
  758. if uo.getglobal("vitez")=="5" then
  759. healsest:
  760. uo.msg(".samheal5")
  761. wait(200)
  762. while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
  763. uo.journal(2)
  764. repeat
  765. wait(100)
  766. if uo.gethp("obj5")==0 then
  767. uo.print(""+uo.getname("obj5")+" Umrel")
  768. goto zacatek
  769. end if
  770. if uo.injournal("neni zranen") then
  771. wait(100)
  772. goto zacatek
  773. end if
  774. if uo.injournal("prestal krvacet") then
  775. goto zacatek
  776. end if
  777. if UO.injournal ("se ti nepovedlo") then
  778. goto zacatek
  779. end if
  780. until uo.injournal("byl uspesne osetren")
  781. goto zacatek
  782. wend
  783. uo.journal(2)
  784. if uo.injournal("je moc daleko") then
  785. uo.print(""+uo.getname("obj5")+" daleko")
  786. UO.Click("obj5")
  787. wait(1000)
  788. goto zacatek
  789. end if
  790. if uo.injournal("Nevidis cil") then
  791. uo.print(""+uo.getname("obj5")+" daleko")
  792. UO.Click("obj5")
  793. wait(1000)
  794. goto zacatek
  795. end if
  796. uo.deletejournal()
  797. wait(200)
  798. goto healsest
  799. end if
  800. if uo.getglobal("vitez")=="6" then
  801. healsedum:
  802. uo.msg(".samheal6")
  803. wait(200)
  804. while uo.injournal("Nyni jsi schopna lecit lepe.") or uo.injournal("neni zranen")
  805. uo.journal(2)
  806. repeat
  807. wait(100)
  808. if uo.gethp("obj6")==0 then
  809. uo.print(""+uo.getname("obj6")+" Umrel")
  810. goto zacatek
  811. end if
  812. if uo.injournal("neni zranen") then
  813. wait(100)
  814. goto zacatek
  815. end if
  816. if uo.injournal("prestal krvacet") then
  817. goto zacatek
  818. end if
  819. if UO.injournal ("se ti nepovedlo") then
  820. goto zacatek
  821. end if
  822. until uo.injournal("byl uspesne osetren")
  823. goto zacatek
  824. wend
  825. uo.journal(2)
  826. if uo.injournal("je moc daleko") then
  827. uo.print(""+uo.getname("obj6")+" daleko")
  828. UO.Click("obj6")
  829. wait(1000)
  830. goto zacatek
  831. end if
  832. if uo.injournal("Nevidis cil") then
  833. uo.print(""+uo.getname("obj6")+" daleko")
  834. UO.Click("obj6")
  835. wait(1000)
  836. goto zacatek
  837. end if
  838. uo.deletejournal()
  839. wait(200)
  840. goto healsedum
  841. end if
  842. if uo.getglobal("vitez")=="7" then
  843. goto zacatek
  844. end if
  845.  
  846.  
  847. wend
  848.  
  849. sebe:
  850. uo.deletejournal()
  851. uo.msg(".samheal15") ; upravit na svuj equip SVUJ EQUIP
  852. while not (uo.gethp("self") > 80)
  853. wait(200)
  854. if uo.injournal("byl uspesne osetren") or uo.injournal("Leceni se ti nepovedlo") or uo.injournal("prestal krvacet") then
  855. uo.deletejournal()
  856. goto sebe
  857. end if
  858. wend
  859.  
  860. goto zacatek:
  861. end sub
  862.  
  863. sub hid()
  864. uo.warmode("0")
  865. uo.exec("terminate autobandy")
  866. wait(250)
  867. uo.deletejournal()
  868. uo.useskill("Hiding")
  869. repeat
  870. wait(100)
  871. until (uo.injournal("Nepovedlo se ti schovat.")) or (uo.injournal("Skryti se povedlo"))
  872. uo.deletejournal()
  873. uo.exec("exec autobandy")
  874. end sub
  875.  
  876. sub zvedani()
  877. var hlaska=0
  878. Uo.exec("terminate autobandy")
  879. uo.set("quiet","1")
  880. Find:
  881. Uo.set("finddistance","3")
  882. Uo.findtype("0x2006","-1","ground")
  883. if uo.findcount() then
  884. Uo.deletejournal()
  885. Uo.addobject("mrtvy","finditem")
  886. Wait(50)
  887. zvednuti:
  888. Uo.waittargetobject("mrtvy")
  889. Uo.usetype("0x0E20") ;typ bandy
  890. wait(500)
  891. if uo.injournal("Duch neni ve") then
  892. uo.deletejournal()
  893. wait(1500)
  894. goto zvednuti
  895. end if
  896. If uo.injournal("Necht se navrati") then
  897. Uo.deletejournal()
  898. repeat
  899. wait(500)
  900. if uo.injournal("Duch neni ve") then
  901. uo.deletejournal()
  902. goto zvednuti
  903. end if
  904. until uo.injournal("Ozivil jsi")
  905. end if
  906. if uo.injournal("Jako Priest nemuzes ozivovat") then
  907. uo.ignore("mrtvy")
  908. wait(200)
  909. goto find
  910. end if
  911. uo.set("quiet","0")
  912. else
  913. uo.set("quiet","0")
  914. wait(500)
  915. uo.print("Nikdo v blizkosti neni mrtvy")
  916. end if
  917. end sub
  918.  
  919. sub autoheal()
  920. start:
  921. if uo.Life<25 then
  922. uo.serverprint(".elixirheal")
  923. wait(22000)
  924. uo.print("OK mozes pit!!!!")
  925. endif
  926. wait(100)
  927. goto start
  928. end sub
  929.  
  930.  
  931. sub dispellair()
  932. uo.serverprint(".resync")
  933. uo.findtype('0x000D','-1','ground')
  934. uo.waittargetobject('finditem')
  935. uo.exec("cast 'Dispel'")
  936. end sub
  937.  
  938. sub hopbanda()
  939. uo.findtype('0x0E20','-1','backpack') ; 0x0E21 - normal banda
  940. UO.moveitem('finditem',1,'ground')
  941. end sub
  942.  
  943.  
  944. sub healhrac1()
  945. while not uo.dead()
  946. UO.DeleteJournal()
  947. IF NOT (Uo.GetHP("obj1")>94) and NOT (Uo.GetHP("obj1")==0) and NOT Uo.GetDistance("obj1")>6 then
  948. Uo.msg(".samheal1")
  949. wait(300)
  950. if uo.injournal("Nyni jsi schopna lecit lepe.") or Uo.Injournal("neni zranen") then
  951. repeat
  952. wait(3800)
  953. until uo.injournal("byl uspesne osetren") or Uo.Injournal("prestal krvacet") or Uo.InJournal("Leceni se nepovedlo")
  954. ENDIF
  955. ENDIF
  956. wend
  957. end sub
  958.  
  959.  
  960.  
  961. sub lecenihracjedna()
  962. uo.exec("terminate autobandy")
  963. uo.exec("terminate lecenihractri")
  964. uo.exec("terminate lecenihracdva")
  965. uo.exec("terminate lecenihracctyri")
  966. uo.exec("terminate lecenihracpet")
  967. uo.exec("terminate lecenihracsest")
  968. while not uo.dead()
  969. uo.deletejournal()
  970. if uo.gethp("obj1")<94 and not uo.gethp("obj1")==0 and uo.getdistance("obj1")<6 then
  971. uo.msg(".samheal1")
  972. wait(5000)
  973. if uo.injournal("Nyni jsi schopna lecit lepe.") then
  974. repeat
  975. wait(2000)
  976. until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
  977. endif
  978. endif
  979. if (uo.gethp("self")<80) and (uo.gethp("obj1")>94) then
  980. uo.deletejournal()
  981. uo.msg(".samheal15")
  982. repeat
  983. wait(200)
  984. 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
  985. endif
  986. wait(100)
  987. wend
  988. end sub
  989.  
  990.  
  991.  
  992. sub lecenihracdva()
  993. uo.exec("terminate autobandy")
  994. uo.exec("terminate lecenihractri")
  995. uo.exec("terminate lecenihracjedna")
  996. uo.exec("terminate lecenihracctyri")
  997. uo.exec("terminate lecenihracpet")
  998. uo.exec("terminate lesenihracsest")
  999. while not uo.dead()
  1000. uo.deletejournal()
  1001. if uo.gethp("obj2")<94 and not uo.gethp("obj2")==0 and uo.getdistance("obj2")<6 then
  1002. uo.msg(".samheal2")
  1003. wait(3800)
  1004. if uo.injournal("Nyni jsi schopna lecit lepe.") then
  1005. repeat
  1006. wait(100)
  1007. until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
  1008. endif
  1009. endif
  1010. if (uo.gethp("self")<80) and (uo.gethp("obj2")>94) then
  1011. uo.deletejournal()
  1012. uo.msg(".samheal15")
  1013. repeat
  1014. wait(200)
  1015. 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
  1016. endif
  1017. wait(100)
  1018. wend
  1019. end sub
  1020.  
  1021.  
  1022. sub lecenihractri()
  1023. uo.exec("terminate autobandy")
  1024. uo.exec("terminate lecenihracctyri")
  1025. uo.exec("terminate lecenihracdva")
  1026. uo.exec("terminate lecenihracjedna")
  1027. uo.exec("terminate lecenihracpet")
  1028. uo.exec("terminate lesenihracsest")
  1029. while not uo.dead()
  1030. uo.deletejournal()
  1031. if uo.gethp("obj3")<94 and not uo.gethp("obj3")==0 and uo.getdistance("obj3")<6 then
  1032. uo.msg(".samheal3")
  1033. wait(3800)
  1034. if uo.injournal("Nyni jsi schopna lecit lepe.") then
  1035. repeat
  1036. wait(3800) ;pauza banda
  1037. until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
  1038. endif
  1039. endif
  1040. if (uo.gethp("self")<80) and (uo.gethp("obj3")>94) then
  1041. uo.deletejournal()
  1042. uo.msg(".samheal15")
  1043. repeat
  1044. wait(200)
  1045. 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
  1046. endif
  1047. wait(100)
  1048. wend
  1049. end sub
  1050.  
  1051.  
  1052. sub lecenihracctyri()
  1053. uo.exec("terminate autobandy")
  1054. uo.exec("terminate lecenihractri")
  1055. uo.exec("terminate lecenihracdva")
  1056. uo.exec("terminate lecenihracjedna")
  1057. uo.exec("terminate lecenihracpet")
  1058. uo.exec("terminate lesenihracsest")
  1059. while not uo.dead()
  1060. uo.deletejournal()
  1061. if uo.gethp("obj4")<94 and not uo.gethp("obj4")==0 and uo.getdistance("obj4")<6 then
  1062. uo.msg(".samheal4")
  1063. wait(3800)
  1064. if uo.injournal("Nyni jsi schopna lecit lepe.") then
  1065. repeat
  1066. wait(100)
  1067. until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
  1068. endif
  1069. endif
  1070. if (uo.gethp("self")<80) and (uo.gethp("obj4")>94) then
  1071. uo.deletejournal()
  1072. uo.msg(".samheal15")
  1073. repeat
  1074. wait(200)
  1075. 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
  1076. endif
  1077. wait(100)
  1078. wend
  1079. end sub
  1080.  
  1081.  
  1082. sub lecenihracpet()
  1083. uo.exec("terminate autobandy")
  1084. uo.exec("terminate lecenihractri")
  1085. uo.exec("terminate lecenihracdva")
  1086. uo.exec("terminate lecenihracctyri")
  1087. uo.exec("terminate lecenihracjedna")
  1088. uo.exec("terminate lesenihracsest")
  1089. while not uo.dead()
  1090. uo.deletejournal()
  1091. if uo.gethp("obj5")<94 and not uo.gethp("obj5")==0 and uo.getdistance("obj5")<6 then
  1092. uo.msg(".samheal5")
  1093. wait(3800)
  1094. if uo.injournal("Nyni jsi schopna lecit lepe.") then
  1095. repeat
  1096. wait(100)
  1097. until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
  1098. endif
  1099. endif
  1100. if (uo.gethp("self")<80) and (uo.gethp("obj5")>94) then
  1101. uo.deletejournal()
  1102. uo.msg(".samheal15")
  1103. repeat
  1104. wait(200)
  1105. 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
  1106. endif
  1107. wait(100)
  1108. wend
  1109. end sub
  1110.  
  1111.  
  1112. sub lecenihracsest()
  1113. uo.exec("terminate autobandy")
  1114. uo.exec("terminate lecenihractri")
  1115. uo.exec("terminate lecenihracdva")
  1116. uo.exec("terminate lecenihracctyri")
  1117. uo.exec("terminate lecenihracpet")
  1118. uo.exec("terminate lesenihracjedna")
  1119. while not uo.dead()
  1120. uo.deletejournal()
  1121. if uo.gethp("obj6")<94 and not uo.gethp("obj6")==0 and uo.getdistance("obj6")<6 then
  1122. uo.msg(".samheal6")
  1123. wait(3800)
  1124. if uo.injournal("Nyni jsi schopna lecit lepe.") then
  1125. repeat
  1126. wait(100)
  1127. until uo.injournal("byl uspesne osetren") or uo.injournal("prestal krvacet") or uo.injournal("Leceni se ti nepovedlo")
  1128. endif
  1129. endif
  1130. if (uo.gethp("self")<80) and (uo.gethp("obj6")>94) then
  1131. uo.deletejournal()
  1132. uo.msg(".samheal15")
  1133. repeat
  1134. wait(200)
  1135. 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
  1136. endif
  1137. wait(100)
  1138. wend
  1139. end sub
  1140.  
  1141. sub stop()
  1142. uo.exec("terminate autobandy")
  1143. uo.exec("terminate lecenihracjedna")
  1144. uo.exec("terminate lecenihractri")
  1145. uo.exec("terminate lecenihracdva")
  1146. uo.exec("terminate lecenihracctyri")
  1147. uo.exec("terminate lecenihracpet")
  1148. uo.exec("terminate lesenihracsest")
  1149. uo.exec("exec autobandy")
  1150. end sub
  1151.  
  1152. sub dzban()
  1153. uo.serverprint(".resync")
  1154. uo.useobject("dzban")
  1155. UO.WaitTargetObject('kadinka')
  1156. wait(500)
  1157. uo.findtype('0x0FAB','-1','backpack') ;0x0FF8
  1158. UO.moveitem('finditem',65000,'ground')
  1159. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement