Register for your free account! | Forgot your password?

You last visited: Today at 21:26

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

 

Game.py pc.getqf("aaa")

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 34
Received Thanks: 4
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   #2

 
elite*gold: 455
Join Date: Mar 2008
Posts: 2,533
Received Thanks: 1,596
you canīt use it there. It is a Quest Function!

Mfg. Benhero


Benhero is offline  
Old   #3
 
elite*gold: 0
Join Date: Feb 2012
Posts: 34
Received Thanks: 4
i dont know German.
can you help me please ?
barisdoga is offline  
Old   #4
Global Moderator



 
elite*gold: 402
Join Date: Sep 2012
Posts: 16,160
Received Thanks: 4,184
Questions aren't allowed here, because this is a release-section.
-> http://www.elitepvpers.com/forum/met...ons-questions/

#moverequest


Zevion is offline  
Old   #5
 
elite*gold: 2
Join Date: Jun 2013
Posts: 1,083
Received Thanks: 1,460
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   #6


 
elite*gold: 1
Join Date: Aug 2008
Posts: 7,729
Received Thanks: 3,591
Arrow Metin2 PServer Guides & Strategies -> Metin2 PServer - Discussions / Questions

#moved


.aNNdii# is offline  
Closed Thread



« Previous Thread | Next Thread »



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


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.