
Intrati in constinfo.py
Code: Select all
CONSOLE_ENABLE = 0Code: Select all
WHISPER_GORULDU_LIST = []
WHISPER_GORULDU_TIME_LIST = {}Code: Select all
def OnRecvWhisper(self, mode, name, line)Code: Select all
def OnRecvWhisper(self, mode, name, line):
if mode == chat.WHISPER_TYPE_GM:
self.interface.RegisterGameMasterName(name)
if line.find("#xsbyfatihbab34juwqysnmnsmqwnqmnsaxncvmwteqsmkuwhqnywqb#") != -1:
bol = line.split("#")
chat.AppendWhisper(mode, name, bol[1])
#self.interface.RecvWhisper(name)
return
else:
if not "#"+str(name)+"#" in constInfo.WHISPER_GORULDU_LIST:
constInfo.WHISPER_GORULDU_LIST.append("#"+str(name)+"#")
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name) Code: Select all
import constInfo
import time Code: Select all
def OpenWithTarget(self, targetName): Code: Select all
def OpenWithTarget(self, targetName):
chat.CreateWhisper(targetName)
chat.SetWhisperBoxSize(targetName, self.GetWidth() - 60, self.GetHeight() - 90)
self.chatLine.SetFocus()
self.titleName.SetText(targetName)
self.targetName = targetName
self.textRenderer.SetTargetName(targetName)
self.titleNameEdit.Hide()
self.ignoreButton.Hide()
if app.IsDevStage():
self.reportViolentWhisperButton.Show()
else:
self.reportViolentWhisperButton.Hide()
self.acceptButton.Hide()
self.gamemasterMark.Hide()
self.minimizeButton.Show()
if "#"+str(self.targetName)+"#" in constInfo.WHISPER_GORULDU_LIST:
goruldu_renk = {
1: '|cFF00FFFF|h'
}
goruldu_text = str(goruldu_renk[1])
localtime = time.strftime("%H:%M:%S")
net.SendWhisperPacket(self.targetName, "#" + goruldu_text + "Vazut" + "(" + str(localtime) + ")#goruldumuknk#")
constInfo.WHISPER_GORULDU_LIST.remove("#"+str(self.targetName)+"#") Spor la suferit cand iti da samanca seen.[/b]WHISPER_GORULDU Vazut.





