Nathan96 4 Postado Abril 13, 2012 Share Postado Abril 13, 2012 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 ;/ Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/ Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Abril 13, 2012 Share Postado Abril 13, 2012 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? Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1239822 Compartilhar em outros sites More sharing options...
0 Nathan96 4 Postado Abril 13, 2012 Autor Share Postado Abril 13, 2012 sim so as 5 ultimas mortes Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1239827 Compartilhar em outros sites More sharing options...
0 StyflerDrunou 0 Postado Abril 13, 2012 Share Postado Abril 13, 2012 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 Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1239835 Compartilhar em outros sites More sharing options...
0 Dersinho 4 Postado Abril 13, 2012 Share Postado Abril 13, 2012 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'' Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1239948 Compartilhar em outros sites More sharing options...
0 PsyMcKenzie 150 Postado Abril 13, 2012 Share Postado Abril 13, 2012 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á ;]~ Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1239951 Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Abril 13, 2012 Share Postado Abril 13, 2012 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? Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1239978 Compartilhar em outros sites More sharing options...
0 StyflerDrunou 0 Postado Abril 13, 2012 Share Postado Abril 13, 2012 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) Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1240060 Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Abril 13, 2012 Share Postado Abril 13, 2012 tenta trocar ali onde ta time por date Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1240078 Compartilhar em outros sites More sharing options...
0 Nathan96 4 Postado Abril 13, 2012 Autor Share Postado Abril 13, 2012 vodkart meu ot é sqlite si puder mi ajudar Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1240113 Compartilhar em outros sites More sharing options...
0 StyflerDrunou 0 Postado Abril 13, 2012 Share Postado Abril 13, 2012 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) Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1240172 Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Abril 13, 2012 Share Postado Abril 13, 2012 (editado) é 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 Editado Abril 13, 2012 por Vodkart Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1240193 Compartilhar em outros sites More sharing options...
0 StyflerDrunou 0 Postado Abril 13, 2012 Share Postado Abril 13, 2012 fale portugues please.... me ajuda a corrigir meu erro... Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1240233 Compartilhar em outros sites More sharing options...
0 Nathan96 4 Postado Abril 14, 2012 Autor Share Postado Abril 14, 2012 ele ta off não sei si vai resolver o nosso problema hoje. Caro Vodkart não si esqueça da gente por favor. Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1240240 Compartilhar em outros sites More sharing options...
0 JeanCristian 7 Postado Abril 14, 2012 Share Postado Abril 14, 2012 ALGUEM AJUDA AKE PLEASE EU EMPLORO ESSE SCRIPT É TUDO DE BOM QUEM AJUDAR GANHA MEU REP + Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1240985 Compartilhar em outros sites More sharing options...
0 Nathan96 4 Postado Abril 15, 2012 Autor Share Postado Abril 15, 2012 ta dificil por enquanto ninguem ajudando a gente Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/#findComment-1240991 Compartilhar em outros sites More sharing options...
Pergunta
Nathan96 4
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 ;/
Link para o comentário
https://xtibia.com/forum/topic/184275-pedido-deathlist/Compartilhar em outros sites
Top Posters For This Question
14
11
10
5
Popular Days
Abr 15
12
Abr 13
11
Mai 1
9
Abr 18
6
Top Posters For This Question
Nathan96 14 posts
Vodkart 11 posts
StyflerDrunou 10 posts
JeanCristian 5 posts
Popular Days
Abr 15 2012
12 posts
Abr 13 2012
11 posts
Mai 1 2012
9 posts
Abr 18 2012
6 posts
48 respostass a esta questão
Posts Recomendados