Advertisement
MrTrala

PV - ComboSd

Feb 15th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.52 KB | None | 0 0
  1. --[[
  2.     Perfect Sd + Spell Combo for ArchLight
  3.     Version 2.0 - PRIV VERSION (Ownership; Mr Trilo)
  4.     by Mr Trala
  5.  
  6. Instructions:
  7. Remember to change the "words" and the "cooldown" for your spell.
  8. You can get your custom cooldown (if you are in an otserver).
  9. Just checking the "icon" that pop up when you use any spell.
  10. Ex;
  11.  
  12. "Exana Gran Restora" equals to the exhausted of "Utura Gran" so;
  13. words = "exana gran restora", cooldown = "utura gran".
  14.  
  15. You can keep adding spells just like this:
  16. Adding the next number, ex;
  17. the last in this script is "spells[3]" so you just need to add the next one ie: "spells[4]".
  18.  
  19. That's It!
  20. Have fun!
  21.    
  22. Credits;
  23. Unix -- Idea
  24. Mr Trala -- Programmer & Tester
  25. ]]
  26.  
  27. config = {
  28.     Dist = 7, -- Don't change anything here.
  29.     SdID = 3154 -- Change to your respective Sd ID <<
  30. }
  31.  
  32.  
  33. spells = {}
  34. spells[1] = {words = "exevo gran frigo hur", cooldown = "exevo gran frigo hur"}
  35. spells[2] = {words = "exevo gran mas frigo", cooldown = "exevo gran mas frigo"}
  36. spells[3] = {words = "exevo gran mas tera", cooldown = "exevo gran mas tera"}
  37.  
  38. function spellsd()
  39.     for i = 1, #spells do
  40.         local sps = spells[i]
  41.         local trg = Creature.GetByID(Self.TargetID())
  42.             if Self.CanCastSpell(sps.words) and Self.GetSpellCooldown(sps.cooldown) == 0 and trg:isTarget() then
  43.                 if trg:isAlive() and trg:DistanceFromSelf() <= config.Dist then
  44.                     wait(500, 1050)
  45.                     Self.Say(sps.words)
  46.                     Self.UseItemWithTarget(config.SdID)
  47.                     wait(1900, 2000)
  48.                 end
  49.             end
  50.     end
  51. end
  52.  
  53. registerEventListener(TIMER_TICK, "spellsd")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement