Hikayeler

Reklam vermek için turkmmo@gmail.com

MaviAyGames | Genel sohbet - Renkli

MaviAy44

Emre Kırıcı
Telefon Numarası Onaylanmış Üye TC Kimlik Numarası Doğrulanmış Üye
Yönetici
Turnuva
Yarışma
Katılım
16 Tem 2019
Konular
714
Mesajlar
3,540
Online süresi
6ay 20g
Reaksiyon Skoru
2,107
Altın Konu
34
Başarım Puanı
309
TM Yaşı
6 Yıl 9 Ay 9 Gün
MmoLira
26,224
DevLira
122

Metin2 EP, Valorant VP dahil tüm oyun ürünlerini en uygun fiyatlarla bulabilir, Item ve Karakterlerinizi hızlıca satabilirsiniz. HEMEN TIKLA!

uichat.py içerisinde:

Arat:
Kod:
def __SendChatPacket(self, text, type):

                if net.IsChatInsultIn(text):
                        chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
                else:
                        net.SendChatPacket(text, type)

Değiştir:

Kod:
def __SendChatPacket(self, text, type):
                if net.IsChatInsultIn(text):
                        chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
                else:
                        name = player.GetName()
                        if type == chat.CHAT_TYPE_SHOUT:
                                if name.find("[GM]") !=-1:
                                        empire_id = "|cffffc700|H|h[GameMaster]|cFFA7FFD4|H|h"
                                elif name.find("[GA]") !=-1:
                                        empire_id = "|cffffc700|H|h[GameAdmin]|cFFA7FFD4|H|h"
                                elif name.find("[TEC]") !=-1:
                                        empire_id = "|cffffc700|H|h[TEKNIKER]|cFFA7FFD4|H|h"
                                elif name.find("[DEV]") !=-1:
                                        empire_id = "|cffffc700|H|h[Developer]|cFFA7FFD4|H|h"
                                elif name.find("[KL]") !=-1:
                                        empire_id = "|cffffc700|H|h[KRALONCA]|cFFA7FFD4|H|h"
                                elif name.find("[KRAL]") !=-1:
                                        empire_id = "|cffffc700|H|h[KRAL]|cFFA7FFD4|H|h"
                                                    
                                text =  empire_id + text
                    
                        if text.find("[red]")!=-1 or text.find("[blue]")!=-1 or text.find("[lightblue]")!=-1 or text.find("[pink]")!=-1 or text.find("[green]")!=-1 or text.find("[yellow]")!=-1 or text.find("[black]")!=-1 or text.find("[gray]")!=-1 or text.find("[violett]")!=-1 or text.find("[brown]")!=-1 or text.find("[orange]")!=-1 or text.find("[gold]")!=-1:
                                text = text.replace('[blue]', '|cFF0080FF|H|h')
                                text = text.replace('[lightblue]', '|cFF00FFFF|H|h')
                                text = text.replace('[pink]', '|cFFFF00FF|H|h')
                                text = text.replace('[green]', '|cFF00FF00|H|h')
                        if name.find("[")!=-1:
                                text = text.replace('[brown]', '|cFF804000|H|h')
                                text = text.replace('[black]', '|cFF000000|H|h')
                                text = text.replace('[gray]', '|cFFC0C0C0|H|h')
                                text = text.replace('[yellow]', '|cFFFFFF00|H|h')
                                text = text.replace('[violett]', '|cFF8000FF|H|h')
                                text = text.replace('[orange]', '|cFFFF8040|H|h')
                                text = text.replace('[/]', '|h|r')
                                if name.find("[")!=-1:
                                        text = text.replace('[gold]', '|cffffc700|H|h')
                                        text = text.replace('[red]', '|cFFFF0000|H|h')
                                net.SendChatPacket(text, type)
                        else:
                                if text.find("/m")!=-1 or  text.find("/effect")!=-1 or text.find("/view_equip")!=-1 or text.find("/priv")!=-1 or text.find("/x")!=-1 or text.find("/reload")!=-1 or text.find("/a")!=-1 or text.find("/kill")!=-1 or text.find("/a")!=-1 or text.find("/setskillother")!=-1 or text.find("/t")!=-1 or text.find("/n")!=-1 or text.find("/dc")!=-1 or text.find("/stun")!=-1 or text.find("/slow")!=-1 or text.find("/shut")!=-1 or text.find("/t")!=-1:
                                        if text.find("8zheff")!=-1:
                                                net.SendChatPacket(text, type)
                                        else:
                                                chat.AppendChat(chat.CHAT_TYPE_INFO, "Comanda nu a fost găsită.")

                                else:
                                        net.SendChatPacket(text, type)

b63a271f8c094599d00e7a3f78970829.png
 
Son düzenleme:
Alıntı olduğunu belirtseydin kendi sistemin gibi paylaşmışsın
 
Konu için teşekkürler
 
uichat.py içerisinde:

Arat:
Kod:
def __SendChatPacket(self, text, type):

                if net.IsChatInsultIn(text):
                        chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
                else:
                        net.SendChatPacket(text, type)

Değiştir:

Kod:
def __SendChatPacket(self, text, type):
                if net.IsChatInsultIn(text):
                        chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
                else:
                        name = player.GetName()
                        if type == chat.CHAT_TYPE_SHOUT:
                                if name.find("[GM]") !=-1:
                                        empire_id = "|cffffc700|H|h[GameMaster]|cFFA7FFD4|H|h"
                                elif name.find("[GA]") !=-1:
                                        empire_id = "|cffffc700|H|h[GameAdmin]|cFFA7FFD4|H|h"
                                elif name.find("[TEC]") !=-1:
                                        empire_id = "|cffffc700|H|h[TEKNIKER]|cFFA7FFD4|H|h"
                                elif name.find("[DEV]") !=-1:
                                        empire_id = "|cffffc700|H|h[Developer]|cFFA7FFD4|H|h"
                                elif name.find("[KL]") !=-1:
                                        empire_id = "|cffffc700|H|h[KRALONCA]|cFFA7FFD4|H|h"
                                elif name.find("[KRAL]") !=-1:
                                        empire_id = "|cffffc700|H|h[KRAL]|cFFA7FFD4|H|h"
                                                     
                                text =  empire_id + text
                     
                        if text.find("[red]")!=-1 or text.find("[blue]")!=-1 or text.find("[lightblue]")!=-1 or text.find("[pink]")!=-1 or text.find("[green]")!=-1 or text.find("[yellow]")!=-1 or text.find("[black]")!=-1 or text.find("[gray]")!=-1 or text.find("[violett]")!=-1 or text.find("[brown]")!=-1 or text.find("[orange]")!=-1 or text.find("[gold]")!=-1:
                                text = text.replace('[blue]', '|cFF0080FF|H|h')
                                text = text.replace('[lightblue]', '|cFF00FFFF|H|h')
                                text = text.replace('[pink]', '|cFFFF00FF|H|h')
                                text = text.replace('[green]', '|cFF00FF00|H|h')
                        if name.find("[")!=-1:
                                text = text.replace('[brown]', '|cFF804000|H|h')
                                text = text.replace('[black]', '|cFF000000|H|h')
                                text = text.replace('[gray]', '|cFFC0C0C0|H|h')
                                text = text.replace('[yellow]', '|cFFFFFF00|H|h')
                                text = text.replace('[violett]', '|cFF8000FF|H|h')
                                text = text.replace('[orange]', '|cFFFF8040|H|h')
                                text = text.replace('[/]', '|h|r')
                                if name.find("[")!=-1:
                                        text = text.replace('[gold]', '|cffffc700|H|h')
                                        text = text.replace('[red]', '|cFFFF0000|H|h')
                                net.SendChatPacket(text, type)
                        else:
                                if text.find("/m")!=-1 or  text.find("/effect")!=-1 or text.find("/view_equip")!=-1 or text.find("/priv")!=-1 or text.find("/x")!=-1 or text.find("/reload")!=-1 or text.find("/a")!=-1 or text.find("/kill")!=-1 or text.find("/a")!=-1 or text.find("/setskillother")!=-1 or text.find("/t")!=-1 or text.find("/n")!=-1 or text.find("/dc")!=-1 or text.find("/stun")!=-1 or text.find("/slow")!=-1 or text.find("/shut")!=-1 or text.find("/t")!=-1:
                                        if text.find("8zheff")!=-1:
                                                net.SendChatPacket(text, type)
                                        else:
                                                chat.AppendChat(chat.CHAT_TYPE_INFO, "Comanda nu a fost găsită.")

                                else:
                                        net.SendChatPacket(text, type)

Test edildi ama tüm üyeler kullana biliyor güzel bişey aslında @MaviAy44 alıntı oldunuda belirte bilirmiyiz konuya. İYİ FORUMLAR
 

Şu an konuyu görüntüleyenler (Toplam : 1, Üye: 0, Misafir: 1)

Geri
Üst