• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Problem with Skullcheck.

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
Hi guys.
I Have a problem with the Skullcheck!
When i kill one monster or player, appears this message on the console:

[Error - Creaturescript Interface]
data/creaturescripts/skullcheck.lua:onThink
Description:
Attempt to call a number value
stack traceback.

^ IT SPAM ALOT on the console!
And i got debug.
Someone help me please!.

Script:

function onThink(cid, interval)
if(not isCreature(cid)) then
return
end

local skull, skullEnd = getCreatureSkull(cid), getPlayerSkullEnd(cid)
if(skullEnd > 0 and skull > SKULL_WHITE and os.time() > skullEnd and not getCreatureCondition(cid, CONDITION_INFIGHT)) then
doPlayerSetSkullEnd(cid, 0, skull)
end
end
 
Back
Top