lazarus321
Member
- Joined
- May 8, 2017
- Messages
- 222
- Reaction score
- 23
Hi all,
I have one action with this use and why this script dont work? (TFS 1.2)
function onUse(player, item, fromPosition, itemEx, toPosition)
player:canLearnSpell(Energy Wave)
player:learnSpell(Energy Wave)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
return true
end
i get this error
Lua Script Error: [Action Interface]
data/actions/scripts/606060.lua
nUse
LuaScriptInterface::luaPlayerCanLearnSpell(). Spell "" not found
stack traceback:
[C]: in function 'canLearnSpell'
data/actions/scripts/606060.lua:3: in function <data/actions/scripts/606060.lua:1>
I think about any thing in the source. i dont know.
I have one action with this use and why this script dont work? (TFS 1.2)
function onUse(player, item, fromPosition, itemEx, toPosition)
player:canLearnSpell(Energy Wave)
player:learnSpell(Energy Wave)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
return true
end
i get this error
Lua Script Error: [Action Interface]
data/actions/scripts/606060.lua
LuaScriptInterface::luaPlayerCanLearnSpell(). Spell "" not found
stack traceback:
[C]: in function 'canLearnSpell'
data/actions/scripts/606060.lua:3: in function <data/actions/scripts/606060.lua:1>
I think about any thing in the source. i dont know.