Ir para conteúdo
Banner com Efeitos

ientus

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    ientus deu reputação a jwilliams em Sword Art Online 2 - Gun Gale Online   
  2. Gostei
    ientus deu reputação a tev em Mostrar a quantidade que morreu e que matou ao dar look no player   
    TESTADO EM TFS 0.4 E 0.6, PEÇO PARA QUE TESTEM EM OUTRAS VERSÕES, POR FAVOR.
     
    Prévia;

     
    Crie um arquivo KillsandDeath.lua
    function onLook(cid, thing, position, lookDistance) function getDeathsAndKills(cid, type) -- by vodka local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0 if (query:getID() ~= -1) then  repeat d = d+1 until not query:next() query:free() end return d  end if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Killed: ["..getDeathsAndKills(thing.uid, "kill").."] Players.\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Died: ["..getDeathsAndKills(thing.uid, "death").."] Times") end return true end No creaturescript.xml, coloque:
    <event type="look" name="showKD" event="script" value="KillsandDeath.lua"/> Em creaturescript/script/login.lua, coloque:
    registerCreatureEvent(cid, "showKD") Script disponibilizado por Critico.
    Tópico organizado por mim.
     
    Abraços!
     

Informação Importante

Confirmação de Termo