Ir para conteúdo

Featured Replies

Postado

Mais outro Sistema que a Chaito Soft ta vendendo ta aii de graça, esse é novo ele começou a vender hoje.

K/D Ratio System

#Descrição:

Sistema derivado de diversos jogos de combate, foi trazido para o Tibia com uma intenção bem legal promover a disputa pelo ranking online, intencionalidade de manter um k.d ratio bom pois isso demonstrará quanto o player é bom jogador além disso gerará uma preocupação com cada kill e death.

Instalação:

Em Data/Mods

ka_ratio.xml

Mostrar conteúdo oculto

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

<mod name="KDR SYSTEM" version="1.0" author="Narko" contact="crmb92@hotmail.com" enabled="yes">

<event type="kill" name="killpoint" event="script"><![CDATA[

function onKill(cid, target, damage, flags)

if isPlayer(target) == true then

db.query("UPDATE `players` SET `frags` = `frags` + 1 WHERE id = " .. getPlayerGUID(cid) .. ";")

doCreatureSay(cid, '+1 Frag Point!', TALKTYPE_ORANGE_1)

end

return true

end

]]></event>

<event type="preparedeath" name="deathpoint" event="script"><![CDATA[

function onPrepareDeath(cid, deathList, lastHitKiller, mostDamageKiller)

if isPlayer(cid) == true then

db.query("UPDATE `players` SET `deaths` = `deaths` + 1 WHERE id = " .. getPlayerGUID(cid) .. ";")

doCreatureSay(cid, '+1 Death Point!', TALKTYPE_ORANGE_1)

end

return true

end

]]></event>

<event type="look" name="KdrLook" event="script"><![CDATA[

function onLook(cid, thing, position, lookDistance)

function getKillsPlayer(cid)

local Info = db.getResult("SELECT `frags` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. " LIMIT 1")

local frags= Info:getDataInt("frags")

return frags

end

function getDeathsPlayer(cid)

local Info = db.getResult("SELECT `deaths` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. " LIMIT 1")

local deaths= Info:getDataInt("deaths")

return deaths

end

if isPlayer(thing.uid) then

local kdr = getKillsPlayer(thing.uid)/getDeathsPlayer(thing.uid)

doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and "\nShe" or "\nHe") .. " has Killed: ["..getKillsPlayer(thing.uid).."] Players."..(getPlayerSex(thing.uid) == 0 and "\nShe" or "\nHe") .. " has Died: ["..getDeathsPlayer(thing.uid).."] Times.\nThe Kdr(Kill Death Ratio) is: ["..kdr.."].")

end

if(thing.uid == cid) then

local kdr = getKillsPlayer(thing.uid)/getDeathsPlayer(thing.uid)

doPlayerSetSpecialDescription(thing.uid, "\nYou have Killed: ["..getKillsPlayer(thing.uid).."] Players.\nYou have Died: ["..getDeathsPlayer(thing.uid).."] Times.\nYou Kdr(Kill Death Ratio) is: ["..kdr.."].")

end

return true

end

]]></event>

<event type="login" name="KdrLook" event="buffer"><![CDATA[

registerCreatureEvent(cid, "KdrLook")

registerCreatureEvent(cid, "killpoint")

registerCreatureEvent(cid, "deathpoint")

_result = true

]]></event>

</mod>

Imagem do sistema

http://imageshack.us/photo/my-images/833/kdrsystem.jpg/

Te ajudei +REP!

Editado por Duda Lima (veja o histórico de edições)

  • Respostas 6
  • Visualizações 3.8k
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Amigo, você esqueceu da tag.. bom script parabéns !

                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Assinatura~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                pmnz1.jpg

  • 4 weeks later...
Postado

Não precisa de tag nenhuma, é só por direto em mods, se não me engano fica o firstitems lá... ai você copia algum xml, e cola isso la e muda o nome, e pronto ja esta feito '-

Atenciosamente,

Gustavo H. Torres

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.6k

Informação Importante

Confirmação de Termo