local config = {
loginMessage = getConfigValue('loginMessage'),
useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
local config = {
[1] = {lookType=40},
[2] = {lookType=90},
[3] = {lookType=90},
[4] = {lookType=50},
}
function onLogin(cid)
if config[getPlayerVocation(cid)] then
doCreatureChangeOutfit(cid, config[getPlayerVocation(cid)]) end
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
if getPlayerLevel(cid) <= 50 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have protection to 50lvl and if you dead dont lose items")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Koniecznie przeczytaj regulamin: http://dbzf.y0.pl/")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(accountManager == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
elseif(accountManager == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
end
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "advLv")
registerCreatureEvent(cid, "fullUp")
registerCreatureEvent(cid, "owned")
registerCreatureEvent(cid, "obracanie")
return true
end
[B]local[/B]
[COLOR=#333333][FONT=monospace]config[/FONT][/COLOR][LEFT][COLOR=#66CC66][FONT=monospace]=[/FONT][/COLOR]
[COLOR=#66CC66][FONT=monospace]{[/FONT][/COLOR][/LEFT]
[COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]1[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]40[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]2[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]90[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]3[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]90[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]4[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]50[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR] [COLOR=#66CC66][FONT=monospace]}[/FONT][/COLOR]
Zauważ że on mógł nie dać tu całości..Code:[B]local[/B] [COLOR=#333333][FONT=monospace]config[/FONT][/COLOR][LEFT][COLOR=#66CC66][FONT=monospace]=[/FONT][/COLOR] [COLOR=#66CC66][FONT=monospace]{[/FONT][/COLOR][/LEFT] [COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]1[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]40[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]2[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]90[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]3[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]90[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]4[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]50[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR] [COLOR=#66CC66][FONT=monospace]}[/FONT][/COLOR]
OMG. Po co ci ten przecinek na końcu w tabeli :O ?