Page 1 of 1

Change some output text

Posted: Fri Jul 16, 2010 5:49 am
by || Napolion ||
Is there a way to change the text in the main chat window before it get displayed ??

What I am trying to do is :
Change this output

Code: Select all

Player_1 say out of char: Hello !!
into this output

Code: Select all

Player_1 [OOC]: Hello !!

Re: Change some output text

Posted: Fri Jul 16, 2010 10:04 am
by pms
OnIncomingChat() with dsp_chat_no_events(). Look at MQ2Timestamp or MQ2LinkDB.

Re: Change some output text

Posted: Fri Jul 16, 2010 11:13 am
by KungFuHamster
I would use a plugin like that, as long as my logs aren't affected.

Re: Change some output text

Posted: Sat Jul 17, 2010 12:20 am
by dewey2461
Can you filter out text that would go to your main window?

If you can would be a GREAT addition to the dps type plugins. Turn on all the spam messages, intercept them to calculate DPS but don't pass them along to the client window. Avoids having the chat window box having to render all those messages.

Re: Change some output text

Posted: Sat Jul 17, 2010 12:34 am
by pms
return 1 to OnIncomingChat() but:

viewtopic.php?p=144308#p144308

Re: Change some output text

Posted: Sat Jul 17, 2010 12:14 pm
by KungFuHamster
pms wrote:return 1 to OnIncomingChat() but:

viewtopic.php?p=144308#p144308
That would be perfect; you could then have your plugin save the filtered DPS spam to yet another file so you can keep your parse logs and regular logs separate if you want! It's a win-win!