• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell Holy Death: Mages (Animated)

Colandus

Advanced OT User
Senator
Joined
Jun 6, 2007
Messages
2,434
Solutions
19
Reaction score
219
Location
Sweden
A spell from my old server (Original Rox0r + TheOTServer) used by Mages.

Lua:
local holyDeathArea = {
    createCombatArea({
        {0, 1, 0},
        {1, 2, 1},
        {0, 1, 0}
    }),
    createCombatArea({
        {0, 1, 1, 1, 0},
        {1, 1, 0, 1, 1},
        {1, 0, 2, 0, 1},
        {1, 1, 0, 1, 1},
        {0, 1, 1, 1, 0}
    }),
    createCombatArea({
        {0, 0, 1, 1, 1, 0, 0},
        {0, 1, 0, 0, 0, 1, 0},
        {1, 0, 0, 0, 0, 0, 1},
        {1, 0, 0, 2, 0, 0, 1},
        {1, 0, 0, 0, 0, 0, 1},
        {0, 1, 0, 0, 0, 1, 0},
        {0, 0, 1, 1, 1, 0, 0}
    }),
    createCombatArea({
        {0, 0, 1, 1, 1, 1, 1, 0, 0},
        {0, 1, 1, 0, 0, 0, 1, 1, 0},
        {1, 1, 0, 0, 0, 0, 0, 1, 1},
        {1, 0, 0, 0, 0, 0, 0, 0, 1},
        {1, 0, 0, 0, 2, 0, 0, 0, 1},
        {1, 0, 0, 0, 0, 0, 0, 0, 1},
        {1, 1, 0, 0, 0, 0, 0, 1, 1},
        {0, 1, 1, 0, 0, 0, 1, 1, 0},
        {0, 0, 1, 1, 1, 1, 1, 0, 0}
    })
}

local holyCircleArea = {
    createCombatArea({
        {1, 2}
    }),
    createCombatArea({
        {1, 0},
        {0, 2}
    }),
    createCombatArea({
        {1},
        {2}
    }),
    createCombatArea({
        {0, 1},
        {2, 0}
    }),
    createCombatArea({
        {2, 1}
    }),
    createCombatArea({
        {2, 0},
        {0, 1}
    }),
    createCombatArea({
        {2},
        {1}
    }),
    createCombatArea({
        {0, 2},
        {1, 0}
    })
}


local holyDeath = {}
for k, area in ipairs(holyDeathArea) do
    holyDeath[k] = createCombatObject()
    setCombatParam(holyDeath[k], COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
    setCombatParam(holyDeath[k], COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
    setCombatFormula(holyDeath[k], COMBAT_FORMULA_LEVELMAGIC, -1.376, -(100 * (#holyDeathArea - k)), -1.841, -(150 * (#holyDeathArea - k)))

    setCombatArea(holyDeath[k], area)
   
    loadstring([[onTargetTile]] .. k .. [[ = function(cid, pos)
        doSendDistanceShoot(getCreaturePosition(cid), pos, CONST_ANI_HOLY)
    end]])()
    setCombatCallback(holyDeath[k], CALLBACK_PARAM_TARGETTILE, "onTargetTile" .. k)
end

local holyCircle = {}
for k, area in ipairs(holyCircleArea) do
    holyCircle[k] = createCombatObject()
    setCombatParam(holyCircle[k], COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
    setCombatParam(holyCircle[k], COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
    setCombatFormula(holyCircle[k], COMBAT_FORMULA_LEVELMAGIC, -1.466, -200, -1.841, -100)

    setCombatArea(holyCircle[k], area)
   
    loadstring([[onTargetTile]] .. k + #holyDeath .. [[ = function(cid, pos)
        doSendDistanceShoot(getCreaturePosition(cid), pos, CONST_ANI_HOLY)
    end]])()
    setCombatCallback(holyCircle[k], CALLBACK_PARAM_TARGETTILE, "onTargetTile" .. k + #holyDeath)
end

loadstring([[onTargetTile]] .. #holyDeath + #holyCircle + 1 .. [[ = function(cid, pos)
    doSendDistanceShoot(getCreaturePosition(cid), pos, CONST_ANI_SMALLHOLY)
end]])()

local function castSpellDelay(p)
    doCombat(unpack(p))
end

local stepDelay = 75
local spins = 2
function onCastSpell(cid, var)
    local delay = 0
    for i = 1, spins do
        for k, area in ipairs(holyCircle) do
            addEvent(castSpellDelay, delay, {cid, holyCircle[k], var})
            delay = delay + stepDelay
        end
    end
    for k, area in ipairs(holyDeath) do
        addEvent(castSpellDelay, delay, {cid, holyDeath[k], var})
        delay = delay + stepDelay
    end
   
    return LUA_NO_ERROR
end
[/code
 
Last edited:
I don't have any, sorry. I cannot test either :(
But I assure you it's cool though :thumbup:
 
These all could of been posted in one thread, but it's still good that your releasing good spells. I like them, nice work!
 
Lol? You say you don't have time,then make a vid another day,and besides,no time?But you have time for posting 3 spells on a webpage?Seriously either way skip posting your spells or give screenshot or a vid,how hard is it?Takes about the same damn time like posting 3 spells...
 
No i won't,you know why?Cause he could have putten up a vid or some screenshot almost as fast as he posted his 3 spells...Screenshot plx.

Man, can anyone say something else but "screenshot plzz" ? It's an animated spell, it requires video and I don't have time for nothing. I just released some spells just try it yourself.

It's awesome, trust me!

stfu
 
blah screens would be swt :p for the people that don't have time to test it and what not.

I can tell by looking at the code its nice though :D
 
I don't have time to test it, so if they don't have time to test it, why would I? See the logics?
I barely have an OpenTibia Server, I just released those spells. Should I bother myself downloading a server and whatever shit that goes with it just to help you with something I already provided you with?
 
Well, you would be able to start a server and try the spells with the time it took you to make all those replies.


How do you know that,maybe i don't know how to set up a server,wich would take alot more time.
 
How do you know that,maybe i don't know how to set up a server,wich would take alot more time.


Stop being a cocky prick and get what your given for free he has positive posts about there nice scripts without your bull***t reply's..
 
Back
Top