|
You last visited: Today at 09:14
Advertisement
Reichschat
Discussion on Reichschat within the Metin2 Private Server forum part of the Metin2 category.
11/30/2014, 13:56
|
#1
|
elite*gold: 0
Join Date: Jun 2014
Posts: 211
Received Thanks: 5
|
Reichschat
Hey Com,
Bei mir klappt Reichschat ohne Probleme nur wenn ich in der "uichat.py" ändern will das Farbe dazu kommt schließt sich der Client bei Charauswahl,
Hier die uichat.py:
Quote:
PHP Code:
def __SendChatPacket(self, text, type):
# if text[0] == '/':
# if ENABLE_CHAT_COMMAND or constInfo.CONSOLE_ENABLE:
# pass
# else:
# return
if text == "(buff1)":
return
elif text == "(buff2)":
return
elif text == "(buff3)":
return
elif text == "(buff4)":
return
elif text == "(buff5)":
return
elif text == "(buff6)":
return
elif 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("[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]")!=-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, "Befehl nicht gefunden.")
else:
net.SendChatPacket(text, type)
|
|
|
|
11/30/2014, 13:57
|
#2
|
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,257
|
Gibt es nen syserr-Eintrag?
|
|
|
11/30/2014, 14:06
|
#3
|
elite*gold: 0
Join Date: Jun 2014
Posts: 211
Received Thanks: 5
|
Ja
Quote:
1130 14:11:13060 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted.
1130 14:11:17268 :: CreateFromMemoryFile: Cannot create texture
1130 14:11:26214 :: Traceback (most recent call last):
1130 14:11:26214 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:11:26215 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:11:26215 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:11:26215 :: NameError
1130 14:11:26215 :: :
1130 14:11:26215 :: global name 'player' is not defined
1130 14:11:26215 ::
1130 14:11:26215 :: Traceback (most recent call last):
1130 14:11:26215 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:11:26215 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:11:26215 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:11:26215 :: NameError
1130 14:11:26215 :: :
1130 14:11:26215 :: global name 'player' is not defined
1130 14:11:26215 ::
1130 14:11:27059 :: Traceback (most recent call last):
1130 14:11:27060 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:11:27060 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:11:27060 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:11:27060 :: NameError
1130 14:11:27060 :: :
1130 14:11:27060 :: global name 'player' is not defined
1130 14:11:27060 ::
1130 14:11:27060 :: Traceback (most recent call last):
1130 14:11:27060 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:11:27060 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:11:27060 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:11:27060 :: NameError
1130 14:11:27060 :: :
1130 14:11:27060 :: global name 'player' is not defined
1130 14:11:27060 ::
1130 14:11:27773 :: Traceback (most recent call last):
1130 14:11:27773 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:11:27773 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:11:27773 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:11:27773 :: NameError
1130 14:11:27773 :: :
1130 14:11:27773 :: global name 'player' is not defined
1130 14:11:27773 ::
1130 14:11:27773 :: Traceback (most recent call last):
1130 14:11:27773 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:11:27774 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:11:27774 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:11:27774 :: NameError
1130 14:11:27774 :: :
1130 14:11:27774 :: global name 'player' is not defined
1130 14:11:27774 ::
1130 14:11:29595 :: Traceback (most recent call last):
1130 14:11:29595 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:11:29595 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:11:29595 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:11:29595 :: NameError
1130 14:11:29595 :: :
1130 14:11:29595 :: global name 'player' is not defined
1130 14:11:29595 ::
1130 14:11:29595 :: Traceback (most recent call last):
1130 14:11:29595 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:11:29595 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:11:29595 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:11:29595 :: NameError
1130 14:11:29595 :: :
1130 14:11:29595 :: global name 'player' is not defined
1130 14:11:29595 ::
1130 14:12:32473 :: Traceback (most recent call last):
1130 14:12:32473 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:12:32473 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:12:32473 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:12:32473 :: NameError
1130 14:12:32473 :: :
1130 14:12:32473 :: global name 'player' is not defined
1130 14:12:32473 ::
1130 14:12:32474 :: Traceback (most recent call last):
1130 14:12:32474 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:12:32474 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:12:32474 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:12:32474 :: NameError
1130 14:12:32474 :: :
1130 14:12:32474 :: global name 'player' is not defined
1130 14:12:32474 ::
1130 14:12:34528 :: Traceback (most recent call last):
1130 14:12:34528 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:12:34528 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:12:34528 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:12:34528 :: NameError
1130 14:12:34528 :: :
1130 14:12:34528 :: global name 'player' is not defined
1130 14:12:34528 ::
1130 14:12:34528 :: Traceback (most recent call last):
1130 14:12:34528 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:12:34528 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:12:34528 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:12:34528 :: NameError
1130 14:12:34529 :: :
1130 14:12:34529 :: global name 'player' is not defined
1130 14:12:34529 ::
1130 14:12:39315 :: Traceback (most recent call last):
1130 14:12:39315 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:12:39315 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:12:39315 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:12:39315 :: NameError
1130 14:12:39315 :: :
1130 14:12:39315 :: global name 'player' is not defined
1130 14:12:39315 ::
1130 14:12:39315 :: Traceback (most recent call last):
1130 14:12:39315 :: File "uiChat.py", line 374, in OnIMEReturn
1130 14:12:39316 :: File "uiChat.py", line 272, in __SendShoutChatPacket
1130 14:12:39316 :: File "uiChat.py", line 231, in __SendChatPacket
1130 14:12:39316 :: NameError
1130 14:12:39316 :: :
1130 14:12:39316 :: global name 'player' is not defined
1130 14:12:39316 ::
|
|
|
|
11/30/2014, 15:02
|
#4
|
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,257
|
Setz mal an den Anfang der uichat.py ein
|
|
|
 |
Similar Threads
|
Reichschat
05/18/2015 - Metin2 Private Server - 9 Replies
Hallo,
habe vor Kurzem den Reichschat eingefügt.
Nun möchte ich aber, dass vor dem Namen im Rufchat das jeweilige Reich in der passenden Farbe dargestellt wird.
Weiß einer, was ich dafür in der uichat.py ändern muss?
Hab leider in der SuFu nichts gefunden.
Bsp:
Baum: xx
|
Gildenlager & reichschat?
10/24/2014 - Metin2 Private Server - 5 Replies
hi, finde keinen wirklichen reichschat...
der von nouce ist kein wirklicher, er ist soweit ich weiß nicht global, sondern zeigt nur die teamlerkürzel vorm Namen an...?
ebenso frage ich nach einem ENTBUGGTEN gildenlager, wo man keine items verdoppeln kann, habe auch keins gefunden..
ps: sufu habe ich genutzt ;)
|
[40k]Reichschat
10/14/2014 - Metin2 Private Server - 14 Replies
Huhu,
Das hier ist KEINE Anfrage nach Dateien oder sonst was..
Ich nutze die 40k Vanilla, und dort funktioniert der Reichschat nicht.
Gibt es die Möglichkeit auf der 40k Vanilla überhaupt?
MfG
|
Bug im Reichschat
09/02/2013 - Metin2 Private Server - 10 Replies
Ich benutze derzeit den Reichschat von Remix:
http://www.elitepvpers.com/forum/metin2-pserver-g uides-strategies/2406616-release-reichchat.html
Mein Fehler:
- Normale Spieler können nicht mehr rufen (!)
Weiters:
Ich möchte es eigentlich haben das zb. die ausm roten vor dem geschriebenen in rot haben etc. gab es dafür schon ein release?
|
[?]Reichschat .. Pythonfarbcodes?!?
08/22/2013 - Metin2 Private Server - 1 Replies
N'abend,
hab mal so einen Frage zum Reichschat und zwar wie man dort die Farbcodes ändert, welchen ich ändern muss und was ich dabei alles beachten muss.
"|cffffc700|H|h|cFFA7FFD4|H|h"
Wäre ganz cool wenn mir dabei jemand helfen könnt
|
All times are GMT +1. The time now is 09:16.
|
|