Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Halsafar
Newbie


Joined: 17 Jul 2006
Posts: 5

PostPosted: 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?
Reply with quote
Halsafar
Newbie


Joined: 17 Jul 2006
Posts: 5

PostPosted: 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.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
Halsafar
Newbie


Joined: 17 Jul 2006
Posts: 5

PostPosted: 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>
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Jul 17, 2006 11:04 pm   
 
Try this.

Code:
 #TRIGGER {~<font fgcolor="(#%a)">(*)</font>} {#SUB  ~<color %colorname(%1)>%2~</color>}
_________________
Asati di tempari!
Reply with quote
Halsafar
Newbie


Joined: 17 Jul 2006
Posts: 5

PostPosted: 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.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
Halsafar
Newbie


Joined: 17 Jul 2006
Posts: 5

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net