Register for your free account! | Forgot your password?

You last visited: Today at 23:18

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

Advertisement



[Release] Chat System

Discussion on [Release] Chat System within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Closed Thread
 
Old   #1
 
elite*gold: 140
Join Date: Jun 2011
Posts: 931
Received Thanks: 1,451
[Release] Chat System

Guten Tag,

Ich Release hier ein Chat System.
Was bringt es ? : Die rang Namen der Teamler stehen vor dem Text im Chat.

Hinweis: Farben müsst ihr beliebig ändern.
Es hat bis jetzt nur einen Gelb-Ton.

Ihr entpackt root.e**/e**
und öffnet die uichat.py

Ihr sucht nach:

Code:
def __SendChatPacket(self, text, type):

Dort steht sowas:
Code:
def __SendChatPacket(self, text, type):

		if net.IsChatInsultIn(text):
			chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
		else:
			net.SendChatPacket(text, type)

Das ersetzt ihr durch:

Code:
def __SendChatPacket(self, 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("[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)
Ein Screen:


Ein Danke an:
-Remix

Er hat mir dabei geholfen.


MfG Nouce
.Nouce is offline  
Thanks
41 Users
Old 02/04/2013, 18:55   #2

 
Aze /..'s Avatar
 
elite*gold: 220
Join Date: Oct 2011
Posts: 7,370
Received Thanks: 7,613
Krasse Sache!
Aze /.. is offline  
Thanks
1 User
Old 02/04/2013, 18:55   #3
 
[Patrick]'s Avatar
 
elite*gold: 50
Join Date: May 2012
Posts: 1,140
Received Thanks: 401
Mies, aber ok.
[Patrick] is offline  
Thanks
1 User
Old 02/04/2013, 18:56   #4
 
ToBii™'s Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 385
Received Thanks: 260
Traurig das man mein & Patricks Script bzw von anderen das Script nach Coded

Sowas hat Epvp nicht verdient

#Reported
ToBii™ is offline  
Old 02/04/2013, 18:57   #5
 
elite*gold: 120
Join Date: Mar 2009
Posts: 3,409
Received Thanks: 1,738
Quote:
Originally Posted by ToBii™ View Post
Traurig das man mein & Patricks Script nach Coded
#Reported
Wie soll man das nachcoden?
Man kennt euren Aufbau garnicht.

€: Wo ist es nachcoden, wenn man von Reichschat einfach Rot etc in Teamlernamen ändert?
.Remix is offline  
Old 02/04/2013, 19:00   #6
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
Wer hat es gecodet?
DasSchwarzeT is offline  
Old 02/04/2013, 19:01   #7
 
ToBii™'s Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 385
Received Thanks: 260
Schau mal wann ich meins gepostet habe und was du kommentiert hast & nun ist es pub ?!

Armselig
ToBii™ is offline  
Old 02/04/2013, 19:01   #8

 
vıo's Avatar
 
elite*gold: 0
The Black Market: 128/1/0
Join Date: Jun 2012
Posts: 1,768
Received Thanks: 356
Nicht Schlecht, danke dir
vıo is offline  
Old 02/04/2013, 19:01   #9
 
elite*gold: 140
Join Date: Jun 2011
Posts: 931
Received Thanks: 1,451
Quote:
Originally Posted by DasSchwarzeT View Post
Wer hat es gecodet?
Ich und .Remix
.Nouce is offline  
Thanks
1 User
Old 02/04/2013, 19:02   #10
 
elite*gold: 120
Join Date: Mar 2009
Posts: 3,409
Received Thanks: 1,738
Quote:
Originally Posted by ToBii™ View Post
Schau mal wann ich meins gepostet habe und was du kommentiert hast & nun ist es pub ?!

Armselig
Und ihr habt da irgendwie ein Patent drauf?
Außerdem ist unser System ohne Farben.

Wer kann beweisen, dass ihr sowas zu erst hattet?
.Remix is offline  
Thanks
2 Users
Old 02/04/2013, 19:09   #11
 
CookieKing's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 107
Received Thanks: 143
Quote:
Originally Posted by ToBii™ View Post
Traurig das man mein & Patricks Script bzw von anderen das Script nach Coded

Sowas hat Epvp nicht verdient

#Reported
Wie man Farben einbaut ist sowieso schon in diesem (Seite 1) public, das ganze mit dem Usernamen zu verbinden ist auch keine kunst mehr, wobei es da sogar schon mit Unterscheidung zwischen User und Serveradmin ist.

Somit war es eh schon zu 80% public, und diese Idee hatten schon viele vor euch.

somit Report unbegründet..


mfg
CookieKing is offline  
Thanks
2 Users
Old 02/05/2013, 13:51   #12
 
Aioriax's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 63
Received Thanks: 5
I didn't understand what is it for?
Aioriax is offline  
Old 02/05/2013, 14:04   #13
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
Quote:
Originally Posted by Aioriax View Post
I didn't understand what is it for?
You can see in the Global Chat who of the people who are writing is GA, SA, GM, etc pp
DasSchwarzeT is offline  
Old 02/05/2013, 16:56   #14
 
*~.ιηνιη¢ιвℓє.~*'s Avatar
 
elite*gold: 5
Join Date: Dec 2011
Posts: 1,823
Received Thanks: 951
Nouce, schnuqqi :P , Danke rein theoretisch könnte man das auch mit Reiche-Chat machen oder ?
*~.ιηνιη¢ιвℓє.~* is offline  
Old 02/05/2013, 17:47   #15
 
elite*gold: 5
Join Date: Oct 2010
Posts: 1,692
Received Thanks: 1,772
Code:
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:
Warum nicht so?
Code:
if text.find("/")!=-1:
DasKuchen is offline  
Closed Thread


Similar Threads Similar Threads
[B]Chat-System [S] 3 Reiche ein Ruf-Chat
09/03/2013 - Metin2 Trading - 5 Replies
Servus, wie ihr seht würde ich gerne Patricks & mein Chat-System gegen die Dif 3 Reiche 1 Ruf chat oder ein Script was es ermöglicht tauschen. Wer es kaufen oder tauschen möchte kann sich bei mir melden, alles weitere wird dann besprochen. Das ganze würde über einen Middleman gehen damit beide vor Betrug sicher sind. Bild vom Chat-System:
[Release] Taiwan Server files [New Global Chat,new party system,new guild system]
10/24/2012 - SRO PServer Guides & Releases - 80 Replies
those files used by creddy online :) USE IN YOUR OWN RISK server files --removed--- DB http://www.mediafire.com/?3ocz3a0adsazsf6



All times are GMT +1. The time now is 23:18.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.