Page 1 of 3

[PYTHON] Sistem Seen

Posted: Mon Jul 11, 2016 6:48 pm
by [MOD]Mistic
Acest sistem iti arata cand un jucator ti-a vazut mesajul.

Image

Intrati in constinfo.py

Code: Select all

CONSOLE_ENABLE = 0
Doar sub aceasta se adaugă după cum urmează:

Code: Select all

WHISPER_GORULDU_LIST = []
WHISPER_GORULDU_TIME_LIST = {}
In game.py cautati:

Code: Select all

def OnRecvWhisper(self, mode, name, line)
Inlocuiti complet cu:

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) 
In uiwhisper.py adaugati:

Code: Select all

import constInfo
import time 
Cautati:

Code: Select all

def OpenWithTarget(self, targetName): 
Schimbati cu:

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)+"#") 
Adaugati in locale/de-tr-ro/locale_game.txt codul:
WHISPER_GORULDU Vazut.
Spor la suferit cand iti da samanca seen.[/b]

Re: [PYTHON] Sistem Seen

Posted: Mon Jul 11, 2016 7:55 pm
by [VIP]Anna
:arrow: proooo :!: 8-)

Re: [PYTHON] Sistem Seen

Posted: Mon Jul 11, 2016 8:09 pm
by den1zLelew0w
Nice, pro. :D :D :D

Re: [PYTHON] Sistem Seen

Posted: Mon Jul 11, 2016 9:01 pm
by [VIP]Sophieee
da păi nu o să le convină membrilor staff/disayer când o să vrea să se uite la cv mesaj și să nu răspundă...

:arrow: pro.

Re: [PYTHON] Sistem Seen

Posted: Mon Jul 11, 2016 9:14 pm
by [MOD]Lorena
pro.

Re: [PYTHON] Sistem Seen

Posted: Mon Jul 11, 2016 11:54 pm
by [GM]Lexx
Interesant, PRO!

Re: [PYTHON] Sistem Seen

Posted: Tue Jul 12, 2016 3:14 am
by [Diva]Diabla
pro : )

Re: [PYTHON] Sistem Seen

Posted: Tue Jul 12, 2016 1:44 pm
by [VIP]Maxuu
Pro

Re: [PYTHON] Sistem Seen

Posted: Tue Jul 12, 2016 3:27 pm
by Myriam
Imperfecşăn wrote:da păi nu o să le convină membrilor staff/disayer când o să vrea să se uite la cv mesaj și să nu răspundă...

:arrow: pro.
adv
pro

Re: [PYTHON] Sistem Seen

Posted: Mon Jul 18, 2016 9:13 pm
by [VIP]Sophieee
îmi plc avataru tău :lol: :lol: