Guest User

Untitled

a guest
Jan 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. init start
  2. local friends = {
  3. -- playername healpc healparalyzed?
  4. {'Bolt Mastern', 80, true},
  5. {'Rillion', 80, true},
  6. {'Vicium', 80, true},
  7. {'Glusti', 80, true},
  8. {'Carl Heiros', 80, true},
  9. {'Sirap', 80, true},
  10. }
  11. local uhifnomana = false -- Do you want to use UH in friend if you have no mana to do exura sio? (true/false)
  12. local uhinsteadofsio = false -- Do you want to use UH in friends instead of healing with exura sio? (true/false)
  13. for i,j in ipairs(friends) do j[1] = j[1]:lower() end -- Do not touch it.
  14. init end
  15.  
  16. auto(100) listcolor('0xFF8080') listas('Friend healer on standby...')
  17. local lowsio,tosio = 100
  18. if ($mp >= 140) or uhifnomana or uhinsteadofsio then
  19. foreach creature player 'ps' do
  20. if player ~= $self and player.hppc < lowsio and player.isshootable then
  21. for i,j in ipairs(friends) do
  22. if (player.name:lower() == j[1]) and (player.hppc <= j[2] or (player.speed == 80 and j[3])) then
  23. tosio = player
  24. lowsio = player.hppc
  25. end
  26. end
  27. end
  28. end
  29. if tosio ~= nil then
  30. if ((uhifnomana) and ($mp < 140)) or uhinsteadofsio then
  31. useoncreature(RUNE_UH,tosio) listcolor('0x77BBFF') listas('Using ultimate healing on '..tosio.name..' ('..tosio.hppc..'%)')
  32. else
  33. cast('exura sio "'..tosio.name) listcolor('0x77BBFF') listas('Casting heal friend on '..tosio.name..' ('..tosio.hppc..'%)')
  34. end
  35. wait(300,500)
  36. end
  37. end
Add Comment
Please, Sign In to add comment