Unk3n0w7 1,321 Posted June 22, 2013 Olá pessoal hoje venho partilhar com todos vcs uma quest que permite vcs irem a um npc e ver quantos kills têm nos 3 reinos;) Quest : quest pvp_ranking begin state start begin when kill with npc.is_pc() begin local kill_now = mysql_query("SELECT kills from player.player WHERE name='"..pc.get_name().."' LIMIT 1") local kill_up = mysql_query("UPDATE player.player SET kills ='"..(kill_now.kills[1][img]http://cyber-gamers.org/public/style_emoticons/<#EMO_DIR#>/451960.gif[/img]).."' WHERE name ='"..pc.get_name().."' LIMIT 1") end when 9001.chat."Raking PvP" begin say("Bem-Vindo Ao Raking PvP") say("Aqui poderá ver quantos jogadores matou até agora !") say_reward("Onde é que vais ver ?") local sel = select("Global","Vermelhos","Amarelos","Azuis","Cancelar") local pp if sel == 5 then return elseif sel == 1 then pp = mysql_query("select name,kills from player.player ORDER BY kills desc,level desc,name asc LIMIT 15") else pp = mysql_query("select name,kills from player.player where (SELECT empire from player.player_index where player.account_id =id) = "..(sel-1).." ORDER BY kills desc,level desc,name asc LIMIT 15") end if pp == nil or (pp[1] or {})[1] == nil then say("Es gab einen Fehler.") return end say("Rang - Name - Kills") table.foreachi(pp,function(i,l) say(i.." - "..l[1].." - "..l[2]) end) end endend Créditos : [*]epvp Cumprimentos . 5 źĩмßáßŵúĕ, MiguelCosta, -điѳgѳ૮ѳ૨ท© and 2 others reacted to this Share this post Link to post Share on other sites
friend 254 Posted July 3, 2013 Boas olha, ao colocar essa Quest, funciona automaticamente do tipo sem termos de ir modificar alguma coisa ou temos que modificar alguma coisa? Share this post Link to post Share on other sites
harribel 0 Posted July 3, 2013 Essa quest eu boto ela, e nao da em nada, parece que nao tem tabela kills nas files onde eu as vejo ? Share this post Link to post Share on other sites
SINVAL o.O 728 Posted July 3, 2013 A quest tem a função mysql ela busca os nomes no navicat então tudo automaticamente. Share this post Link to post Share on other sites
matutapvz 1 Posted July 18, 2013 onde coloco isso tudo que tem ai escrito? Share this post Link to post Share on other sites
Wolvarinhas 107 Posted August 1, 2013 So nao percebo uma cena logo que olhei para a quest vi when9001.chat."Raking PvP"begin pk meteram um pvp ranking no gajo das armas?? Share this post Link to post Share on other sites
Wolvarinhas 107 Posted August 1, 2013 Tive outra ideia pk nao colocam o state start begin when kill with npc.is_pc() begin local kill_now = mysql_query("SELECT kills from player.player WHERE name='"..pc.get_name().."' LIMIT 1") local kill_up = mysql_query("UPDATE player.player SET kills ='"..(kill_now.kills[1]+1).."' WHERE name ='"..pc.get_name().."' LIMIT 1") end when 9001.chat."Raking PvP" begin say("Bem-Vindo Ao Raking PvP") say("Aqui poderá ver quantos jogadores matou até agora !") say_reward("Onde é que vais ver ?") local sel = select("Global","Vermelhos","Amarelos","Azuis","Cancelar") local pp if sel == 5 then return elseif sel == 1 then pp = mysql_query("select name,kills from player.player ORDER BY kills desc,level desc,name asc LIMIT 15") else pp = mysql_query("select name,kills from player.player where (SELECT empire from player.player_index where player.account_id =id) = "..(sel-1).." ORDER BY kills desc,level desc,name asc LIMIT 15") end if pp == nil or (pp[1] or {})[1] == nil then say("Es gab einen Fehler.") return end say("Rang - Name - Kills") table.foreachi(pp,function(i,l) say(i.." - "..l[1].." - "..l[2]) end) end end end No guild manage e fica mais fixe nos guardas das cidades Share this post Link to post Share on other sites
ricardox 1 Posted August 24, 2013 Boas ainda nao percebi uma cena!!!!!!!!! vemos em ke Npc as kills? cumpz Share this post Link to post Share on other sites
YonN 28 Posted October 19, 2013 ¬¬' when 9001.chat."Raking PvP" begin 9001 = NPC u_u Share this post Link to post Share on other sites
ɓʀuɳѳ Martiɳs 53 Posted November 2, 2013 funciono aki n >< Share this post Link to post Share on other sites
.boon. 13 Posted November 8, 2013 acho que é obvio que tem de primeiro de se adicionar o campo kills em player.player para ele conseguir modificar e buscar valores caso contrario nao ira sequer funcionar a funçao. Share this post Link to post Share on other sites
'PACI 2,317 Posted November 8, 2013 acho que é obvio que tem de primeiro de se adicionar o campo kills em player.player para ele conseguir modificar e buscar valores caso contrario nao ira sequer funcionar a funçao.Acho que é óbvio que: when kill + mysql_query = R.I.P SV Share this post Link to post Share on other sites
.boon. 13 Posted November 9, 2013 Acho que é óbvio que: when kill + mysql_query = R.I.P SV deixa-os torrarem o computador, eu nem olhei para a quest mas não vi nenhuma query nem nada e vi um mysql query para player.player "kills" e achei estranho. Share this post Link to post Share on other sites
'PACI 2,317 Posted November 9, 2013 deixa-os torrarem o computador, eu nem olhei para a quest mas não vi nenhuma query nem nada e vi um mysql query para player.player "kills" e achei estranho.A query está no mysql_query ._.'Anyway, huehuehuehuehuehuehuehuehuehuehuehuehuehuehuehuehuehuehuehuehuehuehuehuehue Share this post Link to post Share on other sites