• 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!

Solved Problem with function

therrax

Member
Joined
Jul 12, 2012
Messages
262
Solutions
1
Reaction score
11
Hi :)
TFS 1.0

error:
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/freebless.lua:onLogin
data/creaturescripts/scripts/freebless.lua:9: attempt to call global 'getThingPo
sition' (a nil value)
stack traceback:
        [C]: in function 'getThingPosition'
        data/creaturescripts/scripts/freebless.lua:9: in function <data/creature
scripts/scripts/freebless.lua:3>
code:
Code:
local freeBlessMaxLevel = 65

function onLogin(cid)
if(getPlayerLevel(cid) <= freeBlessMaxLevel and not getPlayerBlessing(cid,1)) then
for b=1, 5 do
doPlayerAddBlessing(cid, b)
end
doCreatureSay(cid, 'You are blessed!', TALKTYPE_ORANGE_1)
doSendMagicEffect(getThingPosition(cid), CONST_ME_HOLYDAMAGE)
end
return true
end
 
Back
Top