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

Help with script

AnarchGov

Member
Joined
Oct 3, 2011
Messages
263
Reaction score
6
Script:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 1)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)

function onGetFormulaValues(cid, level)
local min = - (level * 1) * 1.0
local max = - (level * 2) * 1.0
return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVEL, "onGetFormulaValues")

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

Error: 0 is not a valid callback key

What does that mean?

REP++
 
Well I am not good at all with scripts but what I'm guessing is
Code:
local min = [COLOR="#FF0000"]-[/COLOR] (level * 1) * 1.0
local max = [COLOR="#FF0000"]-[/COLOR] (level * 2) * 1.0

Try remove them and see if it works otherwise I don't know :D
 
Back
Top