LeyendasMt2 Posted February 24, 2013 Report Share Posted February 24, 2013 hola , pues resulta que esta quest tan basica deberia sumar 1 por cada vez que mate pero me suma 2 :pokerface: quest killgui begin state start begin when 9009.chat."Ranking PvP de los Mas Asesinos" begin local pvp= mysql_query("SELECT name,kills FROM player.player ORDER BY kills desc LIMIT 10;") table.foreachi(pvp,function(nr,player) say(nr.." Jugador: "..player[1].." Kills: "..player[2]) end) end when kill begin if npc.is_pc() then mysql_query("UPDATE player.player SET kills=kills+1 WHERE name='"..pc.get_name().."';") end end end end Link to comment Share on other sites More sharing options...
Croqueta Posted February 24, 2013 Report Share Posted February 24, 2013 when kill with npc.is_pc() and pc.get_empire() ~= npc.get_empire() begin mysql_query("UPDATE player.player SET kills=kills+1 WHERE name='"..pc.get_name().."';") end LeyendasMt2 1 Link to comment Share on other sites More sharing options...
LeyendasMt2 Posted February 24, 2013 Author Report Share Posted February 24, 2013 Gracias noa , pero no entiendo que quieres decir aki pc.get_empire() ~= npc.get_empire() Link to comment Share on other sites More sharing options...
Croqueta Posted February 24, 2013 Report Share Posted February 24, 2013 para si el jugador mata a uno de su reino que no lo cuenta Link to comment Share on other sites More sharing options...
Recommended Posts