• 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!

Spell Fierce Berserk: Knights (Animated)

Colandus

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

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

local spins = {}
for k, spinArea in ipairs(spinAreas) do
    spins[k] = createCombatObject()
    setCombatParam(spins[k], COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
    setCombatArea(spins[k], spinArea)
end

local reaction = createCombatObject()
setCombatParam(reaction, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(reaction, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(reaction, COMBAT_FORMULA_SKILL, 1.7, -50, 1.7, -50)


local reactionArea = createCombatArea({
    {1, 1, 1},
    {1, 2, 1},
    {1, 1, 1}
})
setCombatArea(reaction, reactionArea)

local function doEventCombat(p)
    local cid, combat, var = unpack(p)
    if isPlayer(cid) == TRUE then
        if var == FALSE then
            var = positionToVariant(getCreaturePosition(cid))
        end
    doCombat(cid, combat, var)
    end
end

function charge(p)
    local cid, occurTime = unpack(p)
    if isPlayer(cid) == TRUE then
        local var = positionToVariant(getCreaturePosition(cid))
        for k, spin in ipairs(spins) do
            addEvent(doEventCombat, occurTime, {cid, spin, var})
            occurTime = occurTime + k * 32
        end
    end
end

function effect(p)
    local cid, effect = unpack(p)
    if isPlayer(cid) == TRUE then
        doSendMagicEffect(getCreaturePosition(cid), effect)
    end
end

function onCastSpell(cid, var)
    local occurTime = 0
    for i = 1, 3 do
        addEvent(charge, occurTime, {cid, occurTime})
        addEvent(effect, occurTime, {cid, CONST_ME_YELLOWENERGY})
        occurTime = occurTime + i * #spins * 32
    end
   
    occurTime = occurTime + 200
    addEvent(doEventCombat, occurTime, {cid, reaction, FALSE})
    addEvent(effect, occurTime, {cid, CONST_ME_FIREAREA})
    return TRUE
end
 
Last edited:
c00l :D glad to see you releasing again
hope anyone from below don't ask for sshoot like in the other threads :D
 
Screenshot?(A)
plx screenshot

i think i speak for Colandus :D
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!

I don't have any, sorry. I cannot test either :(
But I assure you it's cool though :thumbup:

Sorry, I can't do that. It would require a video anyway, it's animated.
 
Back
Top