View previous topic :: View next topic |
Author |
Message |
goofy
Joined: 09 Nov 2006 Posts: 54 Location: web
|
|
Back to top |
|
|
Davairus Implementor
Joined: 16 Jan 2004 Posts: 10356 Location: 0x0000
|
Posted: Mon Nov 24, 2014 2:17 am Post subject: |
|
|
read help color code, then do some find replaces? |
|
Back to top |
|
|
goofy
Joined: 09 Nov 2006 Posts: 54 Location: web
|
Posted: Mon Nov 24, 2014 8:42 am Post subject: |
|
|
A simple #substitution did the trick.
Code: |
#sub {`1} {<018>}
#sub {`2} {<028>}
#sub {`3} {<038>}
#sub {`4} {<048>}
#sub {`5} {<058>}
#sub {`6} {<068>}
#sub {`7} {<eee>}
#sub {`8} {<ccc>}
#sub {`!} {<118>}
#sub {`@} {<128>}
#sub {`#} {<138>}
#sub {`\$} {<148>}
#sub {`%} {<158>}
#sub {`^} {<168>}
#sub {`&} {<178>}
#sub {``} {} |
thank you sir. |
|
Back to top |
|
|
Davairus Implementor
Joined: 16 Jan 2004 Posts: 10356 Location: 0x0000
|
Posted: Mon Nov 24, 2014 5:41 pm Post subject: |
|
|
Cool. Post us some more screenshots when youre done with it. This is exciting stuff to see. |
|
Back to top |
|
|
goofy
Joined: 09 Nov 2006 Posts: 54 Location: web
|
Posted: Tue Nov 25, 2014 10:47 pm Post subject: |
|
|
Here is the complete script.
I will present you with a screen shot as well soon as possible.
to get this to work for you using linux:
1. Save to a file called msdp.tt
2. Replace '/home/ghost/ARTT/log/left_bottom.log' with desired log file
3. #read msdp.tt and #session into mud
4. do this command after you sign in your char 'msdp_report'
Code: |
#nop msdp.tt
#class msdp open
#nop format dem
#nop **********
#format IAC %a 255
#format DONT %a 254
#format DO %a 253
#format WONT %a 252
#format WILL %a 251
#format SB %a 250
#format SE %a 240
#format MSDP %a 69
#format VAR %a 01
#format VAL %a 02
#var echo_event off
#nop which ones?
#nop ***********
#var REPORTABLE_VARIABLES {
{ROOM_MAP};
{HEALTH};
{HEALTH_MAX};
{MANA};
{MANA_MAX};
{MOVE};
{MOVE_MAX};
{EXP_TNL};
{EXP_TNL_MAX};
{MONEY};
{EXITS};
{WORLD_TIME};
}
#nop Turn telnet debug off once everything works as it's spammy.
#nop ***********************************************************
#config {debug telnet} {off}
#event {IAC WILL MSDP} {
#send {$IAC$DO$MSDP\};
#if { "$echo_event" == "on" } {
#echo {<068>#event {IAC WILL MSDP} EVENT #1<088>};
};
}
#event {IAC SB MSDP} {
#nop Save all variables with an MSDP_ prefix.;
#nop ****************************************;
#var {MSDP_%0} {%1};
#replace {MSDP_ROOM_MAP} {`1} {<018>};
#replace {MSDP_ROOM_MAP} {`2} {<028>};
#replace {MSDP_ROOM_MAP} {`3} {<038>};
#replace {MSDP_ROOM_MAP} {`4} {<048>};
#replace {MSDP_ROOM_MAP} {`5} {<058>};
#replace {MSDP_ROOM_MAP} {`6} {<068>};
#replace {MSDP_ROOM_MAP} {`7} {<eee>};
#replace {MSDP_ROOM_MAP} {`8} {<ccc>};
#replace {MSDP_ROOM_MAP} {`!} {<118>};
#replace {MSDP_ROOM_MAP} {`@} {<128>};
#replace {MSDP_ROOM_MAP} {`#} {<138>};
#replace {MSDP_ROOM_MAP} {`\$} {<148>};
#replace {MSDP_ROOM_MAP} {`%} {<158>};
#replace {MSDP_ROOM_MAP} {`^} {<168>};
#replace {MSDP_ROOM_MAP} {`&} {<178>};
#replace {MSDP_ROOM_MAP} {``} {};
#line log {/home/ghost/ARTT/log/left_bottom.log} {$MSDP_ROOM_MAP};
#if { "$echo_event" == "on" } {
#echo {<068>#event {IAC SB MSDP} EVENT #2<088>};
};
}
#nop This event is generated at the end of an MSDP sub negotiation.
#nop **************************************************************
#event {IAC SB MSDP IAC SE} {
#if { "$echo_event" == "on" } {
#echo {<068>#event {IAC SB MSDP IAC SE} EVENT #3<088>};
};
}
#nop Ask the server to report all keys inside REPORTABLE_VARIABLES
#nop *************************************************************
#alias {msdp_report} {
#var result {$IAC$SB$MSDP${VAR}REPORT};
#foreach {$REPORTABLE_VARIABLES[]} {tmp} {
#var result {$result${VAL}$tmp};
};
#send {$result$IAC$SE\};
#if { "$echo_event" == "on" } {
#echo {<068>#alias {msdp_report} EVENT #4<088>};
};
}
#alias {msdp_list} {
#send {$IAC$SB$MSDP${VAR}LIST${VAL}%0$IAC$SE\};
#if { "$echo_event" == "on" } {
#echo {<068>#alias {msdp_list} EVENT #5<088>};
};
}
#alias {msdp_send} {
#send {$IAC$SB$MSDP${VAR}SEND${VAL}%0$IAC$SE\};
#if { "$echo_event" == "on" } {
#echo {<068>#alias {msdp_send} EVENT #6<088>};
};
}
/*
#sub {`1} {<018>}
#sub {`2} {<028>}
#sub {`3} {<038>}
#sub {`4} {<048>}
#sub {`5} {<058>}
#sub {`6} {<068>}
#sub {`7} {<eee>}
#sub {`8} {<ccc>}
#sub {`!} {<118>}
#sub {`@} {<128>}
#sub {`#} {<138>}
#sub {`\$} {<148>}
#sub {`%} {<158>}
#sub {`^} {<168>}
#sub {`&} {<178>}
#sub {``} {}
*/
#class msdp close |
|
|
Back to top |
|
|
goofy
Joined: 09 Nov 2006 Posts: 54 Location: web
|
Posted: Wed Nov 26, 2014 5:19 am Post subject: |
|
|
|
|
Back to top |
|
|
Davairus Implementor
Joined: 16 Jan 2004 Posts: 10356 Location: 0x0000
|
Posted: Wed Nov 26, 2014 5:32 pm Post subject: |
|
|
starting to come together. cool! |
|
Back to top |
|
|
|