Advertisement
MrTrala

StandOff

Sep 8th, 2016
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. --[[
  2.     Standoff for ArchLightOnline
  3.     Version 1.0
  4.     Created by Mr Trala
  5.  
  6. Change log;
  7. 1.0 -- First working version?.
  8. ]]
  9.  
  10. config = {
  11.     HPT = 20, -- x% HP to cast the spell.
  12.    
  13.     -- Exaus, don't touch this.
  14.    
  15.     StandEX = "Utura",
  16.     StandWD = "Standoff"
  17. }
  18.  
  19. x = config
  20. function StandOff()
  21.     if Self.Health() <= x.HPT and Self.GetSpellCooldown(x.StandEX) == 0 and Self.Mana() >= 3 then
  22.         Self.Say(x.StandWD)
  23.     end
  24. end
  25.  
  26. registerEventListener(TIMER_TICK, "StandOff")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement