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

Exori con

George00

propro
Joined
Jan 11, 2014
Messages
163
Solutions
1
Reaction score
10
Location
propro
Why wont this exori con script work ?
LUA]local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)

function onGetFormulaValues(cid, level, skill, attack, factor)
return -(((skill + 1500) / 3) + (level / 5)), -((skill + 1500) + (level / 5))
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end[/code]


It gives me


04/05/2015 17:22:26] [Warning - Event::loadScript] Event onCastSpell not found (data/spells/scripts/healing/manarune.lua)
[04/05/2015 17:22:26] [Error - LuaScriptInterface::loadFile] data/spells/scripts/attack/ethereal spear.lua:1: '=' expected near ']'
[04/05/2015 17:22:26] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/attack/ethereal spear.lua)
[04/05/2015 17:22:26] data/spells/scripts/attack/ethereal spear.lua:1: '=' expected near ']'
 
Remove LUA] and [/code]
Next time use code tags if you post scripts.

[ code]
paste script here
[/code]
So it will look like this is you remove the space between [ and code
Code:
paste script here
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)

function onGetFormulaValues(cid, level, skill, attack, factor)
return -(((skill + 1500) / 3) + (level / 5)), -((skill + 1500) + (level / 5))
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

Before someone complains 53701688's script doesn't work, he simply added the code tag's around OP's code.
The code is identical.
 
Last edited by a moderator:
Before someone complains 53701688's script doesn't work, he simply added the code tag's around OP's code.
The code is identical.
 
Back
Top