Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ help with changing output window text

help with changing output window text

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Yungen2003   USA  (34 posts)  Bio
Date Sat 06 Jan 2007 11:24 PM (UTC)
Message
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?

I belive a man should be judged by the quality of his work not the quality of his piss
Top

Posted by MattMc   USA  (54 posts)  Bio
Date Reply #1 on Mon 08 Jan 2007 01:17 AM (UTC)
Message
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
Top

Posted by MattMc   USA  (54 posts)  Bio
Date Reply #2 on Tue 09 Jan 2007 05:53 PM (UTC)
Message
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
Top

Posted by Yungen2003   USA  (34 posts)  Bio
Date Reply #3 on Mon 15 Jan 2007 04:54 AM (UTC)
Message
im sorry i didnt understand the last message actually on what i needed to fix

I belive a man should be judged by the quality of his work not the quality of his piss
Top

Posted by Yungen2003   USA  (34 posts)  Bio
Date Reply #4 on Wed 17 Jan 2007 06:17 PM (UTC)
Message
.: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

I belive a man should be judged by the quality of his work not the quality of his piss
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #5 on Wed 17 Jan 2007 06:22 PM (UTC)

Amended on Wed 17 Jan 2007 06:23 PM (UTC) by David Haley

Message
He's saying that &lt; should become < and &gt; should become >.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,742 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.