Wezza
lua nOOb
- Joined
- May 31, 2008
- Messages
- 2,278
- Reaction score
- 31
Code:
Cannot load script (data/creaturescripts/scripts/login.lua)
data/creaturescripts/scripts/login.lua:77: 'end' expected (to close 'function' at line 7) near '<eof>'
Code:
dofile(getDataDir() .. "lib/login_checks.lua")
local config = {
loginMessage = getConfigValue('loginMessage')
}
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
local level = getPlayerLevel(cid)
if level <= 101 then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 8)
elseif level <= 200 then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 14)
elseif level <= 300 then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 17)
elseif level <= 350 then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 20)
else
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 25)
end
end
function vocInformation(cid)
help me please?
Last edited: