Advertisement
Guest User

heal

a guest
Feb 10th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. sub autoheal()
  2. uo.print("Patriot's bandage skript")
  3. repeat
  4. uo.findtype('0x0E21', -1, 'backpack')
  5. if uo.findcount() then
  6. wait(350)
  7. if uo.life < 20 then
  8. if UO.Count("heal") > 0 then
  9. UO.print("!!ZAPIJ NEBO UMRES!!")
  10. else
  11. uo.print("DOSLY TI HEALY, LECIM BANDAZEMI")
  12. uo.bandageself()
  13. wait(6000)
  14. endif
  15. endif
  16.  
  17. if uo.life <= 80 then
  18. uo.bandageself()
  19. wait(10)
  20.  
  21. uo.print(STR(UO.Life)+"/"+STR(UO.GetMaxHP("self")))
  22. wait(6000)
  23. endif
  24. UO.DeleteJournal("setris manu!")
  25. else
  26. uo.msg('Nemas bandy,vypinam skript, DAVEJ POZOR!!!')
  27. uo.exec('terminate autoheal')
  28.  
  29. endif
  30. until uo.dead()
  31. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement