Hello im looking for a script that gives the players free blessings until level 50 so they dont drop items.
I have been looking around and found some scripts... but they just gave me error.
one of them was in login.lua: (added it under function onLogin(cid))
But got this error:
I have been looking around and found some scripts... but they just gave me error.
one of them was in login.lua: (added it under function onLogin(cid))
Code:
local level = 50
function onLogin(cid)
if getPlayerBlessing(cid, 1) and getPlayerBlessing(cid, 2) and getPlayerBlessing(cid, 3) and getPlayerBlessing(cid, 4) and getPlayerBlessing(cid, 5) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have All blessings.")
else
for i = 1, 5 do
doPlayerAddBlessing(cid, i)
end
return true
end
But got this error:
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/others/login.lua:onLogin
data/creaturescripts/scripts/others/login.lua:4: attempt to call global 'getPlayerBlessinggetPlayerBlessing' (a nil value)
stack traceback:
[C]: in function 'getPlayerBlessinggetPlayerBlessing'
data/creaturescripts/scripts/others/login.lua:4: in function <data/creaturescripts/scripts/others/login.lua:1>