aicea is the chat feature
Code:
## Chat
def OnRecvWhisper(self, mode, name, line):
if mode == chat.WHISPER_TYPE_GM:
self.interface.RegisterGameMasterName(name)
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)
def OnRecvWhisper(self, mode, name, line):
global afk
afk = time.strftime("%H:%M")
if mode == chat.WHISPER_TYPE_GM:
self.interface.RegisterGameMasterName(name)
if line[-25:] == "Imi cer scuze, sunt AFK!":
net.SendWhisperPacket(name, afk)
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)
return
if constInfo.AFK == 1 and line[-5:] != afk:
net.SendWhisperPacket(name, "Imi cer scuze, sunt AFK!")
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)
else:
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)

I apologize if I have not posted well and ask to be moved .






