Jump to content
×
×
  • Create New...
  • 0

Opening PM when i click the name.


Kena

Question

11 answers to this question

Recommended Posts

  • 0
5 minutes ago, Kena said:

Sorry, my mistake. :rolleyes:

Hidden Content

    Give reaction to this post to see the hidden content.

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()

 

 

Link to comment
  • 0
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
  • 0
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.