Game.py pc.getqf("aaa")

02/26/2014 13:25 barisdoga#1
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
02/26/2014 13:33 Benhero#2
you canīt use it there. It is a Quest Function!

Mfg. Benhero
02/26/2014 13:38 barisdoga#3
i dont know German.
can you help me please ?
02/26/2014 14:01 Zevion#4
Questions aren't allowed here, because this is a release-section.
-> [Only registered and activated users can see links. Click Here To Register...]

#moverequest
02/26/2014 14:02 ProfessorEnte#5
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.
02/28/2014 17:51 .aNNdii##6
#moved