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
jluce7
Beginner


Joined: 20 Dec 2005
Posts: 22

PostPosted: Tue Apr 25, 2006 12:39 am   

SUB or PSUB help
 
I am trying to cut down on some spammy stuff from the MUD without overly slowing down the ZMud. With a skill called ALERTNESS I can see who enters a room next to me. The problem is, it's spammy.

How can I cut it down with SUB or PSUB. The actual end of the line differs with the length of the person's title and the room name.

The person's name shows up in ANSI color code 3 while the rest is regular text.

EXAMPLE:
Your enhanced senses inform you that Lyricicist Dele Windsong, The Poetic Genius/has entered Zanzibaar Street nearby.
OR
Your enhanced senses inform you that Strider Dontarion has entered Shallam Road /by Eastern Row nearby.
OR
Your enhanced senses inform you that Gorthain Gorndell, Gnomish Gangster has /entered Fish Street nearby.
OR
Basically any variant of such (The "/" is where the line breaks. I would like it to take out anything prior to the ansi color 3, then again to HAS ENTERED... I have tried it with no luck. A friend offered this...

#REGEX {Your enhanced senses inform you that(.*)(?: |\n)+(.*)has(?: |\n)+entered(?: |\n)+(.*)(?: |\n)+nearby\.} {#echo %1 %2 entered %3}

The problem is, it doesn't SUB out so it ends up even spammier (ECHO) and it echos 4 times adding 4 more lines of spam PER PERSON.

Any help would be helpful. Thanks.
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Tue Apr 25, 2006 3:28 am   
 
rofl echo is the wrong command. You said yourself #SUB

Realize its late i just got off a 16 hour shift and i read this hastily.

It would seem to me just try
#SUB %1 %2 entered %3 in the trigger commands. I will post tomorrow when i can read it through less blurry eyes but give that a go
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Tue Apr 25, 2006 8:10 am   
 
Personally i would just throw it all into a child window...

#TR {^Your enhanced senses inform you that} {#CAP Alertness;#GAG}
_________________
Discord: Shalimarwildcat
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