Change some output text

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

|| Napolion ||
a ghoul
a ghoul
Posts: 96
Joined: Sat Dec 28, 2002 7:45 am

Change some output text

Post by || Napolion || » Fri Jul 16, 2010 5:49 am

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 !!
|| Napolion ||

User avatar
pms
a grimling bloodguard
a grimling bloodguard
Posts: 663
Joined: Mon Jan 31, 2005 5:20 pm
Location: Internet, Earth
Contact:

Re: Change some output text

Post by pms » Fri Jul 16, 2010 10:04 am

OnIncomingChat() with dsp_chat_no_events(). Look at MQ2Timestamp or MQ2LinkDB.

User avatar
KungFuHamster
a snow griffon
a snow griffon
Posts: 337
Joined: Wed Oct 02, 2002 7:47 am

Re: Change some output text

Post by KungFuHamster » Fri Jul 16, 2010 11:13 am

I would use a plugin like that, as long as my logs aren't affected.
<dont_know_at_all> do what KungFuHamster said

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: Change some output text

Post by dewey2461 » Sat Jul 17, 2010 12:20 am

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.

User avatar
pms
a grimling bloodguard
a grimling bloodguard
Posts: 663
Joined: Mon Jan 31, 2005 5:20 pm
Location: Internet, Earth
Contact:

Re: Change some output text

Post by pms » Sat Jul 17, 2010 12:34 am

return 1 to OnIncomingChat() but:

viewtopic.php?p=144308#p144308

User avatar
KungFuHamster
a snow griffon
a snow griffon
Posts: 337
Joined: Wed Oct 02, 2002 7:47 am

Re: Change some output text

Post by KungFuHamster » Sat Jul 17, 2010 12:14 pm

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!
<dont_know_at_all> do what KungFuHamster said