Advertisement
MrTrala

FinaShow

Aug 20th, 2016
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. --[[
  2.     FinalShowdown for ArchlightOnline
  3.     Version 1.0.1
  4.     By Mr Trala
  5.    
  6. Change Log;
  7.  
  8. 1.0 -- First stable version.
  9. 1.0.1 -- Fixed problem after Archlight HP/Mana Update.
  10. ]]
  11.  
  12.  
  13. config = {
  14.     Dist = 5, -- Dist to count monsters.
  15.     DistT = 1,-- Dist to shoot spell.
  16. -- Exaus configs
  17.     SpS = "exevo vis hur",
  18.     Words = "Final Showdown"
  19. }
  20.  
  21. Module('Show', function(mod)
  22. local am = 0
  23.     for name, c in Creature.iMonsters(config.Dist) do
  24.         if c:isValid() and c:isAlive() and not Self.isInPz() and c:isOnScreen()then
  25.             am = am +1
  26.         end
  27.    
  28.         if Self.GetSpellCooldown(config.SpS) == 0 and c:DistanceFromSelf() <= config.DistT and am >= 1 then
  29.             Self.Cast(config.Words)
  30.         end
  31.     end
  32.     mod:Delay(1000, 1200)
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement