|
Halsafar Newbie
Joined: 17 Jul 2006 Posts: 5
|
Posted: Mon Jul 17, 2006 10:22 pm
HTML Parsing of MUD text |
I am playing AncientAnguish again (its been years). I decided to try ZMUD and maybe even purchase, however it seems simple things do not come easy in this program.
If I am in a party you can configure the "party line" to be a specific color via the MUD itself. So now when the MUD send any party text it starts with: <font fgcolor="#...">TEXT</font>
Is there ANY way at all I can have zMUD parse this and actually change the foreground color for that line? |
|
|
|
Halsafar Newbie
Joined: 17 Jul 2006 Posts: 5
|
Posted: Mon Jul 17, 2006 10:31 pm |
oh to add.
yes Ancient Anguish is pueblo ready.
yes it can be disabled and I will no longer get the unparsed HTML tags in my text but that is not wut i want. ZMUD should be capable of dealing with this. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Jul 17, 2006 10:39 pm |
zMud is supposed to handle peublo, but it might be off, or they they may have added/changed the tags in the protocol. You can also take a look at this page http://www.zuggsoft.com/zmud/mxp.htm to see what might be off.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Halsafar Newbie
Joined: 17 Jul 2006 Posts: 5
|
Posted: Mon Jul 17, 2006 10:44 pm |
Yes I've been scanning that page and help pages rather vigoriously all afternoon. I have found nothing to point me in a direction. I have checked the settings and it sure is all turned on, everything Pueblo and MXP related is turned on,
Clickable links (like clickable exits) alll work fine, it seems to be just the color.
Is there anyway I can have it parse this syntax:
<font fgcolor="#colorhex"> Party line text </font> |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Jul 17, 2006 11:04 pm |
Try this.
Code: |
#TRIGGER {~<font fgcolor="(#%a)">(*)</font>} {#SUB ~<color %colorname(%1)>%2~</color>}
|
|
|
_________________ Asati di tempari! |
|
|
|
Halsafar Newbie
Joined: 17 Jul 2006 Posts: 5
|
Posted: Tue Jul 18, 2006 3:35 pm |
I tried that, verified that the trigger was correctly added, no solution.
From the looks of the trigger, even though I am unfamiliar with the scripting in ZMUD it looks as if it should work or at least on the right track. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Tue Jul 18, 2006 6:13 pm |
Have you tried sample text from your MUD to make sure the pattern matches? I did it based on the sample you posted so it might require a bit of tweaking.
|
|
_________________ Asati di tempari! |
|
|
|
Halsafar Newbie
Joined: 17 Jul 2006 Posts: 5
|
Posted: Wed Jul 19, 2006 3:27 am |
</font><font fgcolor="#0000FF"><Homer> Halsafar : hi
</font>
Thats wut arrives for all party messages. The "<Homer>" is the party name and is part of the text. |
|
|
|
|
|