|
You last visited: Today at 13:45
Advertisement
[SMALL_RELEASE]PvP-Quest-ranking
Discussion on [SMALL_RELEASE]PvP-Quest-ranking within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
09/24/2013, 14:33
|
#1
|
elite*gold: 0
Join Date: Jan 2012
Posts: 10
Received Thanks: 8
|
[SMALL_RELEASE]PvP-Quest-ranking
hello guys today i want share this pvp_quest with this forum
firts of all you have to creat one table in player.player with name :kills
after this you have to put my quest in your quests and in quest_list (quest name: pvp_quest.killerz)
then reboot the server and all its complete you can see the top 15 pvp in [Global,red kingdom,yellow kingdom,blue kingdom]
if you like this small release give thanks
Quote:
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]+1).."' WHERE name ='"..pc.get_name().."' LIMIT 1")
end
when 20093.chat."Raking PvP" begin
say("Hello player here you can see the top pvp rankings")
say("just select what you want to see:")
say_reward("Select:")
local sel = select("Global","Red Kingdom","Yellow Kingdom","Blue Kingdom","Back")
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("Faild plese try to connect this quest with your database")
table.foreachi(pp,function(i,l)
say(i.." - "..l[1].." - "..l[2])
end)
end
end
end
|
and add in fuctions: mysql_query (if you dont have it)
and in questlib.lua
Quote:
mysql_query = function(query)
local rt = io.open('CONFIG','r'):read('*all')
local pre= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+) %s(%S+).+','-h%1 -u%2 -p%3 -D%4')
math.randomseed(os.time())
local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2 ^10),{},{}
os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi)
for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi);
for i = 2, table.getn(t) do table.foreach(t[i],function(a,b)
out[i-1] = out[i-1] or {}
out[i-1][a] = b
out[t[1][a]] = out[t[1][a]] or {}
out[t[1][a]][i-1] = b
end) end
return out
end
|
|
|
|
09/24/2013, 14:53
|
#2
|
elite*gold: 0
Join Date: Dec 2009
Posts: 34
Received Thanks: 3
|
what do you mean with this? cyber-ga**rs.org/public/style_emoticons
|
|
|
09/24/2013, 14:57
|
#3
|
elite*gold: 0
Join Date: Jan 2012
Posts: 10
Received Thanks: 8
|
Quote:
Originally Posted by lukasplny
what do you mean with this? cyber-ga**rs.org/public/style_emoticons
|
its icon but i have delete it now.. :P
|
|
|
09/24/2013, 15:03
|
#4
|
elite*gold: 0
Join Date: Mar 2010
Posts: 296
Received Thanks: 86
|
not bad tanks^^
|
|
|
09/24/2013, 15:24
|
#5
|
elite*gold: 84
Join Date: May 2013
Posts: 478
Received Thanks: 234
|
Kommt da rein:
#closerequest
|
|
|
|
Similar Threads
|
Other Country Player Kill Ranking[First 3 Kill By RealFreak Quest]
09/23/2012 - Metin2 PServer Guides & Strategies - 26 Replies
Hello ,
My friend make it ;
quest koep begin
state start begin
when login begin
if global.getvarchar("rank1") == pc.get_name then
chat("You're first in kill other empire player's ranklist")
elseif global.getvarchar("rank2") == pc.get_name then
chat("You're second in kill other empire player's ranklist")
|
[Quest]Achievement System Ranking
03/12/2012 - Metin2 Private Server - 0 Replies
Hello,
first specification I don't know english I use the google translate:facepalm:
Is there Achievement System Ranking quest ?
I couldn't find them. :(
|
[Release]Ranking Quest
02/10/2012 - Metin2 PServer Guides & Strategies - 23 Replies
Nachdem hier schon meine unvollständige Quest publiziert wurde, habe ich mich 20 Minuten dran gesetzt und den Quest gefixt von allen Fehlern.
Habe keine Lust, dass jetzt wieder ein Noob herkommt und etwas von mir als sein Zeugs ausgibt.
Quest ordnet die User nicht nach der Exp Zahl, sondern nach der Zeit wann der User dieses Level wurde ein.
Auch werden GMs/GAs usw noch mitgewertet, d.h. wenn alle GMs im High Level rumlaufen ist wahrscheinlich eh die Hälfte der GMs bereits in der Liste...
|
[Quest]Ingame Ranking
09/23/2011 - Metin2 PServer Guides & Strategies - 22 Replies
Manche von euch kennen das Bild vllt schon,wenn nicht,
Klick mich hard.
Ich werde euch heute die Quest dazu Pub machen, Clientside werde ich nichts dazu Pub machen zumindest vorerst nicht,
Hier die Quest.
quest ingameranking begin
state start begin
when login with pc.is_gm() begin
|
All times are GMT +2. The time now is 13:45.
|
|