|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: Sun May 07, 2006 4:15 pm
Mapper to recognize my prompt |
Start of my prompt would look like this in perl:
^[\d+\:\d+\'\d+]
..as in, it always start with a time stamp sended from mud.
Problem is that tafter that, the prompt varies lot as the mud can send short scores about what has happened to my hps gold expereince ect.
Any way i could use a universal prompt based on that time stamp? |
|
_________________ BatMUD Best MMORPG around since 1990 telnet://bat.org:23
~ Magic & Mind beats Chrome & Meat anytime ~
Pattern(s) in PERL. Using Cmud 1.34/2.09 & BatClient. |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Mon May 08, 2006 3:08 pm |
Well if all of the information in the prompt is always on it's own line then you could use a wildcard to capture everything to the end of the line. Then you could process what the wildcard held with ifs to extract the relevant info.
If other mud text appeared along with the prompt info you could probably still do it but I suspect that the amount of processing with ifs would be a huge nightmare. |
|
_________________ Taz :) |
|
|
|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: Tue May 09, 2006 1:07 am |
...i think you got the point bit wrong.
In configuration in mapper, there is a option to define your prompt. Problem is that my prompt keeps changing except the begining of it. This results that when im mappign a area, the mapper gets room descriptions all wrong. |
|
_________________ BatMUD Best MMORPG around since 1990 telnet://bat.org:23
~ Magic & Mind beats Chrome & Meat anytime ~
Pattern(s) in PERL. Using Cmud 1.34/2.09 & BatClient. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue May 09, 2006 3:30 am |
My guess would be to use the anything wildcard. Since it looks like regex, I can't tell you what it is. In Zscript, though, it's *. If that doesn't work, create at least one trigger that matches your prompt and stuff a #TAG command into it. Reconfigure so that ZMud can find your new #tag trigger, and ZMud's prompt problem should go away.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|