Ir para conteúdo

Featured Replies

  • Respostas 11
  • Visualizações 1.5k
  • Created
  • Última resposta

Top Posters In This Topic

Postado
  • Autor

Desculpa li errado kkk

 

 

local config = {
loginMessage = getConfigValue('loginMessage'),
useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
 
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
                doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0)
                doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0)
doCreatureSetDropLoot(cid, false)
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
end
 
 
 
           local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
else
str = str .. " Please choose your outfit."
doPlayerSendOutfitWindow(cid)
end
 
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
 
local out = getPlayerStorageValue(cid, 38220)
if getPlayerStorageValue(cid, 38219) - os.time() < 1 and canPlayerWearOutfitId(cid, out) then
doPlayerRemoveOutfitId(cid, out, 3)
end
 
     registerCreatureEvent(cid, "kill")
     registerCreatureEvent(cid, "onPrepareDeath")
     registerCreatureEvent(cid, "PlayerLogout")
     registerCreatureEvent(cid, "onPrepareDeath")
     registerCreatureEvent(cid, "deathBroadcast")
     registerCreatureEvent(cid, "DeathBroadcast")
     registerCreatureEvent(cid, "zombieevent")
     registerCreatureEvent(cid, "ProtectLevel") 
     registerCreatureEvent(cid, "PartyAttack")
     registerCreatureEvent(cid, "DeathNote")
     registerCreatureEvent(cid, "look")
     registerCreatureEvent(cid, "bountyboard")
     registerCreatureEvent(cid, "bountykill")
     registerCreatureEvent(cid, "ProtectLevel")
     registerCreatureEvent(cid, "fullmh")
     registerCreatureEvent(cid, "blockedRedLogout")
     registerCreatureEvent(cid, "KillerBroad")
 
        registerCreatureEvent(cid, "Idle")
        if(config.useFragHandler) then
        registerCreatureEvent(cid, "SkullCheck")
        end 
registerCreatureEvent(cid, "ReportBug")
local presente_days = 10
if getGlobalStorageValue(getPlayerAccountId(cid)+450) <= 0 then
doPlayerAddPremiumDays(cid, presente_days)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have received "..presente_days.." days of trial premium account, enjoy it!")
setGlobalStorageValue(getPlayerAccountId(cid)+450, 1)
end
 
        return true
end

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo