Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Olá, gostaria de saber de esse script (onkill.lua) tmb da XP e não só puni quem mata player do mesmo IP... (Esse script existe em server de war, player x player).

  Mostrar conteúdo oculto

 function onKill(cid, target)

--config----------------------------
local lvl = getPlayerLevel(cid) --players level
local nlvl = getPlayerLevel(cid) + 5 -- add 5 levels
--end-------------------------------
    if isPlayer(target) == TRUE then
        if getPlayerIp(cid) ~= getPlayerIp(target) then
                        local exp = (50 * (lvl) * (lvl) * (lvl) - 150 * (lvl) * (lvl) + 800 * (lvl)) / 5
                        local nexp = (50 * (nlvl) * (nlvl) * (nlvl) - 150 * (nlvl) * (nlvl) + 900 * (nlvl)) / 5
                        local newexp = nexp - exp
                        doPlayerAddExp(cid,newexp)
                        doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198)
                else
            doPlayerAddExperience(cid, -50000)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
        end
        end
    return TRUE
end

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

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Posts

function onKill(cid, target) --config---------------------------- local lvl = getPlayerLevel(cid) --players level local target_lvl = getPlayerLevel(target) -- add 5 levels --end------------------------------- if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then doPlayerAddExperience(cid, -50000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Voce foi punido por matar alguem do mesmo IP e não ganha lvl") return TRUE else if lvl < targe

  Em 20/07/2014 em 01:44, JonatasLucasf disse:

acho que sim

Expand   Mostrar mais  

Mas preciso saber aonde e como funciona, pois level 700 mata um 300 e upa demais (exemplo) rs... Queria tipo "Stages", mas só que para players....

@UP - Alguém sabe por favor? Preciso urgente de alguem que entenda pois a xp está alta d+... Queria tipo stages para players, inicia level 300, depois do 600 fode a XP...

Link para o post
Compartilhar em outros sites

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

    96843
    Tópicos
    519604
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo