antiblock
diamwall
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Unk3n0w7

Ingame Pvp Raking

18 posts in this topic

antiblock
https://arwen2.global/
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

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

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

onde coloco isso tudo que tem ai escrito?

Share this post


Link to post
Share on other sites

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

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

Boas ainda nao percebi  uma cena!!!!!!!!!

 

vemos  em ke Npc as kills?

 

 

cumpz

Share this post


Link to post
Share on other sites

¬¬'

 

when 9001.chat."Raking PvP" begin

 

9001 = NPC u_u

Share this post


Link to post
Share on other sites

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

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now