|
help with changing output window text
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Yungen2003
USA (34 posts) bio
|
| Date |
Sat 06 Jan 2007 11:24 PM (UTC) [ quote
] |
| 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) [ quote
] |
| 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", "<(" & rounds & ") You hit %2 (" & damageDone & ")>"</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) [ quote
] |
| 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", "<(" & rounds & ") You hit %2 (" & damageDone & ")>"</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) [ quote
] |
| 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) [ quote
] |
| 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
Moderator |
| Date |
Reply #5 on Wed 17 Jan 2007 06:22 PM (UTC) [ quote
] Amended on Wed 17 Jan 2007 06:23 PM (UTC) by David Haley
|
| Message |
| He's saying that < should become < and > 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.
1,927 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )