Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 05:00

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

Advertisement



Empire-Shoutchat problem ..

Discussion on Empire-Shoutchat problem .. within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
|Elea|'s Avatar
 
elite*gold: 0
Join Date: Jan 2014
Posts: 24
Received Thanks: 1
Empire-Shoutchat problem ..

Hallo,


Ich habe ein Problem. Ich begann Empire-Shoutchat auf meinem Server. Aber das ist, wie es angezeigt wird. Diese Form:

Pseudo: [Prefix] Nachricht



Ich möchte:

[Prefix] Pseudo: Nachricht



Wie kann ich tun?

PHP Code:
            name player.GetName()
            if 
type == chat.CHAT_TYPE_SHOUT:
                if 
name.find("[") !=-1:
                    
empire_id "|cFFFF6600|H|h[Staff]|cFFA7FFD4|H|h"
                
else:
                    
empire_id str(net.GetEmpireID())
                    if 
empire_id == "1":
                        
empire_id "|cFFFF0000|H|h[Rouge]|cFFA7FFD4|H|h"
                    
elif empire_id == "2":
                        
empire_id "|cFFFFFF00|H|h[Jaune]|cFFA7FFD4|H|h"
                    
elif empire_id == "3":
                        
empire_id "|cFF0080FF|H|h[Bleu]|cFFA7FFD4|H|h"

                
text empire_id text

            net
.SendChatPacket(texttype
GAME 40250
|Elea| is offline  
Old 03/08/2014, 20:46   #2

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
PHP Code:
name player.GetName()
            if 
type == chat.CHAT_TYPE_SHOUT:
                if 
name.find("[") !=-1:
                    
empire_id "|cFFFF6600|H|h[Staff]|cFFA7FFD4|H|h"
                
else:
                    
empire_id str(net.GetEmpireID())
                    if 
empire_id == "1":
                        
empire_id "[Rouge]|cFFFF0000|H|h|cFFA7FFD4|H|h"
                    
if empire_id == "2":
                        
empire_id "[Jaune]|cFFFFFF00|H|h|cFFA7FFD4|H|h"
                    
if empire_id == "3":
                        
empire_id "[Bleu]|cFF0080FF|H|h|cFFA7FFD4|H|h"

                
text empire_id name text

            net
.SendChatPacket(texttype
probiers mal^^
rollback is offline  
Old 03/08/2014, 22:57   #3
 
|Elea|'s Avatar
 
elite*gold: 0
Join Date: Jan 2014
Posts: 24
Received Thanks: 1
@Cpt Tr: Same Problem ...:

Pseudo: [Prefix] Nachricht

@[Sensenmann]: Problem:

Pseudo: [Prefix]Pseudo: Nachricht

Vielen Dank an Sie!
Sorry, ich bin Französisch ...
|Elea| is offline  
Old 03/09/2014, 02:47   #4
 
elite*gold: 0
Join Date: Mar 2014
Posts: 7
Received Thanks: 0
Code:
def __SendChatPacket(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("[") !=-1:
                    empire_id = "|cFFFF6600|H|h[Staff]|cFFA7FFD4|H|h"
                else:
                    empire_id = str(net.GetEmpireID())
                    if empire_id == "1":
                        empire_id = "|cFFFF0000|H|h[Rouge]|cFFA7FFD4|H|h"
                    elif empire_id == "2":
                        empire_id = "|cFFFFFF00|H|h[Jaune]|cFFA7FFD4|H|h"
                    elif empire_id == "3":
                        empire_id = "|cFF0080FF|H|h[Bleu]|cFFA7FFD4|H|h"

                text = empire_id + name + text

            net.SendChatPacket(text, type)
That should be you your full code. Maybe it works if you delete the 'self' in 'def __SendChatPacket(self,text, type):'
and add '+ name' in the penultimate line.

If that doesn't work you need to find the code wich defines that the 'playername' gets printed out before and delete this part and add also the '+name' in the line 'text = empire_id + text'
Cpt Tr is offline  
Reply


Similar Threads Similar Threads
[Root EP1] Empire - Network (Chaos Of Empire)
08/28/2012 - Last Chaos Private Server - 180 Replies
http://i.epvpimg.com/EqmYb.png Willkommen bei Empire - Network Ich will euch gerne mal den neuen EP1 Server Vorstellen http://i.epvpimg.com/vzILf.png Der Server läuft auf einem root und ist daher 24/7 online Der Server hat non puplick files die nur 2 Server haben: ExtreamChaos Empire-Network (Chaos of Empire)
Empire Earth 1 [problem]
05/11/2011 - General Gaming Discussion - 8 Replies
Also, ich habe meine alte CD "EE" (empire earth) wider gefunden und will es mal wider zocken, aber jetzt habe ich ein problem. Ich habe Windows7 und es ist nur comportable mit windows xp, 95 usw. hauptsache nicht fuer win7. Ich kann das spiel starten und auch spielen, aber ich kann meine resourcen nicht sehen, also die anzeige ist leer, und mein maus icon bleibt auf anzeigen haengen...... gibt es da so ein patch oder uergentetwas womit ich das beheben kann ? habe schon das nets...
Empire Earth 3 Online Modus Problem
12/21/2010 - Technical Support - 25 Replies
Hey Leute hab mal ein Problem möchte Empire Earth online zocken aber der will am anfang von mir nen Gamespy Code jetzt die frage von wo ich den Code bekomme google bringt mir zumindestens kein Ergebis nur damits klar ist ich hab das Spiel Legal erworben



All times are GMT +1. The time now is 05:01.


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.