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(self, var1):
if var1.find("10")!=-1 and constInfo.GM_MARK == 0:
constInfo.GM_MARK = 1
be careful with the tabs in python
and voila.