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

TFS 0.X condition crash server

ConAn Edujawa

Member
Joined
Feb 23, 2015
Messages
457
Reaction score
17
hello guys im use 0.4
when use this spell and relog server crash anyone know why?
Lua:
local combat = createCombatObject()
setCombatParam(combat,COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat,COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat,COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)

local condition = createConditionObject(CONDITION_DAZZLED)
setConditionParam(condition,CONDITION_PARAM_DELAYED, true)
addDamageCondition(condition, 50, 10000, -10)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Back
Top