Jump to content

Recommended Posts

6 minutes ago, Kena said:

Hello guys, can you help me please? i want delete this "PM" in shout and i want if you click on name somebody, chat whisper will open PM. Thx  ❤ 1462902961.png

Upload uichat.py

Edited by Metin2 Dev
Core X - External 2 Internal
5 minutes ago, Kena said:

Sorry, my mistake. :rolleyes:

This is the hidden content, please

uiChat.py

Search 

Spoiler

	def __SendShoutChatPacket(self, text):

		if 1 == len(text):
			self.RunCloseEvent()
			return

		if app.GetTime() < self.lastShoutTime + 15:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeinfo.CHAT_SHOUT_LIMIT)
			self.__ResetChat()
			return

		a = net.GetServerInfo()
		Chitra = a[-3:]

		self.__SendChatPacket('|cFF00FF00|HChitra:'+str(player.GetName())+'|h[PM]|h|r: ' + text[1:], chat.CHAT_TYPE_SHOUT)

		self.__ResetChat()
     
		self.lastShoutTime = app.GetTime()

 

Replace

Spoiler

	def __SendShoutChatPacket(self, text):
		if 1==len(text):
			self.RunCloseEvent()
			return

		if app.GetTime() < self.lastShoutTime + 15:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_SHOUT_LIMIT)
			self.ResetChat()
			return

		self.SendChatPacket(text[1:], chat.CHAT_TYPE_SHOUT)
		self.ResetChat()

		self.lastShoutTime=app.GetTime()

 

 

  • Metin2 Dev 2
  • Love 2
9 minutes ago, Ikh said:

uiChat.py

Search 

  Reveal hidden contents


	def __SendShoutChatPacket(self, text):

		if 1 == len(text):
			self.RunCloseEvent()
			return

		if app.GetTime() < self.lastShoutTime + 15:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeinfo.CHAT_SHOUT_LIMIT)
			self.__ResetChat()
			return

		a = net.GetServerInfo()
		Chitra = a[-3:]

		self.__SendChatPacket('|cFF00FF00|HChitra:'+str(player.GetName())+'|h[PM]|h|r: ' + text[1:], chat.CHAT_TYPE_SHOUT)

		self.__ResetChat()
     
		self.lastShoutTime = app.GetTime()

 

Replace

  Reveal hidden contents


	def __SendShoutChatPacket(self, text):
		if 1==len(text):
			self.RunCloseEvent()
			return

		if app.GetTime() < self.lastShoutTime + 15:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_SHOUT_LIMIT)
			self.ResetChat()
			return

		self.SendChatPacket(text[1:], chat.CHAT_TYPE_SHOUT)
		self.ResetChat()

		self.lastShoutTime=app.GetTime()

 

 

Not working, i can't write on shout. I want to delete the button ' PM ' and when i click the someone name on shout, will open PM

12 minutes ago, Kena said:

Not working, i can't write on shout. I want to delete the button ' PM ' and when i click the someone name on shout, will open PM

Oh , sorry. Then just replace this line

		self.__SendChatPacket('|cFF00FF00|HChitra:'+str(player.GetName())+'|h[PM]|h|r: ' + text[1:], chat.CHAT_TYPE_SHOUT)

with this 

		self.__SendChatPacket('|cFF00FF00|HChitra:'+str(player.GetName())+ text[1:], chat.CHAT_TYPE_SHOUT)

 

  • Premium

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.