Metin2 In Whisper Window (Color Message Attachment) + (Time) [PYTHON]

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Vanilla

Elite
Elite
Joined
Jan 28, 2019
Messages
839
Credits
1,190
Code:
Expand Collapse Copy
uiwhisper.py opens

# arat #

def SendWhisper(self):

# içinde #

net.SendWhisperPacket(self.targetName, text)
            self.chatLine.SetText("")

            chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, self.targetName, player.GetName() + " : " + text)

# değiştir #

SaatKac = time.strftime("%H:%M")
            net.SendWhisperPacket(self.targetName, " |cff00ccff[" + SaatKac + "]|cff00FF7F " + ":" + text)
            self.chatLine.SetText("")
            chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, self.targetName, player.GetName() +  ": " + " |cff00ccff[" + SaatKac + "]|cFFFF6060 " + ":" + text)


MUST BE

def SendWhisper(self):
        import time
        import player
        text = self.chatLine.GetText()
        textLength = len(text)
        if textLength > 0:
            if net.IsInsultIn(text):
                chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
                return
            SaatKac = time.strftime("%H:%M")
            net.SendWhisperPacket(self.targetName, " |cff00ccff[" + SaatKac + "]|cff00FF7F " + ":" + text)
            self.chatLine.SetText("")
            chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, self.targetName, player.GetName() +  ": " + " |cff00ccff[" + SaatKac + "]|cFFFF6060 " + ":" + text)
 
how can i change this color?

Code:
Expand Collapse Copy
cff00ccff

should be hex right? but 9 number/letters?
 
ok thanks :LOL: last question and then i'll go away, promise.

If i want to make txt color just as default (white), i should use:

Code:
Expand Collapse Copy
net.SendWhisperPacket(self.targetName, " |cff00ccff[" + SaatKac + "]|FFFFFF " + ":" + text)

or there is another way to just don't insert other hex?
 
If you change the hex you can use what color you want ... even white... select the hex for white and is white .. is simple..
 
That's not what i mean, but my fault, i don't speak english very well, anyway thanks a lot!
 
Back
Top