luigilc
Lua Learner
I need help making a creaturescript that makes gods have a yellow skull, I tried doing:
but it returns this error:
I also tried:
But none worked, can anyone help me?
Lua:
function onLogin(cid)
if getPlayerGroupName(cid, God)
then
doPlayerSetSkullType(cid, SKULL_WHITE)
end
return true
end
but it returns this error:
Lua:
[27/08/2011 17:10:04] [Error - CreatureScript Interface]
[27/08/2011 17:10:04] data/creaturescripts/scripts/god skull.lua:onLogin
[27/08/2011 17:10:04] Description:
[27/08/2011 17:10:04] data/creaturescripts/scripts/god skull.lua:5: attempt to call global 'doPlayerSetSkullType' (a nil value)
[27/08/2011 17:10:04] stack traceback:
[27/08/2011 17:10:04] data/creaturescripts/scripts/god skull.lua:5: in function <data/creaturescripts/scripts/god skull.lua:2>
I also tried:
Lua:
doPlayerSetSkullType(cid, SKULL_YELLOW)
doPlayerSetSkull(cid, SKULL_YELLOW)
doPlayerSetSkullType(cid, 1)
doPlayerSetSkull(cid, 1)
doCreatureSetSkullType(cid, 1)
doCreatureSetSkullType(cid, SKULL_YELLOW)