Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 21:45

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

Advertisement



Game.py pc.getqf("aaa")

Discussion on Game.py pc.getqf("aaa") within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 34
Received Thanks: 5
Game.py pc.getqf("aaa")

Hi guys . i didnt post on questions.
because no one doesnt help me

how can i use this command pc.getqf("aaa") in game.py file

like this

if pc.getqf("aaa").find("10")!=-1 and constInfo.GM_MARK == 0:
constInfo.GM_MARK = 1
barisdoga is offline  
Old 02/26/2014, 13:33   #2


 
Benhero's Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 2,629
Received Thanks: 1,636
you canīt use it there. It is a Quest Function!

Mfg. Benhero
Benhero is offline  
Old 02/26/2014, 13:38   #3
 
elite*gold: 0
Join Date: Feb 2012
Posts: 34
Received Thanks: 5
i dont know German.
can you help me please ?
barisdoga is offline  
Old 02/26/2014, 14:01   #4


 
Zevion's Avatar
 
elite*gold: 906
Join Date: Sep 2009
Posts: 17,295
Received Thanks: 4,399
Questions aren't allowed here, because this is a release-section.
->

#moverequest
Zevion is offline  
Old 02/26/2014, 14:02   #5
 
elite*gold: 2
Join Date: Jun 2013
Posts: 1,063
Received Thanks: 1,725
Questpart:
PHP Code:
quest test begin
    state start begin
        when 20001.chat
.'test' begin
            local var1 
pc.getqf('aaa')
            
cmdchat('TEST '..var1)
        
end
    end
end 
Clientpart:
Go to root -> game.py
Search for:
PHP Code:
def __ServerCommand_Build(self): 
and add:
PHP Code:
"TEST"            self.testfunction
Then go to the end of the file and insert:
PHP Code:
    def testfunction(selfvar1):
        if 
var1.find("10")!=-and constInfo.GM_MARK == 0:
            
constInfo.GM_MARK 
be careful with the tabs in python
and voila.
ProfessorEnte is offline  
Thanks
1 User
Old 02/28/2014, 17:51   #6



 
.aNNdii#'s Avatar
 
elite*gold: 1
Join Date: Aug 2008
Posts: 7,744
Received Thanks: 3,606
Arrow Metin2 PServer Guides & Strategies -> Metin2 PServer - Discussions / Questions

#moved
.aNNdii# is offline  
Closed Thread




All times are GMT +2. The time now is 21:45.


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.