[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  help with changing output window text
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

help with changing output window text

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


Posted by Yungen2003   USA  (34 posts)  [Biography] 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
[Go to top] top

Posted by MattMc   USA  (54 posts)  [Biography] 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
[Go to top] top

Posted by MattMc   USA  (54 posts)  [Biography] 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
[Go to top] top

Posted by Yungen2003   USA  (34 posts)  [Biography] 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
[Go to top] top

Posted by Yungen2003   USA  (34 posts)  [Biography] 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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] 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.


4,231 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]