help with changing output window text

Posted by Yungen2003 on Sat 06 Jan 2007 11:24 PM — 6 posts, 23,358 views.

USA #0
ok i want the message to look like this to cut the spam i play a heavy pk mud and we do get alot of battle spam

<(18) You hit a Brigand (54,326)> <== example of what i would like it to show

so basically its

<(number of rounds you hit) you hit players name or mobs name (amount of damage you deal>

now if they hit you it should be like

<players name hits you (number of rounds)for (amount of damage)>

this is what it currently shows

(10) You hit A brigand doing Wild, RADICAL damage (50441) if you hit them

and

(10) A brigand hits you doing Wild, Radical damage (50441)

any ideas?
USA #1
If I understand what you're saying, you want to replace this line:
(10) You hit A brigand doing Wild, RADICAL damage (50441)

with

<(10) You hit A brigand (50,441)>

(at least in one case).

Here's a trigger that does that for you:

<triggers>
  <trigger
   enabled="y"
   match="^\(([0-9]+?)\) You hit (.*?) doing (.*?) damage \(([0-9]+?)\)$"
   omit_from_log="y"
   omit_from_output="y"
   regexp="y"
   send_to="14"
   sequence="100"
  >
  <send>damageDone = FormatNumber(%4, 0)
rounds = FormatNumber(%1, 0)
world.colournote "silver", "black", "&lt;(" &amp; rounds &amp; ") You hit %2 (" &amp; damageDone &amp; ")&gt;"</send>
  </trigger>
</triggers>


This uses VBScript, which you must have enabled.

I'm not exactly sure what you meant by when they do damage to you (I didn't catch all the strings), but you should be able to figure it out from there.

Matt
USA #2
I was just looking over this again, and not sure how to prevent the message board from changing html special chars into their equivs, so lets try this again.

You'll need to update this line:

world.colournote "silver", "black", "&lt;(" &amp; rounds &amp; ") You hit %2 (" &amp; damageDone &amp; ")&gt;"</send>


Anywhere you see a ampersand lt semicolon, that is the opening carot. Conversly, ampersand gt semicolon is the closing carot.

Ampersand amp semicolon is an ampersand. Hopefully that made sense. If you don't fix this, the line will error.

Regards,
Matt
USA #3
im sorry i didnt understand the last message actually on what i needed to fix
USA #4
.:gentle bump:.

i was wondering if anyone could clarify what he meant...im sorry i didnt exactly catch it

i know what an ampersand sign is and all but still didnt exactly understand what i need to fix
USA #5
He's saying that &lt; should become < and &gt; should become >.