Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config = {
- Dist = 7, -- Don't change anything here.
- SdID = 3154 -- Change to your respective Sd ID <<
- }
- function spellsd()
- for i = 1, #spells do
- local sps = spells[i]
- local trg = Creature.GetByID(Self.TargetID())
- if Self.CanCastSpell(sps.words) and Self.GetSpellCooldown(sps.cooldown) == 0 and trg:isTarget() then
- if trg:isAlive() and trg:DistanceFromSelf() <= config.Dist then
- Self.UseItemWithTarget(config.SdID)
- wait(50, 50)
- Self.Say(sps.words)
- wait(1900, 2000)
- end
- end
- end
- end
- spells = {}
- spells[1] = {words = "Pinpoint Shot", cooldown = "exevo gran mas flam"}
- spells[2] = {words = "Perfect shot", cooldown = "utori pox"}
- registerEventListener(TIMER_TICK, "spellsd")
Add Comment
Please, Sign In to add comment