[PYTHON] Sistem Seen

Vino cu o sugestie si noi o vom lua in calcul daca merita!
[MOD]Mistic

[PYTHON] Sistem Seen

Post by [MOD]Mistic » Mon Jul 11, 2016 6:48 pm

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]
Last edited by [MOD]Mistic on Mon Jul 11, 2016 8:04 pm, edited 1 time in total.

User avatar
[VIP]Anna
Posts: 237
Location: The Real Q.

Re: [PYTHON] Sistem Seen

Post by [VIP]Anna » Mon Jul 11, 2016 7:55 pm

:arrow: proooo :!: 8-)
-Brutally myself-

den1zLelew0w
Posts: 54

Re: [PYTHON] Sistem Seen

Post by den1zLelew0w » Mon Jul 11, 2016 8:09 pm

Nice, pro. :D :D :D

User avatar
[VIP]Sophieee
Posts: 3380
Location: → untouchable ←
Contact:

Re: [PYTHON] Sistem Seen

Post by [VIP]Sophieee » Mon Jul 11, 2016 9:01 pm

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.
Passe, passe, passera, la dernière restera

User avatar
[MOD]Lorena
Posts: 6718
Location: Leona♕❤⚘❤

Re: [PYTHON] Sistem Seen

Post by [MOD]Lorena » Mon Jul 11, 2016 9:14 pm

pro.
Image
"Şi nu mă las până nu-mi pun numele-n lumină
şi nu-i departe ziua-n care am să-ţi devin regină"
♥♥ El amor no se compra❤ se gana! ♥♥
Image
Image

User avatar
[GM]Lexx
Posts: 5884
Location: ▶ YouTube: Lexx Gaming
Contact:

Re: [PYTHON] Sistem Seen

Post by [GM]Lexx » Mon Jul 11, 2016 11:54 pm

Interesant, PRO!
Last edited by [GM]Lexx on Tue Jul 12, 2016 9:51 am, edited 2 times in total.
Image

CONTACT:
▶ Pe joc: [GM]Lexx / [Dn]Lexx / Lexx
▶ Discord: Lexx#7523
▶ Youtube: http://www.youtube.com/LexxGaming
▶ Facebook: https://www.facebook.com/lexx.gaming.75
▶ Server de Discord: https://dsc.gg/metin2steel


Image

User avatar
[Diva]Diabla
Posts: 8263
Contact:

Re: [PYTHON] Sistem Seen

Post by [Diva]Diabla » Tue Jul 12, 2016 3:14 am

pro : )

User avatar
[VIP]Maxuu
Posts: 519
Location: Tulcea
Contact:

Re: [PYTHON] Sistem Seen

Post by [VIP]Maxuu » Tue Jul 12, 2016 1:44 pm

Pro
Image

User avatar
Myriam
Posts: 234
Location: legends never die
Contact:

Re: [PYTHON] Sistem Seen

Post by Myriam » Tue Jul 12, 2016 3:27 pm

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
o banană,
două portocale,
tutti frutti

User avatar
[VIP]Sophieee
Posts: 3380
Location: → untouchable ←
Contact:

Re: [PYTHON] Sistem Seen

Post by [VIP]Sophieee » Mon Jul 18, 2016 9:13 pm

îmi plc avataru tău :lol: :lol:
Passe, passe, passera, la dernière restera

Post Reply

Return to “Sugestii si Sfaturi - Suggestions and Advices”