Register for your free account! | Forgot your password?

You last visited: Today at 02:38

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

Advertisement



Chat

Discussion on Chat within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
The2MrMetin2's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 980
Received Thanks: 12
Chat

Nach dem ich dieses Quick Privatchat eingefügt
wird alles was ich schreibe 2x gepostet im IG Chat
Screen :




uichat.py

syserr:
The2MrMetin2 is offline  
Old 12/29/2014, 15:30   #2
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
Liegt wohl daran, dass du
else:
net.SendChatPacket(text, type)
2mal drin hast. Wenn du zwei Sachen einbaust musst du die schon aufeinander abstimmen.
DasSchwarzeT is offline  
Old 12/29/2014, 15:31   #3
 
Tuora's Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 1,046
Received Thanks: 956
Lade uns mal deine unbearbeitete uichat.py hoch
Tuora is offline  
Old 12/29/2014, 15:37   #4
 
The2MrMetin2's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 980
Received Thanks: 12
The2MrMetin2 is offline  
Old 12/29/2014, 16:42   #5
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
Code:
    def __SendChatPacket(self, text, type): 
#        if text[0] == '/': 
#            if ENABLE_CHAT_COMMAND or constInfo.CONSOLE_ENABLE: 
#                pass 
#            else: 
#                return
		
		
		if text.find("@") == 0:
			user,msg = text[1:].split(" ", 1)
			if len(msg) > 0:
				net.SendWhisperPacket(user, msg)
				chat.AppendChat(chat.CHAT_TYPE_INFO, "Du hast dem User %s eine private Nachricht geschickt" % user)
			else:
				chat.AppendChat(chat.CHAT_TYPE_INFO, "Bitte gib eine Nachricht an.")
        elif text == "(buff1)": 
            return 
        elif text == "(buff2)": 
            return 
        elif text == "(buff3)": 
            return 
        elif text == "(pot1)": 
            return 
        elif text == "(pot2)": 
            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 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("[SA]")!=-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.") 
                     
                    #chat.AppendChat(chat.CHAT_TYPE_INFO, "Befehl nicht gefunden.") 
                else:  
                    net.SendChatPacket(text, type)
Einfach die gesamte Funktion ersetzen.
DasSchwarzeT is offline  
Old 12/29/2014, 17:16   #6
 
The2MrMetin2's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 980
Received Thanks: 12
so ?
The2MrMetin2 is offline  
Old 12/29/2014, 17:29   #7
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
d def __SendChatPacket(self, text, type):

da ist dir ein kleiner Fehler unterlaufen
def __SendChatPacket(self, text, type):
ist richtig
DasSchwarzeT is offline  
Old 12/29/2014, 17:53   #8
 
The2MrMetin2's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 980
Received Thanks: 12
Werde nach char auswahl jetzt gekickt

syserr
1229 17:54:15946 ::
networkModule.py(line:194) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:28) ?
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:15) ?
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - exceptions.IndentationError:unindent does not match any outer indentation level (line 854)

1229 17:54:15947 :: ================================================== ================================================== ========
1229 17:54:15947 :: Abort!!!!
The2MrMetin2 is offline  
Old 12/29/2014, 18:01   #9
 
Poccix's Avatar
 
elite*gold: 44
Join Date: Dec 2009
Posts: 1,696
Received Thanks: 3,833
Schick Skype Addy privat..
Poccix is offline  
Thanks
1 User
Old 12/29/2014, 18:05   #10
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
Quote:
Originally Posted by The2MrMetin2 View Post
Werde nach char auswahl jetzt gekickt

syserr
1229 17:54:15946 ::
networkModule.py(line:194) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:28) ?
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:15) ?
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - exceptions.IndentationError:unindent does not match any outer indentation level (line 854)

1229 17:54:15947 :: ================================================== ================================================== ========
1229 17:54:15947 :: Abort!!!!
Versuchs mal hiermit
Attached Files
File Type: rar uichat.rar (891 Bytes, 2 views)
DasSchwarzeT is offline  
Old 12/29/2014, 18:34   #11
 
The2MrMetin2's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 980
Received Thanks: 12
geht auch nicht

sysser
1229 18:34:14693 ::
networkModule.py(line:194) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:28) ?
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:15) ?
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - exceptions.SyntaxError:invalid syntax (line 1)

1229 18:34:14693 :: ================================================== ================================================== ========
1229 18:34:14693 :: Abort!!!!
The2MrMetin2 is offline  
Old 12/29/2014, 18:54   #12
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
Jo hab versehentlich keine TABs sondern Leerzeichen rauskopiert.
Attached Files
File Type: rar uichat.rar (880 Bytes, 0 views)
DasSchwarzeT is offline  
Reply


Similar Threads Similar Threads
[CHAT CLIENT] LoLChat/League Chat Beta V1 for Windows
08/16/2017 - League of Legends Hacks, Bots, Cheats & Exploits - 53 Replies
http://nielsoet.uphero.com/img/logolol.png Hello everyone, This is my second beta version of LoLChat or League Chat. It allows you to chat to your friends on League of Legends without the annoying, big, RAM-taking client. Features: Chat with all your friends See if your friens are offline
[Hilfe]Web Chat, Message beim Chat verlassen
03/17/2014 - Web Development - 3 Replies
Hey @ all, heute Nacht hat mich iwie ne Hummel gestochen, und ich hab kurzerhand mal ne Art Chat erstellt (aktuell noch alles SEHR Beta lastig :D) er funktioniert prinzipiell, fast 100% PHP Based (außer die Aktuallisierung, und 2-3 Spoiler) Nun möchte ich aber 2 Dinge: 1. Anzeige, wie viele Personen sich in einem Chat aufhalten 2. Anzeige/Nachricht, wenn jemand den Chat/Raum verlässt ich würde das Ganze einfach so machen, dass jeder nen Timestamp setzt, und wenn er nimmer antwortet,...
[AutoIt Chat System] Chat nur im lokalen Netzwerk verfügbar. Wie Global?
04/14/2013 - AutoIt - 1 Replies
Hallo epvp. Ich habe mich mal an ein kleines Chatsystem gesetzt. Ich bin jetzt soweit, dass dieses ohne Probleme im lokalen Netzwerk funktioniert. Jedoch möchte ich, dass der Chat auch für Leute die nicht drin sind funktioniert! Mein Server Script: #include <Array.au3> #include <EditConstants.au3> #include <WindowsConstants.au3> #Include <GuiEdit.au3> #include <TCP.au3>
[Release] BoI Helper (Chat Cmd's, Speed/Chat/Zoom hack)
03/01/2011 - Battle of the Immortals - 54 Replies
Hi! First of all, i know this will completely destroy the world chat cuz of colored flasching and flying texts everywhere but anyhow i wanted to release this little tool. I like to use some Chat Commands to color my Text when advertising sales or looking for a party etc. but im too lazy to write the commands for that again and again so i wrote this little Tool that generates the codes i need with a few clicks and puts it into the clipboard =) Features: Color: Give your Text a...
HackSearcher by _TradEmArk_ #Updated Version# [**CHAT ADDET!!!**] (Chat,Crosshair...)
02/27/2011 - WarRock Hacks, Bots, Cheats & Exploits - 14 Replies
http://img3.fotos-hochladen.net/uploads/unbenannt3 5jduc0oz9y.png Screen: http://img3.fotos-hochladen.net/uploads/hacksearc herzgkjdt7h4w.jpg Download: Download über Mediafire Download über Multiupload



All times are GMT +1. The time now is 02:38.


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.