Jump to content

Opening PM when i click the name.


Recommended Posts

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 1
  • Love 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)

 

Link to comment
Share on other sites

  • Premium

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.