Ir para conteúdo
  • Cadastre-se

DOUBLE XP AUTOMATICO


Posts Recomendados

Serverinfo

 

local config = {

rateExperience = getConfigInfo('rateExperience'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel'),
stages = getBooleanFromString(getConfigInfo('experienceStages'))
}
 
function onSay(cid, words, param, channel)
local exp = config.rateExperience
if(config.stages) then
exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
end
 
doPlayerPopupFYI(cid, "Server Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel)
return true
end
 

n35408.gif

Link para o post
Compartilhar em outros sites
  • Respostas 20
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

dexplogin.lua (data\creaturescripts\scripts): local days = {     [10] = '00:00', -- [day] = 'hour(s):minute(s)'     [11] = '12:00' } function onLogin(cid)     local d = days[os.date('*t').day]     local os, h = os.date('%X'):sub(1, 5), {'', ''}          if d then         h[1] = os:sub(1, 2)..os:sub(-2)         h[2] = d:sub(1, 2)..d:sub(-2)                  if tonumber(h[1]) > tonumber(h[2]) then             doPlayerSetRate(cid, SKILL__LEVEL, 2.0)             doPlayerSendTextMessage(cid, ME

local days = {1, 5, 10} -- Dias do mês onde terá o evento double xp local stg = 512154 function onLogin(cid) if isInArray(days, os.date("%d")) then if getPlayerStorageValue(cid, stg) < 1 then doPlayerSetRate(cid, SKILL_LEVEL, 2.0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Hoje estamos em dia de double XP!") setPlayerStorageValue(cid, stg, 1) end elseif getPlayerStorageValue(cid, stg) > 0 then doPlayerSetRate(cid, SKILL_LEVEL, 1) setPlayerStorag

Vá na pasta creaturescripts e abre o creaturescripts.xml e adicione a seguinte tag: <event type="login" name="DoubleXP" event="script" value="DoubleXP.lua"/> Agora vá em creaturescripts/scripts e crie um arquivo chamado DoubleXP.lua e adicione: -- Monday = Segunda -- Tuesday = Terça -- Wednesday = Quarta -- Thursday = Quinta -- Friday = Sexta -- Saturday = Sabado -- Sunday = Domingo function onLogin(cid) DoubleDays = {"Saturday", "Sunday"} if isInArray(DoubleDays, os.date("%A")) then

  • 2 weeks later...
  • 1 month later...

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96847
    Tópicos
    519610
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo