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

Rebirth spell plz answer i wanna now where the x rebirths is in this cose

134679258s

New Member
Joined
Feb 9, 2013
Messages
11
Reaction score
0
local earthQuakeWaveArea = {

createCombatArea({
{0, 1, 0},
{1, 2, 1},
{0, 1, 0}
}),

createCombatArea({
{0, 0, 1, 0, 0},
{0, 1, 1, 1, 0},
{1, 1, 2, 1, 1},
{0, 1, 1, 1, 0},
{0, 0, 1, 0, 0}
}),

createCombatArea({
{0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 0, 0},
{1, 1, 1, 2, 1, 1, 1, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0}
}),

createCombatArea({
{0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 1, 0, 0, 1, 0, 0, 1, 0, 0},
{1, 1, 1, 1, 2, 1, 1, 1, 1, 0},
{0, 1, 0, 0, 1, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
}),

createCombatArea({
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0},
{1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1},
{0, 1, 0, 0, 0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1, 0, 0},
{1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1},
{1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1}
})
}

function onGetFormulaValues(cid, level, skill, attack, factor)
return -(((skill + 4) * 6) + (level * 9)), -(((skill + 4) * 6) + (level * 9))
end

local earthQuakeWave = {}
for k, area in ipairs(earthQuakeWaveArea) do
earthQuakeWave[k] = createCombatObject()
setCombatParam(earthQuakeWave[k], COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
setCombatParam(earthQuakeWave[k], COMBAT_PARAM_EFFECT, 34)

setCombatArea(earthQuakeWave[k], area)

_G["callback1" .. k] = onGetFormulaValues
setCombatCallback(earthQuakeWave[k], CALLBACK_PARAM_SKILLVALUE, "callback1" .. k)
end

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

function onCastSpell(cid, var)
for k, area in ipairs(earthQuakeWave) do
addEvent(castSpellDelay, 400 * k, {cid, earthQuakeWave[k], var})
end
return LUA_NO_ERROR
end
 
Code:
function onGetFormulaValues(cid, level, skill, attack, factor)
return -(((skill + 4) * 6) + (level * 9)), -(((skill + 4) * 6) + (level * 9))
end

im not good in lua.. but try editing (level * 9)
 

Similar threads

Replies
22
Views
2K
Back
Top