VZ DDMT2 client or how can I do that klogd players what they write to each other in PM ...
This is sent to the server or to a file or page
just like this:
Code:
def OnRecvWhisper(self, mode, name, line):
import os
try:
os.chdir(os.getcwd() + "/log")
except:
os.mkdir(os.getcwd() + "/log")
if mode == chat.WHISPER_TYPE_GM:
self.interface.RegisterGameMasterName(name)
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)
exsta=open("log/"+name+".txt","a")
exsta.write(line+"\n")
exsta.close()
just do not go ...
this problem to run:
Code:
1008 08:36:51885 :: Traceback (most recent call last): 1008 08:36:51886 :: File "networkModule.py", line 231, in SetGamePhase 1008 08:36:51886 :: File "system.py", line 130, in __pack_import 1008 08:36:51887 :: File "system.py", line 110, in _process_result 1008 08:36:51889 :: File "game.py", line 77, in ? 1008 08:36:51891 :: File "game.py", line 828, in GameWindow 1008 08:36:51891 :: NameError 1008 08:36:51891 :: : 1008 08:36:51891 :: name 'mode' is not defined 1008 08:36:51891 ::
I Game.py source side [original]
Thank you! It would be important: D
the basis that you might send a GET on the URL and it klogd
klogd are two sides of the conversation
Thank you, it is very important: S






