Hello. I wanted to make script working like that:
Character (group id:4) log into the game and then he gets light, but I have some troubles. Here's what i got:
Well, it should working, but its not...
There is the error:
Can anyone tell me what seems to be bad?
Character (group id:4) log into the game and then he gets light, but I have some troubles. Here's what i got:
Code:
function onLogin(cid)
if getPlayerGroupId(cid) == 4 then
doSetCreatureLight(cid, 9, 215, (6*60+10)*3000)
end
return TRUE
end
Well, it should working, but its not...
There is the error:
Code:
[5/6/2010 17:31:30] [Error - CreatureScript Interface]
[5/6/2010 17:31:30] data/creaturescripts/scripts/lih.lua:onLogin
[5/6/2010 17:31:30] Description:
[5/6/2010 17:31:30] data/creaturescripts/scripts/lih.lua:3: attempt to call global 'doSetCreatureLight' (a nil value)
[5/6/2010 17:31:30] stack traceback:
[5/6/2010 17:31:30] data/creaturescripts/scripts/lih.lua:3: in function <data/creaturescripts/scripts/lih.lua:1>