therrax
Member
- Joined
- Jul 12, 2012
- Messages
- 262
- Solutions
- 1
- Reaction score
- 11
Hi
TFS 1.0
error:
code:
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:
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