Guest User

Untitled

a guest
Dec 6th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1.  
  2. config = {
  3. Dist = 7, -- Don't change anything here.
  4. SdID = 3154 -- Change to your respective Sd ID <<
  5. }
  6.  
  7.  
  8. function spellsd()
  9. for i = 1, #spells do
  10. local sps = spells[i]
  11. local trg = Creature.GetByID(Self.TargetID())
  12. if Self.CanCastSpell(sps.words) and Self.GetSpellCooldown(sps.cooldown) == 0 and trg:isTarget() then
  13. if trg:isAlive() and trg:DistanceFromSelf() <= config.Dist then
  14. Self.UseItemWithTarget(config.SdID)
  15. wait(50, 50)
  16. Self.Say(sps.words)
  17. wait(1900, 2000)
  18.  
  19. end
  20. end
  21. end
  22. end
  23.  
  24. spells = {}
  25. spells[1] = {words = "Pinpoint Shot", cooldown = "exevo gran mas flam"}
  26. spells[2] = {words = "Perfect shot", cooldown = "utori pox"}
  27.  
  28. registerEventListener(TIMER_TICK, "spellsd")
Add Comment
Please, Sign In to add comment