Dexftw
Total Boss
- Joined
- Jan 30, 2011
- Messages
- 317
- Reaction score
- 8
Code:
[01/02/2011 12:12:50] Lua Script Error: [Test Interface]
[01/02/2011 12:12:50] data/spells/scripts/spells87/Ultimateicestrike.lua
[01/02/2011 12:12:50] data/spells/scripts/spells87/Ultimateicestrike.lua:5: attempt to call global 'setAttackFormula' (a nil value)
[01/02/2011 12:12:50] stack traceback:
[01/02/2011 12:12:50] [C]: in function 'setAttackFormula'
[01/02/2011 12:12:50] data/spells/scripts/spells87/Ultimateicestrike.lua:5: in main chunk
[01/02/2011 12:12:50] Warning: [Event::checkScript] Can not load script. /scripts/spells87/Ultimateicestrike.lua
code for spell is
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 5, 14)
function onCastSpell(cid, var)
local storage = 23026
local spellname = "Ultimate Ice Strike"
local time = 30
if exhaustion.check(cid, storage) == false then
exhaustion.set(cid, storage, time)
return doCombat(cid, combat, var) and doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You are exhausted in " .. spellname .. " for: " ..exhaustion.get(cid, storage).." segundos.")
end
end