kaiquefb
New Member
- Joined
- Feb 18, 2010
- Messages
- 62
- Reaction score
- 0
Hello,
I use TFS 1.0 in version 10.76
I have an error in my console at some point in the quest graveddiger.
this is the lua script.
Could someone please help me
I use TFS 1.0 in version 10.76
I have an error in my console at some point in the quest graveddiger.
Code:
Lua Script Error: [MoveEvents Interface]
data/movements/scripts/gravedigger quest/necro.lua:onStepIn
data/movements/scripts/gravedigger quest/necro.lua:4: attempt to index local 'player' (a nil value)
stack traceback:
[C]: in function '__index'
data/movements/scripts/gravedigger quest/necro.lua:4: in function <data/movements/scripts/gravedigger quest/necro.lua:1>
this is the lua script.
Code:
function onStepIn(cid, item, pos)
local player = Player(cid)
local summonpos = {x = 33011, y = 32437, z = 11}
if item.actionid == 4536 and (player:getStorageValue(9932) == 1) and (player:getStorageValue(9933) < 1) then
player:setStorageValue(9933,1)
doSummonCreature("Necromancer Servant", summonpos)
end
end
Could someone please help me