The MUD i play have a dedicated client, with some nice features (like visual map, clickable icons at the left of the description, etc).
To implement this, when it connect it sends a special string, and the server then "switches" from normal telnet to "dedicated client".
I'd like to keep this "dedicated" set using MUSH 'cause there's more infos sent from the server, but i need then to "convert" some of data received.
These is a list of the first thing i'd like to convert:
1) Line colors are no more ansi codes, but defined by "&#", where "#" is the initial of one of the standard color (so "&y" means a yellow font color. I learned how to "trap" that lines with a trigger, but how can i remove the "&#" part and replace it with the standard ANSI code?
2) The map is sent using non-ascii charachters. How can i "grab" them and send them to the (still to be made) mapping window?
3) How can i search for a string that begins with, say, - "AbCd - (the " char is part of the string) followed by 5 numbers, comma separated, and show only what follow the last comma in a new line?
(examples:
"AbCd-123,1,2,0,456345,This is the text i need to show
"AbCd-78,1,2,0,1234,This is another text i need to show
)
Thanks
To implement this, when it connect it sends a special string, and the server then "switches" from normal telnet to "dedicated client".
I'd like to keep this "dedicated" set using MUSH 'cause there's more infos sent from the server, but i need then to "convert" some of data received.
These is a list of the first thing i'd like to convert:
1) Line colors are no more ansi codes, but defined by "&#", where "#" is the initial of one of the standard color (so "&y" means a yellow font color. I learned how to "trap" that lines with a trigger, but how can i remove the "&#" part and replace it with the standard ANSI code?
2) The map is sent using non-ascii charachters. How can i "grab" them and send them to the (still to be made) mapping window?
3) How can i search for a string that begins with, say, - "AbCd - (the " char is part of the string) followed by 5 numbers, comma separated, and show only what follow the last comma in a new line?
(examples:
"AbCd-123,1,2,0,456345,This is the text i need to show
"AbCd-78,1,2,0,1234,This is another text i need to show
)
Thanks