• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Problem TFS

pele112

Member
Joined
Aug 9, 2007
Messages
572
Reaction score
8
Location
Wodzisław Śląski
Mam taki problem
Lua Script Error: [CreatureScript Interface].
data/creaturescripts/scripts/skullcheck.lua:onThink

data/creaturescripts/scripts/skullcheck.lua:3: attempt to compare number with boolean
stack traceback:
data/creaturescripts/scripts/skullcheck.lua:3: in function <data/creaturescripts/scripts/skullcheck.lua:1>
 
Prosze:
function onThink(cid, interval)
local redSkull = getPlayerRedSkullEnd(cid)
if(redSkull > 0 and getCreatureSkull(cid) == SKULL_RED and os.time() > redSkull and not getCreatureCondition(cid, CONDITION_INFIGHT)) then
doPlayerSetRedSkullEnd(cid, 0)
end
end
 
not getCreatureCondition(cid, CONDITION_INFIGHT) czy to może działać?
nie lepiej getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE
 
Back
Top