acho que não é muito difícil se fazer, é só pegar os dados na database em 'player_deaths'
Oque eu quero entender é que tipo, se ele tiver 100 mortes vai aparecer as 100 mortes?
Eu não jogo tibia, ou só aparece as mais recentes?
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

acho que não é muito difícil se fazer, é só pegar os dados na database em 'player_deaths'
Oque eu quero entender é que tipo, se ele tiver 100 mortes vai aparecer as 100 mortes?
Eu não jogo tibia, ou só aparece as mais recentes?
info
Group: Artesão
Joined: 25/03/12
Posts: 109
Reputation: +4
Tibia Character: Kimera DebochadoOo

sim so as 5 ultimas mortes
info
Group: Campones
Joined: 24/10/11
Posts: 65
Reputation: 0
Tibia Character: Fleps Drunou

Ai não é só com mais de 50 post's que pode fazer pedidos?
Mais, se não for, poste a solução ai que eu também quero ![]()
aa veiii fala a real mesmo todos deathlist que puis no meu ot estavao bugado alguns deathlist so funcionao com saite sem ser mysql acho que nao existe pelomeno no meu server nao funciono nenhum sempre nukava o ot ou nao aparecevia coretamente uq eue queria o0''
info
Group: Marquês
Joined: 18/05/11
Posts: 1.1k
Reputation: +150
Gender: Masculino

Cara todo server que você baixar vai vir com a talkaction
!deathlist, é só você dar uma procurada melhor, em servers como
Alissow, Styller... e tenho certeza que você achará ;]~
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

aa veiii fala a real mesmo todos deathlist que puis no meu ot estavao bugado alguns deathlist so funcionao com saite sem ser mysql acho que nao existe pelomeno no meu server nao funciono nenhum sempre nukava o ot ou nao aparecevia coretamente uq eue queria o0''
existe sim, eu estou vendo algumas querys aqui, para mysql existe vários comandos death list:
local config = {displayLimit = 10}
function onSay(cid, words, param, channel)
local target = db.getResult("SELECT `name`, `id` FROM `players` WHERE `name` = " .. db.escapeString(param) .. ";")
if(target:getID() == -1) then
doPlayerSendCancel(cid, "A player with that name does not exist.")
return TRUE
end
local targetName = target:getDataString("name")
local targetGUID = target:getDataInt("id")
target:free()
local str = ""
local deaths = db.getResult("SELECT `time`, `level`, `killed_by`, `altkilled_by` FROM `player_deaths` WHERE `player_id` = " .. targetGUID .. " ORDER BY `time` DESC;")
if(deaths:getID() ~= -1) then
local n = 0
local breakline = ""
repeat
n = n + 1
if(str ~= "") then
breakline = "\n"
end
local time = os.date("%d %B %Y %X ", deaths:getDataInt("time"))
local level = deaths:getDataInt("level")
local lastHitKiller = deaths:getDataString("killed_by")
local mostDamageKiller = deaths:getDataString("altkilled_by")
local killed = ""
if(tonumber(lastHitKiller)) then
killed = getPlayerNameByGUID(tonumber(lastHitKiller))
else
killed = getArticle(lastHitKiller) .. " " .. string.lower(lastHitKiller)
end
if(mostDamageKiller ~= "") then
if(tonumber(mostDamageKiller)) then
killed = killed .. " and by " .. getPlayerNameByGUID(tonumber(mostDamageKiller))
else
killed = killed .. " and by " .. getArticle(mostDamageKiller) .. " " .. string.lower(mostDamageKiller)
end
end
str = str .. breakline .. " " .. time .. " Died at Level " .. level .. " by " .. killed .. "."
until not(deaths:next()) or n > config.displayLimit
deaths:free()
else
str = "No deaths recorded."
end
doPlayerPopupFYI(cid, "Deathlist for player: " .. targetName .. ".\n\n" .. str)
return TRUE
end
só que na database pelo sqlite essa query player_deaths é diferente, só tem date e level :S
@nathan
seu ot é sqlite ou mysql?
info
Group: Campones
Joined: 24/10/11
Posts: 65
Reputation: 0
Tibia Character: Fleps Drunou

quando eu dei reload talkactions, não apareceu nada. mas quando eu falo !deathlist apareçe isso [13/04/2012 16:13:58] mysql_real_query(): SELECT `time`, `level`, `killed_by`, `altkilled_by` FROM `player_deaths` WHERE `player_id` = 1750 ORDER BY `time` DESC; - MYSQL ERROR: Unknown column 'time' in 'field list' (1054)
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

tenta trocar ali onde ta time por date
info
Group: Artesão
Joined: 25/03/12
Posts: 109
Reputation: +4
Tibia Character: Kimera DebochadoOo

vodkart meu ot é sqlite si puder mi ajudar ![]()
info
Group: Campones
Joined: 24/10/11
Posts: 65
Reputation: 0
Tibia Character: Fleps Drunou

o mesmo erro só com a modificação que eu fis
[13/04/2012 18:44:23] mysql_real_query(): SELECT `date`, `level`, `killed_by`, `altkilled_by` FROM `player_deaths` WHERE `player_id` = 689 ORDER BY `date` DESC; - MYSQL ERROR: Unknown column 'killed_by' in 'field list' (1054)
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

é diz que não a coluna 'killer_by' na database 'player_deaths'
eu to mexendo numa aqui mais só está funcionando com bixos, se for com player da debug :S
vou ver se consigo arrumar
ta assim soh pra bixo

a base é essa
http://code.google.com/p/gesior-aac/source/browse/trunk/upload/killstatistics.php?r=164
Edited Abril 13 by Vodkart
info
Group: Campones
Joined: 24/10/11
Posts: 65
Reputation: 0
Tibia Character: Fleps Drunou

fale portugues please....
me ajuda a corrigir meu erro...
info
Group: Artesão
Joined: 25/03/12
Posts: 109
Reputation: +4
Tibia Character: Kimera DebochadoOo

ele ta off não sei si vai resolver o nosso problema hoje.
Caro Vodkart não si esqueça da gente por favor.![]()
info
Group: Visconde
Joined: 11/04/12
Posts: 328
Reputation: +7
Tibia Character: ADM MiHawk

ALGUEM AJUDA AKE PLEASE EU EMPLORO ESSE SCRIPT É TUDO DE BOM QUEM AJUDAR GANHA MEU REP +
info
Group: Artesão
Joined: 25/03/12
Posts: 109
Reputation: +4
Tibia Character: Kimera DebochadoOo
Tipo do script: talkactions
Protocolo : 8.6
Servidor utilizado: tfs 3.6
já vi algumas aqui neste fórum mais nem uma funciona no meu server então si possível gostaria uma igual do video abaixo.
http://www.youtube.com/watch?v=1SkJoE8dOo4&context=C455c014ADvjVQa1PpcFNPQUrkfAk98PRpni2dIpelZK3essGHo0A=
Valendo Rep +
Ninguém ainda?? já tentei de tudo, já mudei o distro, já mexi na conf.lua e nada ;/