|
You last visited: Today at 05:08
Advertisement
[HILFE] Chat Problem
Discussion on [HILFE] Chat Problem within the Metin2 Private Server forum part of the Metin2 category.
01/16/2016, 22:18
|
#1
|
Trade Restricted
elite*gold: 0
Join Date: Jun 2013
Posts: 1,332
Received Thanks: 534
|
[HILFE] Chat Problem
Hallo Liebe Community,
und und zwar hab ich vorhin schon ein Thread aufgemacht um befehle zu verbieten:
hat alles geklappt wie ich es jetzt wollte aber wenn ich jetzt was normales in den chat schreibe kommt das doppelt also wenn ich ein s schreibe und abschicke ist das 2x im chat wie kann ich das wieder fixxen ? und in der syserr ist kein fehler.
|
|
|
01/17/2016, 04:04
|
#2
|
elite*gold: 1
Join Date: Jun 2012
Posts: 2,207
Received Thanks: 488
|
Quote:
Originally Posted by Bostanin Edhe
Hallo Liebe Community,
und und zwar hab ich vorhin schon ein Thread aufgemacht um befehle zu verbieten:
hat alles geklappt wie ich es jetzt wollte aber wenn ich jetzt was normales in den chat schreibe kommt das doppelt also wenn ich ein s schreibe und abschicke ist das 2x im chat wie kann ich das wieder fixxen ? und in der syserr ist kein fehler.
|
Kannst du mal den Inhalt deiner uichat.py von
Code:
def __SendChatPacket(self, text, type):
bis zum nächsten def .. posten?
|
|
|
01/17/2016, 12:05
|
#3
|
Trade Restricted
elite*gold: 0
Join Date: Jun 2013
Posts: 1,332
Received Thanks: 534
|
Quote:
Originally Posted by Đurek
Kannst du mal den Inhalt deiner uichat.py von
Code:
def __SendChatPacket(self, text, type):
bis zum nächsten def .. posten?
|
da ist inklusive die nächste def:
Code:
def __SendChatPacket(self, text, type):
if text == "(halbmondring)":
chat.AppendChat(chat.CHAT_TYPE_INFO, "Du bist kein VIP!")
return
elif text == "(vip)":
chat.AppendChat(chat.CHAT_TYPE_INFO, "Du bist kein VIP!")
return
else:
net.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 = "|cffffc700|H|h[Team]|cFFA7FFD4|H|h"
else:
empire_id = str(net.GetEmpireID())
if empire_id == "1":
empire_id = "|cFFFF0000|H|h[Rot]|cFFA7FFD4|H|h"
elif empire_id == "2":
empire_id = "|cFFFFFF00|H|h[Gelb]|cFFA7FFD4|H|h"
elif empire_id == "3":
empire_id = "|cFF0080FF|H|h[Blau]|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)
def __SendPartyChatPacket(self, text):
if 1 == len(text):
self.RunCloseEvent()
return
self.__SendChatPacket(text[1:], chat.CHAT_TYPE_PARTY)
self.__ResetChat()
|
|
|
01/17/2016, 13:24
|
#4
|
elite*gold: 1
Join Date: Jun 2012
Posts: 2,207
Received Thanks: 488
|
Du hast 2x net.SendChatPacket(text, type) drin.
Probier es mal so:
Code:
def __SendChatPacket(self, text, type):
if text == "(halbmondring)":
chat.AppendChat(chat.CHAT_TYPE_INFO, "Du bist kein VIP!")
return
elif text == "(vip)":
chat.AppendChat(chat.CHAT_TYPE_INFO, "Du bist kein VIP!")
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("[") !=-1:
empire_id = "|cffffc700|H|h[Team]|cFFA7FFD4|H|h"
else:
empire_id = str(net.GetEmpireID())
if empire_id == "1":
empire_id = "|cFFFF0000|H|h[Rot]|cFFA7FFD4|H|h"
elif empire_id == "2":
empire_id = "|cFFFFFF00|H|h[Gelb]|cFFA7FFD4|H|h"
elif empire_id == "3":
empire_id = "|cFF0080FF|H|h[Blau]|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)
|
|
|
01/17/2016, 14:11
|
#5
|
Trade Restricted
elite*gold: 0
Join Date: Jun 2013
Posts: 1,332
Received Thanks: 534
|
Quote:
Originally Posted by Đurek
Du hast 2x net.SendChatPacket(text, type) drin.
Probier es mal so:
Code:
def __SendChatPacket(self, text, type):
if text == "(halbmondring)":
chat.AppendChat(chat.CHAT_TYPE_INFO, "Du bist kein VIP!")
return
elif text == "(vip)":
chat.AppendChat(chat.CHAT_TYPE_INFO, "Du bist kein VIP!")
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("[") !=-1:
empire_id = "|cffffc700|H|h[Team]|cFFA7FFD4|H|h"
else:
empire_id = str(net.GetEmpireID())
if empire_id == "1":
empire_id = "|cFFFF0000|H|h[Rot]|cFFA7FFD4|H|h"
elif empire_id == "2":
empire_id = "|cFFFFFF00|H|h[Gelb]|cFFA7FFD4|H|h"
elif empire_id == "3":
empire_id = "|cFF0080FF|H|h[Blau]|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)
|
euda klappt danke dir zum 2.x haha <3 Fang dich an zu lieben <3
|
|
|
 |
Similar Threads
|
[Hilfe]Metin2 DE Client und GM-Chat Problem!
10/25/2011 - Metin2 Private Server - 4 Replies
Hallo,
Meine Probleme sind folgende:
Problem 1:
Ich möchte für meinen Server den 2011 Clienten von Metin2 DE verwenden.
Ich habe alles so gemacht wie in einem Video TuT in Youtube beschrieben.
Aber wenn ich mich einloggen will steht perament "Du wirst mit dem Server verbunden" da. Weis vielleicht jemand an was das liegen kann?
Problem 2:
|
[Hilfe] GM Chat Schrift Problem
10/17/2011 - Metin2 Private Server - 0 Replies
Hallo epvp bitte Hilft mir.
Ich habe für meinen Server einen GM Chat eingefügt.
Das GM Zeichen ist im Chatfenster und der Name wird bei einer PN Gelb angezeigt , aber die Schrift ist nicht Kursiv weder beim Schreiben noch beim PN Fenster wenn man eine Nachricht erhält, und beim schreiben mit einem Gamer ist sie nicht gelb und Kursiv sondern Rosa und normal.
Ich benutze den 2010er Client Version 1.3 von CranK
Bitte Hilft mir Epvps
:(
|
[HILFE]GM Chat Problem.
10/17/2011 - Metin2 Private Server - 2 Replies
Hallo,
ich habe ein Problem mit dem GM chat.
Ich habe das Tut befolgt:
http://www.elitepvpers.com/forum/metin2-pserver-g uides-strategies/1109398-how-gm-chat-mit-farbe-3.h tml]
Mein Problem ist nun das wenn ich meinen Clienten starte und mich einlogge schließt sich der Client.
Könnte mir da vielleicht jemand helfen?
Ist bei dem TuT ein GM zeichen im Chat auch dabei?
|
P-Server CHAT und GM CHAT /b /n Problem HILFE
11/07/2009 - Metin2 Private Server - 5 Replies
Hallo leute,
Also, seit dem ich Updates auf meinem PC insterlliert habe und den PC neugestartet habe, hat mein Server irgendein Problem bekommen. Wenn ich mich einlogge kann ich noch Items erstellen kämpfen usw.. außer in irgendeiner Form Chatten. So zB. wenn ich versuche was zu schreiben kommt der Satz halt nicht über dem Kopf oder im Chat und dann ist alles weg also kann keine Items erstellen und nur Attacken einsetzten MObs kann ich nicht töten, also so als ob das Internet dann weg wäre....
|
All times are GMT +1. The time now is 05:08.
|
|