Register for your free account! | Forgot your password?

You last visited: Today at 22:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Questfrage !

Discussion on Questfrage ! within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1


 
.Onlyx3's Avatar
 
elite*gold: 0
The Black Market: 100/0/1
Join Date: Jun 2011
Posts: 3,382
Received Thanks: 1,796
Questfrage !

Hi

Wir sind grade dabei das Prestigesystem nachzubauen.
Es geht alles soweit bis auf die wichtigste Sache..

Das Resetten auf Level 1 !

Zum Test haben wir diese Quest benutzt
PHP Code:
quest PrestigeTest begin
    state start begin
        when 20061.chat
."PrestigeTest" with pc.is_gm() begin
            
if select("Test Starten","Abbrechen") == 1 then
                local name 
pc.get_name()
                
mysql_query("UPDATE account.account SET availDt = NOW() + INTERVAL 30 MINUTE WHERE id = (SELECT account_id FROM player.player WHERE name='"..name.."');")
                
mysql_query("UPDATE player.player SET level=1 WHERE name='"..name.."';")
                
cmdchat("exit")
            
end
        end
    end
end 
Man wird per Quest 30 Minuten gebannt und nach 30 Minuten automatisch entbannt. Die Quest setzt auch das Level auf 1 was ich auch sehe wenn ich in die Datenbank gehe. Das Ding ist nur, das der Server das Level kurz danach wieder auf 150 (Maxlevel) setzt obwohl ich nicht mit dem Char eingeloggt bin..
Kann mir einer eklären warum er es nicht auf Level 1 lässt sondern wieder aufs Maxlevel setzt?
Das Level 1 setzen geht ja, nur es setzt es halt nach paar Minuten wieder auf 150..

Danke
.Onlyx3 is offline  
Old 01/16/2013, 23:58   #2



 
elite*gold: 0
The Black Market: 265/0/0
Join Date: Jul 2012
Posts: 24,492
Received Thanks: 3,215

Frag da nach.
Sintiax is offline  
Old 01/17/2013, 00:11   #3


 
.Onlyx3's Avatar
 
elite*gold: 0
The Black Market: 100/0/1
Join Date: Jun 2011
Posts: 3,382
Received Thanks: 1,796
Die Quest an sich ist ja nicht Fehlerhaft sie funktioniert ja.
Vieleicht fehlt nur ne Function oder so^^
Und in dem Thread geht eh alles unter..
.Onlyx3 is offline  
Thanks
1 User
Old 07/17/2014, 15:08   #4
 
elite*gold: 0
Join Date: Jul 2014
Posts: 132
Received Thanks: 50
Same Prob ^^

Same Prob ^^
[SA]Vanya is offline  
Old 07/17/2014, 15:36   #5
 
elite*gold: 1
Join Date: Oct 2012
Posts: 1,036
Received Thanks: 801
Old Thread dont push it... The Problem is the Db Cache, decrease the the db core cache time and make a mysql event which has a higher update time then the db core cache. means: set per quest a integer in the player table, for example: (Update player.player set prestige_wait = 1 where prestige wait = 0) and then configure the mysql event. if your db core cache time is 5 minutes then let the mysql event set the level after 6 minutes.

sense of the mysql event?
here is the answer: If you get kicked and your account is locked for 30 minutes the db cache has the information that your player is still level 150, and it overwrite the level that was setted by the quest.

Best Solution: Set the DB Cache Time to 2 Minutes, lock the account for 20 minutes and set the mysql event cycle to 10 minutes or 8 minutes. AND remember to set the prestige_wait = 1 to 0 (it is possible in the mysql event too)
[SA]Tears aka.[BlackBite] is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
Questfrage
02/05/2013 - Metin2 Private Server - 7 Replies
Heyho Ich versuche zur Zeit etwas Questen zu lernen. Komme bis jetzt auch ganz gut vorran, aber eine Quest funktioniert nicht und ich weiß auch nicht, woran das liegen könnte quest lvl99 begin state start begin when levelup pc.get_level() == 99 begin notice_all(""..pc.get_name.." hat soeben das Level 99 erreicht!")
Questfrage
12/28/2012 - Metin2 Private Server - 1 Replies
Hi epvp Ich hab ne kleine frage und zwar wie kann man das machen das man eine bestimmte quest (quest b) erst erhällt wenn davor eine andere quest abgeschlossen wurde (quest a) quest a quest story_1 begin state start begin when login with pc.get_level() == 1 then say("Bla")
Questfrage
10/30/2012 - Metin2 Private Server - 0 Replies
Kann man via Quest die Max.HP/TP dauerhaft erhöhen? Wenn ja wie MFG
Questfrage
03/14/2012 - Metin2 Private Server - 2 Replies
Moin der Befehl pc.give_item2 sag aus, dass ein bestimmtes Item ausgegeben wird. Kann man das so einstellen, dass eine value für einen %-Wert einberechnet wird ? Ergo, dass man beim öffnen einer Kiste z.B. immer ein Item rauskommt, aber zusätzlich ein %-Wert besteht noch andere Item's zu bekommen ?
Questfrage
06/29/2011 - Last Chaos - 2 Replies
Hey Warum wird "die geheime Zeremonie" als Tagesquest angegeben, wenn man doch nur 3 gutscheine/Tag bekommt oder mache ich da i.was falsch?



All times are GMT +1. The time now is 22:00.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.