Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Perfect Sd + Spell Combo (with direction and pvpSafe) for ArchLight
- Version 2.5.2 - PRIV VERSION (Ownership; Mr Trilo)
- by Mr Trala
- Instructions:
- Remember to change the "words" and the "cooldown" for your spell.
- You can get your custom cooldown (if you are in an otserver).
- Just checking the "icon" that pop up when you use any spell.
- Ex;
- "Exana Gran Restora" equals to the exhausted of "Utura Gran" so;
- words = "exana gran restora", cooldown = "utura gran".
- You can keep adding spells just like this:
- Adding the next number, ex;
- the last in this script is "spells[3]" so you just need to add the next one ie: "spells[4]".
- -
- If your attack needs direction "exevo tera hur", "exevo vis hur", etc, put "nDirection" as "true".
- That's It!
- Have fun!
- Credits;
- Unix -- Idea
- Corn -- Idea
- Mr Trala -- Programmer & Tester
- Change Log:
- 2.5.1 -- Fixed an error in the direction.
- 2.5.2 -- Removed useless functions and do, that became outdated with the pvp update.
- ]]
- config = {
- Dist = 7, -- Don't change anything here.
- SdID = 3186 -- Change to your respective Sd ID <<
- }
- spells = {}
- spells[1] = {words = "Chilling blast", cooldown = "exori frigo", nDirection = false}
- spells[2] = {words = "chilling waves", cooldown = "exori gran frigo", nDirection = false}
- spells[3] = {words = "vine beam", cooldown = "exevo gran vis lux", nDirection = true}
- spells[4] = {words = "frozen tundra", cooldown = "exevo vis hur", nDirection = false}
- spells[5] = {words = "subzero", cooldown = "exori gran con", nDirection = false}
- function spellssf()
- for i = 1, #spells do
- local sps = spells[i]
- local trg = Creature.GetByID(Self.TargetID())
- local pos, toPos = getSelfPosition(), trg:Position()
- local dir = pos.x > toPos.x and WEST or pos.x < toPos.x and EAST or pos.y > toPos.y and NORTH or SOUTH
- if Self.GetSpellCooldown(sps.cooldown) == 0 and trg:isTarget() then
- if trg:isAlive() and trg:DistanceFromSelf() <= config.Dist then
- if sps.nDirection then
- Self.Turn(dir)
- wait(500, 1050)
- Self.UseItemWithTarget(config.SdID)
- Self.Say(sps.words)
- wait(1900, 2000)
- else
- wait(500, 1050)
- Self.UseItemWithTarget(config.SdID)
- Self.Say(sps.words)
- wait(1900, 2000)
- end
- end
- end
- end
- end
- registerEventListener(TIMER_TICK, "spellssf")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement