Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Manual Spell equals SD for ArchLight
- Version 1.1 - PRIV VERSION (Ownership; Unix)
- by Mr Trala
- Instructions:
- Remember to change the "words" and the "cooldown" for your spell.
- You can get your 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 "40" seconds and "rl" name of Utura grana so;
- You need to remove .500 seconds from there (to compensate the exaus), so something like this;
- words = "Utura gran", cooldown = 3500.
- 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]".
- That's It!
- Have fun!
- Credits;
- Unix -- Idea
- Mr Trala -- Programmer & Tester
- ]]
- config = {
- Dist = 7, -- Don't change anything here.
- SdID = 3154 -- Change to your respective Sd ID <<
- }
- spells = {}
- spells[1] = {words = "exori hur", cooldown = 1500}
- spells[2] = {words = "utori mort", cooldown = 1500}
- spells[3] = {words = "exori mas", cooldown = 7500}
- spells[4] = {words = "exori min", cooldown = 5500}
- function spellsd()
- for i = 1, #spells do
- local sps = spells[i]
- local trg = Creature.GetByID(Self.TargetID())
- if Self.GetSpellCooldown(sps.words) >= sps.cooldown and trg:isTarget() then
- if trg:isAlive() and trg:DistanceFromSelf() <= config.Dist then
- Self.UseItemWithTarget(config.SdID)
- wait(1900, 2000)
- end
- end
- end
- end
- registerEventListener(TIMER_TICK, "spellsd")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement