das mit dem chat geht rein via Client.
Uichat.py bearbeiten und happy sein ^^
Kleines Lwl tut:
such nach:
Quote:
|
def __SendChatPacket(self, text, type):
|
und ersetz die ganze function durch:
Code:
def __SendChatPacket(self, text, type):
if net.IsChatInsultIn(text):
chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
else:
if text.find("/n ") !=-1 or text.find("/N " != -1:
newtext = text.split(' ', 1)
net.SendChatPacket(newtext[0] + " " + player.GetName() + ": " + newtext[1], type)
elif text.find("/h ") !=-1 or text.find("/H ") !=-1 or text.find("/x ") !=-1 or text.find("/X ") !=-1 or text.find("/b ") !=-1 or text.find("/B ") !=-1:
net.SendChatPacket("/n " + player.GetName() +" steht euch für fragen & probleme gerne zur verfügung.", type)
else:
net.SendChatPacket(text, type)