Hey,
I have several Worlds using PerlScript.
The worlds I connect to spam alot of 'raw code' to the Worlds, I need to create some way of only letting lines starting with ( be seen and a line with 7 M!C M!D
Thankyou,
Joe
Can you clarify if the spam is coming *from* the world (ie. the MUD) or are you sending it? The solution would be different in each case.
The spam is being recieved from the MUD - It's just raw output from the MUD which is sent all the time.
The simple solution would be to set up three triggers:
Trigger 1:
Match: (*
Sequence: 10
Trigger 2:
Match: 7 M!C M!D*
Sequence: 10
Trigger 3:
Match: *
Sequence: 20
Omit from output: checked
What this will do is omit everything from output, unless the two triggers with a lower sequence number fire first, in which case they will stop the third trigger from firing.
Thanx nick,
That works fine in some ways..
It removes any lines I dont need from being viewed on the output but the MUD World is still scrolling down as if it was still being shown but it just looks like a blank mud scrolling!
Helppp! :)
Blank lines are probably slipping through.
Go to the File -> Global Preferences -> General
and check the box "Regular expressions can match on an empty string" - see if that fixes it.
Nick,
That works a charm..
I have about 20 triggers on a MUD World.
All are sequence 100 except for * which is 110 and omitted from output.
All lines starting with (* are getting through also.
([ * whispers, "buying cp" to you. ] <-- This line gets through, for example, but - Since I added the * trigger, it gets through but doesn't seem to execute the script sub.. (PerlScript).. * has messed something up, that's for sure.
Thanx,
Joe