Ir para conteúdo

Featured Replies

Postado

Bom Dia pessoal,

 

tentei instalar este MOD do PROCURADO  que encontrei aqui no TK.

 

Ele funciona assim, quando um player atinge x kills a cabeça dele é posta a premio ex: 2kill, o servidor manda uma mensagem broadcast dizendo que o player matou x pessoas e quem conseguir matar ele ganha uma recompensa.

 

 

até ai tudo ok, ele funcionou, mandou a mensagem de broadcast e tudo mais.

 

só está acontecendo um problema, ele pega red skull já na primeira kill. meu servidor esta para pegar red skull com 6 frags. e quando instalo esse mod ele ja pega red na primeira frag.

 

 

Alguém poderia me ajudar?

 

  Citar

 

<?xml version="1.0" encoding="UTF-8"?>  

    <mod name="Procurado" version="1.0" author="Mulizeu" contact="tibiaking.com" enabled="yes">  
    <config name="pcr_func"><![CDATA[
    config = {maxKill = 2, storage = 913874, reward = {2160,100}}
    function getKills(cid)
    return getPlayerStorageValue(cid,config.storage) < 0 and 0 or getPlayerStorageValue(cid,config.storage)
    end
    ]]></config>
    <event type="login" name="ProcuradoRegister" event="script"><![CDATA[
    domodlib('pcr_func')
   function onLogin(cid)
   registerCreatureEvent(cid, "ProcuradoRegister")
   registerCreatureEvent(cid, "ProcuradoKill")
   registerCreatureEvent(cid, "ProcuradoDeath")
   if getPlayerStorageValue(cid,config.storage) == -1 then
   setPlayerStorageValue(cid,config.storage,0)
   end
   return true
   end]]></event>
    <talkaction words="/kill;!kill" event="buffer"><![CDATA[
    domodlib('pcr_func')
    return doPlayerSendTextMessage(cid,27,"You have "..getKills(cid).." Killer of the peoples")
    ]]></talkaction>
    <event type="kill" name="ProcuradoKill" event="script"><![CDATA[
    domodlib('pcr_func')
    function onKill(cid, target, lastHit)
    if isPlayer(cid) and isPlayer(target) == TRUE then
    setPlayerStorageValue(cid, config.storage, getKills(cid)+1)
    doSendAnimatedText(getCreaturePosition(cid),"+Kill",math.random(1,5))
    if getKills(cid) == config.maxKill then
    doBroadcastMessage("The Player "..getCreatureName(cid).." was Killer "..config.maxKill.." people and now his head is worth "..config.reward[2].." "..getItemNameById(config.reward[1]) , 22)
    end
    end
    return true
    end]]></event>
    <event type="death" name="ProcuradoDeath" event="script"><![CDATA[
    domodlib('pcr_func')
    function onDeath(cid, corpse, deathList)
    if isPlayer(deathList[1]) and getKills(cid) >= config.maxKill then
    doPlayerAddItem(deathList[1],config.reward[1],config.reward[2])
    setPlayerStorageValue(cid, config.storage, 0)
    doBroadcastMessage("The Player "..getCreatureName(deathList[1]).." was Killed "..getCreatureName(cid).." and earned his reward" , 20)
    end
    return true
    end
    ]]></event>
    </mod>

 

 

 

Um dos servidores mais atualizados e idêntico ao TIBIARL da atualidade, acesse

 

sigin.gif

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo