Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 19:34

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

Advertisement



Quest Funktion Problem

Discussion on Quest Funktion Problem within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
OoKaMi_'s Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 269
Received Thanks: 96
Red face Quest Funktion Problem

Hey Com,

ich will gerne wissen wie ich die zwei Quest Funktionen in einer Quest einbauen kann.
Die "wartungsmodus" sollte An/Aus schaltbar sein per Quest.
Und Passwort sollte klar sein
Würde mich auf eine Antwort freuen

PHP Code:
function wartungsmodus(v)
    if 
== or == true then
        mysql_query
("UPDATE account.account SET account.status = 'SHUTDOWN' WHERE status = 'OK' and account.login NOT IN (SELECT mAccount FROM common.gmlist);")
    else
        
mysql_query("UPDATE account.account SET account.status = 'OK' WHERE status = 'SHUTDOWN' and account.login NOT IN (SELECT mAccount FROM common.gmlist);")
    
end
end 
PHP Code:
account account or {}
function 
account.set_pw(pw,ac)
    if 
pw == nil then error("Fehler... Passwort muss gesetzt werden!"end
    local ac 
ac or pc.get_account_id() 
    if 
type(ac) == "string" then
        mysql_query
("UPDATE player.player,account.account SET account.password = password("..string.format('%q',pw)..") WHERE account.id = player.account_id and player.name = '"..ac.."' LIMIT 1")
    elseif 
type(ac) == "number" then
        mysql_query
("UPDATE account.account SET account.password = password("..string.format('%q',pw)..") WHERE account.id = "..ac)
    
end
end 
MFG
OoKaMi_ is offline  
Old 05/20/2015, 15:38   #2
 
SolWayne's Avatar
 
elite*gold: 30
Join Date: Feb 2015
Posts: 362
Received Thanks: 58
- Falsche sektion

-

-
SolWayne is offline  
Old 05/20/2015, 15:41   #3
 
elite*gold: 5
Join Date: Mar 2015
Posts: 499
Received Thanks: 376
wartungsmodus(1) --> aktivieren
wartungsmodus(2) --> deaktivieren

account.set_pw(passwort) --> für den pc
account.set_pw(passwort,vid) --> für andere ( nicht sicher )
KΛIƬӨ is offline  
Reply


Similar Threads Similar Threads
[Quest] say Funktion
05/03/2015 - Metin2 Private Server - 12 Replies
Hey Com, wollte mal fragen, hat jemand eine "say Quest Funktion" die mitten dem Satz ein wort bund machen kann ? Z.b. Hallo elitepvpers, wir haben Wochenende ! Oder könnte mir jemand so eine Quest Funktion Schreiben ? Währe cool ;)
[QUEST]Funktion
07/10/2013 - Metin2 Private Server - 1 Replies
Hallo, ich suche 2 Funktionen eine um eine zeit zu setzen (60 minuten) auf dem ganzen Server für jeden blockiert ist und eine um abzufragen ob jemand schon eine andere quest abgeschlossen hat. vielen dank schonma
Quest funktion hilfe
09/27/2012 - Metin2 Private Server - 9 Replies
Hallo, könnte jemand mir mal helfen wie ich es schaffe per quest zu prüfen ob man gestorben ist? z.b. when kill with pc.is_pc() begin warp_to_village() end ich will machen, dass wenn man stirbt wird man nach map1 teleportiert.
[BRAUCHE]Quest Funktion
07/20/2010 - Metin2 Private Server - 3 Replies
Hy, ich machs mal kurz :D Wie ist der Quests Befehl dafür , dass überprüft wird aus welchem Reich der jeweilige Player ist? MFG
Quest Funktion Gesucht!
07/11/2010 - Metin2 Private Server - 0 Replies
Moin Leuts. Suche ne quest funktion um die Player (Char) Id & namen rauszufinden. Dammit meine ich nicht pc.get_name(). Gibt es sonst eine möglichkeit diese ID durch eine Quest funktion o.ä. rauszufinden? wenn ja welche? Freue mich über jede Antwort die mir weiterhilft. Greatz Benhero



All times are GMT +1. The time now is 19:34.


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.