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 Nathan96 4 Postado Abril 18, 2012 Autor Share Postado Abril 18, 2012 não funcionou Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1243633 Compartilhar em outros sites More sharing options...
0 JeanCristian 7 Postado Abril 18, 2012 Share Postado Abril 18, 2012 ahhhhh se funcioar é rep+ to de olho ein Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1243820 Compartilhar em outros sites More sharing options...
0 StyflerDrunou 0 Postado Abril 18, 2012 Share Postado Abril 18, 2012 eae funfou? @jean... voce usa mysql né? então é esse aqui para voce... local config = { deathAssistCount = getConfigValue('deathAssistCount') + 1, maxDeathRecords = getConfigValue('maxDeathRecords'), limit = "" } if(config.deathAssistCount > 0) then config.limit = " LIMIT 0, " .. config.deathAssistCount end 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, "Este jogador não existe.") return true end local targetName, targetId = target:getDataString("name"), target:getDataInt("id") target:free() local str, deaths = "", db.getResult("SELECT `id`, `date`, `level` FROM `player_deaths` WHERE `player_id` = " .. targetId .." ORDER BY `date` DESC LIMIT 0, " .. config.maxDeathRecords) if(deaths:getID() ~= -1) then repeat local killers = db.getResult("SELECT environment_killers.name AS monster_name, players.name AS player_name FROM killers LEFT JOIN environment_killers ON killers.id = environment_killers.kill_id LEFT JOIN player_killers ON killers.id = player_killers.kill_id LEFT JOIN players ON players.id = player_killers.player_id WHERE killers.death_id = " .. deaths:getDataInt("id") .. " ORDER BY killers.final_hit DESC, killers.id ASC" .. config.limit) if(killers:getID() ~= -1) then if(str ~= "") then str = str .. "\n" .. os.date("%d %B %Y %X ", deaths:getDataLong("date")) else str = os.date("%d %B %Y %X ", deaths:getDataLong("date")) end local count, i = killers:getRows(false), 0 repeat local monster = killers:getDataString("monster_name") if(i == 0 or i == (count - 1)) then monster = string.gsub(monster:gsub("an ", ""), "a ", "") end if(killers:getDataString("player_name") ~= "") then if(i == 0) then str = str .. "Killed at level " .. deaths:getDataInt("level") .. " por:\n " elseif(i == count) then str = str .. " e por " elseif(i % 4 == 0) then str = str .. ",\n " else str = str .. ", " end if(monster ~= "") then str = str .. monster .. " sumonado por " end str = str .. killers:getDataString("player_name") else if(i == 0) then str = str .. "Morto no level " .. deaths:getDataInt("level") .. " por:\n " elseif(i == count) then str = str .. " e por " elseif(i % 4 == 0) then str = str .. ",\n " else str = str .. ", " end str = str .. monster end i = i + 1 if(i == count) then str = str .. "." end until not(killers:next()) killers:free() end until not(deaths:next()) deaths:free() else str = "Não tem mortes." end doPlayerPopupFYI(cid, "Deathlist do player: " .. targetName .. ".\n\n" .. str) return true end Se não for mysql, vai dar erro '-' eu nao sei mudar para sqlite... Se algum scripter souber, posta ai. Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1243966 Compartilhar em outros sites More sharing options...
0 Nathan96 4 Postado Abril 18, 2012 Autor Share Postado Abril 18, 2012 sqlite plz Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1244150 Compartilhar em outros sites More sharing options...
0 StyflerDrunou 0 Postado Abril 18, 2012 Share Postado Abril 18, 2012 Pow, eu conheço alguns scripters, mais nem um deles me respondem '-' Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1244405 Compartilhar em outros sites More sharing options...
0 Dersinho 4 Postado Abril 20, 2012 Share Postado Abril 20, 2012 vodkart vc mesmo disse > existe sim, eu estou vendo algumas querys aqui, para mysql existe vários comandos death list: mysql para sql sem ser saite sempre da debug olha que ja testei varios scrips. allisson nao existe o deathlist de la da debug,deathlist do stylle e um poko diferente ele funciona mais nao aparace pra quem ele morreu e ainda da uns erro na tabela do ot =/ Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1245340 Compartilhar em outros sites More sharing options...
0 Nathan96 4 Postado Maio 1, 2012 Autor Share Postado Maio 1, 2012 Pelo visto ninguém consegue, topico morto '-' Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1252041 Compartilhar em outros sites More sharing options...
0 Makelin1 89 Postado Maio 1, 2012 Share Postado Maio 1, 2012 SIM AJUDENOSSSSSSSSSSS velho para de flood tu encheu o topico de flood reportado ate se saiu completamente de acordo do pedido ate Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1252321 Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Maio 1, 2012 Share Postado Maio 1, 2012 vodkart vc mesmo disse > existe sim, eu estou vendo algumas querys aqui, para mysql existe vários comandos death list: mysql para sql sem ser saite sempre da debug olha que ja testei varios scrips. allisson nao existe o deathlist de la da debug,deathlist do stylle e um poko diferente ele funciona mais nao aparace pra quem ele morreu e ainda da uns erro na tabela do ot =/ pois é, para qslite é diferente, desse jeito funciona, porém não aparece para quem morreu: limit = 5 function onSay(cid, words, param, channel) local getPlayer = db.getResult("SELECT `name`, `id` FROM `players` WHERE `name` = " .. db.escapeString(param) .. ";") if(getPlayer:getID() == -1) then doPlayerSendCancel(cid, "Este Player não existe.") return true end local getGuid = getPlayer:getDataInt("id") getPlayer:free() local str = "" local qry = db.getResult("SELECT `id`, `date`, `level` FROM `player_deaths` WHERE `player_id` = " .. getGuid .." ORDER BY `date` DESC LIMIT 0, " .. limit) if(qry:getID() ~= -1) then repeat str = str .."\n "..os.date("%d %B %Y %X ", qry:getDataInt("date")).." Morto no level "..qry:getDataInt("level").."" until not(qry:next()) qry:free() else str = "Não há mortes." end doPlayerPopupFYI(cid, "Lista de Mortes de: " .. param .. ".\n\n" .. str) return true end Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1252331 Compartilhar em outros sites More sharing options...
0 Vilden 137 Postado Maio 1, 2012 Share Postado Maio 1, 2012 Galera vamos esperar a ajuda, ficar pedindo toda hora não vai faze com que ela se resolva, além do mais, pode até chegar a ser um flood. Cuidado. Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1252337 Compartilhar em outros sites More sharing options...
0 PsyMcKenzie 150 Postado Maio 1, 2012 Share Postado Maio 1, 2012 Vodkart abre uma exceção pra mim velho por favor? Faz o script pra mim la? http://www.xtibia.com/forum/topic/184816-script-reino/page__fromsearch__1 Tu disse q é facil. E se puder fazer algo por mim nesse, não tem nada a ver com pokemon, é só o nome do sistema: http://www.xtibia.com/forum/topic/185060-duvida-script-mkalo/page__fromsearch__1 Obrigado. Até+ Abraços!! Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1252338 Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Maio 1, 2012 Share Postado Maio 1, 2012 consegui (: acho que funfa em sqlite e mysql '-' Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1252446 Compartilhar em outros sites More sharing options...
0 Vilden 137 Postado Maio 1, 2012 Share Postado Maio 1, 2012 Vodkart, se você não for postar a script e ajudar os caras não é necessário esse comentário a cima, certo? abç Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1252464 Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Maio 1, 2012 Share Postado Maio 1, 2012 (editado) mas eu vou postar sim, só estou vendo se eles vão querer '-' ------------------------------------- está ai para quem quiser: na sua db executa isso: CREATE TABLE death_list ( id INTEGER NOT NULL, player_id INTEGER NOT NULL, date INTEGER NOT NULL, level INTEGER NOT NULL, killer_name INTEGER NOT NULL, PRIMARY KEY ( id ) ); creaturescript death_list.lua function onDeath(cid, corpse, deathList) local death = "field item" if isPlayer(deathList[1]) or isMonster(deathList[1]) then death = getCreatureName(deathList[1]) end db.executeQuery("INSERT INTO `death_list` (`player_id`, `date`, `level`, `killer_name`) VALUES ('".. getPlayerGUID(cid).."', '".. os.time() .."', '".. getPlayerLevel(cid) .."', '".. death .."');") return true end creaturescript.xml <event type="death" name="DeathList" event="script" value="death_list.lua"/> creaturescript/script/login.lua registerCreatureEvent(cid, "DeathList") talkactions deathlist.lua limit = 5 function onSay(cid, words, param, channel) local getPlayer = db.getResult("SELECT `name`, `id` FROM `players` WHERE `name` = " .. db.escapeString(param) .. ";") if(getPlayer:getID() == -1) then doPlayerSendCancel(cid, "Este Player não existe.") return true end local getGuid = getPlayer:getDataInt("id") getPlayer:free() local str = "" local qry = db.getResult("SELECT `id`, `date`, `level`, `killer_name` FROM `death_list` WHERE `player_id` = " .. getGuid .." ORDER BY `date` DESC LIMIT 0, " .. limit) if(qry:getID() ~= -1) then repeat str = str .."\n "..os.date("%d %B %Y %X ", qry:getDataInt("date")).." Morto no level "..qry:getDataInt("level").." Por: "..qry:getDataString("killer_name").."." until not(qry:next()) qry:free() else str = "Não há mortes." end doPlayerPopupFYI(cid, "Lista de Mortes de: " .. param .. ".\n\n" .. str) return true end talkactions.xml <talkaction words="!deathlist" script="deathlist.lua"/> Editado Maio 1, 2012 por Vodkart Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1252471 Compartilhar em outros sites More sharing options...
0 Makelin1 89 Postado Maio 1, 2012 Share Postado Maio 1, 2012 + REP Vodkart ainda n testei mas vo ver ate Link para o comentário https://xtibia.com/forum/topic/184275-pedido-deathlist/page/3/#findComment-1252541 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