[Release] Nick in shout as a hyperlink to the private message.

01/14/2013 23:35 Terenzo#1
Hey, in this topic I will explain step by step what to do to nick in shout was a hyperlink to the private message.

At the start we will be editing client, and thus unpack the roots.

Open uichat.py from root and look for:
Code:
	def __SendChatPacket(self, text, type):
		if net.IsChatInsultIn(text):
			chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
		else:
and under this paste it:
Code:
			playerName = player.GetName()
			if '/' == text[0] and playerName[0] == '[':
				net.SendChatPacket(text)
				return
			if chat.CHAT_TYPE_SHOUT == type:
				text = "|Hmsg:" + playerName + "|h" + playerName + "|h|r : " + text
			else:
				text = playerName + " : " + text
still at start the file right after import paste it:
Code:
import player
save the file.

Then open the interfacemodule.py and look for:
Code:
def MakeHyperlinkTooltip(self, hyperlink):
paste at the bottom of this def it:
Code:
			elif "msg" == type:
				self.OpenWhisperDialog(str(tokens[1]))
save the file.

We pack roots

Now remains us upload this diffs:

Original topic: [Only registered and activated users can see links. Click Here To Register...]

That's it. Regards
01/15/2013 00:02 Mi4uric3#2
"nick in shout was a hyperlink to the pw"
If I understand that right if you click on a name in shout-chat you see his password..? oO
01/15/2013 00:06 Terenzo#3
Quote:
Originally Posted by Mi4uric3 View Post
"nick in shout was a hyperlink to the pw"
If I understand that right if you click on a name in shout-chat you see his password..? oO
No password, just private message box... :D
01/15/2013 00:33 Mi4uric3#4
Quote:
Originally Posted by Terenzo View Post
No password, just private message box... :D
So you save plain userpasswords? not hashed?
01/15/2013 00:49 Terenzo#5
Quote:
Originally Posted by Mi4uric3 View Post
So you save plain userpasswords? not hashed?
When you click on the nickname in the chat window opens private message. Sorry for my english... :rolleyes:
01/15/2013 00:54 Mi4uric3#6
Quote:
Originally Posted by Terenzo View Post
When you click on the nickname in the chat window opens private message. Sorry for my english... :rolleyes:
Ah now I understand, sorry.
Thats quite useful :)

So if you click on a name in the shout-chat it will open a private-message window with this person :)
01/15/2013 09:09 thespeedyy#7
was bringt das kann mir das jemand auf deutsch erklären?
01/15/2013 09:12 ~LuckyStrike~#8
Quote:
Originally Posted by thespeedyy View Post
was bringt das kann mir das jemand auf deutsch erklären?
Habe es kurz überflogen, soweit Ich das jetzt verstanden habe,
sobald du auf den Namen eines Spielers klickst im Chat öffnet sich
eine Privat Nachricht um den Spieler den du angeklickt hast im Chat
(Öffentlicher chat mit "!" oder normaler chat).
01/15/2013 10:44 Pedr0caz&Saddler#9
Thanks.
01/15/2013 17:10 Teh Plex#10
Thank u
wird eingebaut =D
01/15/2013 17:16 Syndicаte#11
Also bitte, Englisch Grundkenntnisse >.>
Thanksgiven, really nice tool!
01/15/2013 19:39 cams45#12
With the GM announce (/n xxxx) the message apears in double.
01/16/2013 21:07 Terenzo#13
Quote:
Originally Posted by cams45 View Post
With the GM announce (/n xxxx) the message apears in double.
I forgot about one thing, add "return" under "net.SendChatPacket(text)". In topic is an example.. ;)
01/16/2013 23:37 iEllien#14
thanks :)
01/31/2013 11:26 stσям™#15
Very useful release, Thanks!

Greetings
stσям™