roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
Hi, i made this script to get spell info in tfs 1.3. To check a name of spells.
Whats the problem with the script?
error:
Whats the problem with the script?
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
for index = 0, getPlayerInstantSpellCount(player) do
local spell = getPlayerInstantSpellInfo(player, index)
print(spell.name)
end
return true
end
error:
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/test.lua:onUse
data/actions/scripts/test.lua:5: attempt to index local 'spell' (a boolean value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/test.lua:5: in function <data/actions/scripts/test.lua:1>