Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 17:28

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

Advertisement



NPC for getqf() and setqf()

Discussion on NPC for getqf() and setqf() within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2009
Posts: 103
Received Thanks: 53
Thumbs up NPC for getqf() and setqf()

Hi guys, I want do this;

Code:
npc.setqf("NPCode","FlagName",Value)
npc.getqf("NPCode","FlagName") --return Value
How we do this?

Thank you..
Good works.
poXavincS is offline  
Old 10/16/2013, 10:46   #2
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
I don't understand what you want to do, NPCs don't have quest flags?
.Shōgun is offline  
Old 10/16/2013, 10:53   #3
 
.ProjektX²'s Avatar
 
elite*gold: 0
Join Date: Oct 2013
Posts: 194
Received Thanks: 83
Why should a npc need a questflag?
This is what you can do:

pc.setqf('value',1)
pc.getqf('value') -> returns 1

pc.setf('questname','value',2)
pc.getf('questname','value') -> returns 2

Or if you rly need such a function, then save the variables of the npc in a .txt data on your server.
Then you can get and set variables.
.ProjektX² is offline  
Old 10/16/2013, 18:37   #4
 
elite*gold: 0
Join Date: Apr 2009
Posts: 103
Received Thanks: 53
Question

Quote:
Originally Posted by Uncorrupted View Post
I don't understand what you want to do, NPCs don't have quest flags?
My mysql function -> npc_get_hp(mob_id)

PHP Code:
npc.setqf("691","test",npc_get_hp(591))
if 
npc.getqf("691","test") <= //691 is dead? 
Killey npcs by player on as individual.
poXavincS is offline  
Reply


Similar Threads Similar Threads
Questbefehl pc.setqf
02/24/2012 - Metin2 Private Server - 0 Replies
Habs schon #closed
[ Mini-HowTo ] getqf, setqf & delqf
01/08/2012 - Metin2 PServer Guides & Strategies - 17 Replies
Hallo zusammen, ich hab über die Suchfunktion noch nichts derartiges gefunden. Ich werde es nun einfach mal kurz und einfach beschreiben: Über Quests werden Status auf den Charakter gesetzt. Mit den 3-Befehlen kann man die Status betrachten, löschen oder einen neuen hinzufügen. Nun stellt sich sicherlich jedem die Frage - Warum? Ganz einfach, falls man Quests testet oder ein blödes Beispiel, einem Spieler die Wartezeit beim Wechseln des Reiches entfernen möchte. Hier ein...



All times are GMT +2. The time now is 17:28.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.