Advertisement
MrTrala

MonkHealer to Midnight(Private Version1.0.1)

Aug 30th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.29 KB | None | 0 0
  1. --[[
  2.     Monk Healer for ArchlightOnline
  3.     (Private Version -- Ownership: Midnight)
  4.     By Mr Trala
  5.  
  6. Version: 1.0.2
  7.  
  8. Change Log;
  9. 1.0.1 -- Fixed the issue with the health percent(65k+).
  10. 1.0.2 -- Fixed problem after Archlight HP/Mana Update.
  11.    
  12. Instructions;
  13. Just config to your liking the % to use your spells and your RuneID (your mana/heal rune id).
  14. ]]
  15.  
  16. config = {
  17.     RuneID = 11607, -- Your manarune id.
  18.     Quick = 80, -- x% health to use Quick Prayer.
  19.     Pray = 50, -- x% health to use Prayer.
  20.     BlessS = 90 -- x% health to use Strong Blessing Spring.
  21. }
  22.  
  23. -- Don't touch anything below here if you don't know what are you doing.
  24. spells = {
  25.    
  26.     QuickEX = 'exura san',
  27.     PrayEX = 'exura ico',
  28.     BlessEX = 'utura gran',
  29.    
  30.     QuickW = 'Quick Prayer',
  31.     PrayW = 'Prayer',
  32.     BlessW = 'Strong Blessing Spring'
  33. }
  34.  
  35. function Healer()
  36. local x = config
  37. local s = spells
  38.     if Self.Health() <= x.BlessS and Self.GetSpellCooldown(s.BlessEX) == 0 then
  39.         Self.UseItem(x.RuneID)
  40.         Self.Say(s.BlessW)
  41.        
  42.     elseif Self.Health() <= x.Pray and Self.GetSpellCooldown(s.PrayEX) == 0 then
  43.         Self.UseItem(x.RuneID)
  44.         Self.Say(s.PrayW)
  45.        
  46.     elseif Self.Health() <= x.Quick and Self.GetSpellCooldown(s.QuickEX) == 0 then
  47.         Self.UseItem(x.RuneID)
  48.         Self.Say(s.QuickW)
  49.     end
  50. end
  51.  
  52. registerEventListener(TIMER_TICK, 'Healer')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement