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

Lua Need to add some options to that spell.

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello
I've got a spell:
LUA:
local paralyze = createConditionObject(CONDITION_PARALYZE)
setConditionParam(paralyze, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(paralyze, -0.9, 0, -0.9, 0)

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_KIDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 31)
function uf(cid, level, maglevel) 
    local min = -(level * 5)
    local max = -(level * 5)
    return min, max 
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "uf")
setCombatCondition(combat, paralyze)

AREA_UF = {
{0, 0, 3, 0, 0}
}

local area = createCombatArea(AREA_UF)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	doCombat(cid, combat, var)
	return true
end

It paralysis target.
I want to add magic effect when target is paralyzed by this spell and it moves, the magic effect = id: 32 = appear on target with every move a paralyzed target

Anyone can do that ?
 
Back
Top