Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 14:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[?]Reichschat .. Pythonfarbcodes?!?

Discussion on [?]Reichschat .. Pythonfarbcodes?!? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
deltous'fabius's Avatar
 
elite*gold: 84
Join Date: May 2013
Posts: 479
Received Thanks: 235
[?]Reichschat .. Pythonfarbcodes?!?

N'abend,

hab mal so einen Frage zum und zwar wie man dort die Farbcodes ändert, welchen ich ändern muss und was ich dabei alles beachten muss.

PHP Code:
"|cffffc700|H|h[Gameadmin]|cFFA7FFD4|H|h" 
Wäre ganz cool wenn mir dabei jemand helfen könnt

Regards
.Wolowitz
deltous'fabius is offline  
Old 08/22/2013, 10:11   #2
 
Megawurrrm's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 2
Dort steht in etwas so etwas:

PHP Code:
def __SendChatPacket(selftexttype):

        if 
net.IsChatInsultIn(text):
            
chat.AppendChat(chat.CHAT_TYPE_INFOlocale.CHAT_INSULT_STRING)
        else:
            
net.SendChatPacket(texttype
Und ersetzt es durch:

PHP Code:
def __SendChatPacket(selftexttype):
        if 
net.IsChatInsultIn(text):
            
chat.AppendChat(chat.CHAT_TYPE_INFOlocale.CHAT_INSULT_STRING)
        else:
            
name player.GetName()
            if 
type == chat.CHAT_TYPE_SHOUT:
                if 
name.find("[SA]") !=-1:
                    
empire_id "|cffffc700|H|h[Serveradmin]|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[Techniker]|cFFA7FFD4|H|h"
                
elif name.find("[DEV]") !=-1:
                    
empire_id "|cffffc700|H|h[Developer]|cFFA7FFD4|H|h"
                
elif name.find("[GM]") !=-1:
                    
empire_id "|cffffc700|H|h[Gamemaster]|cFFA7FFD4|H|h"
                
elif name.find("[TGM]") !=-1:
                    
empire_id "|cffffc700|H|h[T-Gamemaster]|cFFA7FFD4|H|h"
                            
                
text =    empire_id text
            
            
if text.find("[red]")!=-or text.find("[blue]")!=-or text.find("[lightblue]")!=-or text.find("[pink]")!=-or text.find("[green]")!=-or text.find("[yellow]")!=-or text.find("[black]")!=-or text.find("[gray]")!=-or text.find("[violett]")!=-or text.find("[brown]")!=-or text.find("[orange]")!=-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(texttype)
            else:
                if 
text.find("/m")!=-or  text.find("/effect")!=-or text.find("/view_equip")!=-or text.find("/priv")!=-or text.find("/x")!=-or text.find("/reload")!=-or text.find("/a")!=-or text.find("/kill")!=-or text.find("/a")!=-or text.find("/setskillother")!=-or text.find("/t")!=-or text.find("/n")!=-or text.find("/dc")!=-or text.find("/stun")!=-or text.find("/slow")!=-or text.find("/shut")!=-or text.find("/t")!=-1:
                    if 
text.find("8zheff")!=-1:
                        
net.SendChatPacket(texttype)
                    else:
                        
chat.AppendChat(chat.CHAT_TYPE_INFO"Befehl nicht gefunden.")

                else: 
                    
net.SendChatPacket(texttype





Wenn du eigenständig farben äändern möchtest kannst du dir AutoIT holen da gibt es "AutoIt Window Info (x86)" bei damit kannst farben suchen einfrieren und das sagt dir den Hex cod
Megawurrrm is offline  
Reply


Similar Threads Similar Threads
[B]Reichschat-Dif + uichat.py [S]PSC/Paypal
02/05/2013 - Metin2 Trading - 6 Replies
Ja hier biete ich euch die Metin2 Reichschat-Dif an + eine perfekt angepasste uichat.py für das System. Also Reichat = Alle 3 Reiche in einem Rufchat Addet mich in Skype für näheres: darkmoon232



All times are GMT +1. The time now is 14:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.