Guida [SYSTEM] SEE

Stato
Discussione chiusa ad ulteriori risposte.

Duccio&Uccia

Utente Electrum
17 Febbraio 2015
311
41
59
177
Questo sistema vi permette di vedere quando una persona visualizza.. Bhe come Whatsapp XD
Ql1NBv.png
Andate in constinfo.py
CONSOLE_ENABLE = 0


Dopo aggiungete:
WHISPER_GORULDU_LIST = []
WHISPER_GORULDU_TIME_LIST = {}

Andate in game.py e cercate:
def OnRecvWhisper(self, mode, name, line)
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)

In add uiwhisper.py :
import constInfo
import time
Dopo cercate:
def OpenWithTarget(self, targetName):
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 + "Visto" + "(" + str(localtime) + ")#goruldumuknk#")
constInfo.WHISPER_GORULDU_LIST.remove("#"+str(self.targetName)+"#")

Alla fine andate in locale/**/locale_game.txt e incollate questo
WHISPER_GORULDU[TAB]Visto.
 
  • Mi piace
Reazioni: Mareck
potresti sistemarlo con gli spazi giusti? perchè inserendolo mi chiede lente della provvidenza e pur mettendo quest'utlima non vedo nessun "Visto".
 
Sarebbe carino come system se ci fossero due variabili: Decidi se far visualizzare oppure Decidi se non far visualizzare,
non è sempre bello che gli altri sappiano che hai visualizzato il messaggio.
 
Stato
Discussione chiusa ad ulteriori risposte.