jennao 4 Postado Maio 30, 2009 Share Postado Maio 30, 2009 (editado) Oi Sou o Mucio Vim Colocar Aki no Xtibia O Deathlist Ele Mostra Quantas Veses Você Ou Seu Amigo Morreu Vamos La Ne ? Vá Em Talkactions/Scripts , Copie Um Arquivo .Lua E Depois Cole . Renomeie Ele Para deathlist.lua . E Coloque Esse Script : function onSay(cid, words, param) local target = db.getResult("SELECT `name`, `id` FROM `players` WHERE `name` = " .. db.escapeString(param) .. ";") if(target:getID() ~= -1) then 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 breakline = "" while(true) do if(str ~= "") then breakline = "\n" end local time = os.date("%d %B %Y %X ", deaths:getDataInt("time")) local level = deaths:getDataInt("level") local killed = "" local lastHitKiller = deaths:getDataString("killed_by") local mostDamageKiller = deaths:getDataString("altkilled_by") 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 .. "." if not(deaths:next()) then break end end deaths:free() else str = "No deaths recorded." end doPlayerPopupFYI(cid, "Deathlist for player: " .. targetName .. ".\n\n" .. str) else doPlayerSendCancel(cid, "Este Jogador Não Existe") end return TRUE end Voute A Pasta , Va Em Talkactions.XML Procure Por <!-- Players --> , Quando Achar Coloque Isso : <talkaction words="!deathlist" script="deathlist.lua"/> Exemplo : !deathlist Jennao Aparecera Isso Na Sua Tela : [http://img38.imageshack.us/img38/76/hnhg.png] ~~/~~ Script Não E Meu , Veio No Server Darkness Otserver 0.4.0 (8.4) Rev. 03 Então Os Creditos Não São Meus ... Editado Maio 30, 2009 por mucio Link para o comentário Compartilhar em outros sites More sharing options...
Slyy 0 Postado Maio 30, 2009 Share Postado Maio 30, 2009 Mtu Boa essa Talk , parabens cara. Link para o comentário Compartilhar em outros sites More sharing options...
satan666 12 Postado Maio 30, 2009 Share Postado Maio 30, 2009 esse script do deathlist ja vem em todos os tfs. Link para o comentário Compartilhar em outros sites More sharing options...
hpjp 11 Postado Junho 14, 2009 Share Postado Junho 14, 2009 Realmente ja vem com todos os tfs... Link para o comentário Compartilhar em outros sites More sharing options...
Ystifler 2 Postado Agosto 30, 2009 Share Postado Agosto 30, 2009 em 8.50 não funfa pqp ' Link para o comentário Compartilhar em outros sites More sharing options...
mctyn 0 Postado Setembro 15, 2009 Share Postado Setembro 15, 2009 Nao seria melhor um script que mostra o total de pessoas que o player ja matou? ;* Link para o comentário Compartilhar em outros sites More sharing options...
Demonbholder 420 Postado Setembro 19, 2009 Share Postado Setembro 19, 2009 Mesmo q ja venha nos tfs, se ele n tiver copiado, ta bom. Link para o comentário Compartilhar em outros sites More sharing options...
geovanejr 0 Postado Setembro 25, 2009 Share Postado Setembro 25, 2009 vey aki em ksa n ta funfandu aki em ksa o ot e 7.92 ajude ae Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados