TinTin++ setup for Aardwolf MUD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
1.9 KiB

  1. #class gmcp kill
  2. #class gmcp open
  3. #format IAC %a 255
  4. #format DONT %a 254
  5. #format DO %a 253
  6. #format WONT %a 252
  7. #format WILL %a 251
  8. #format SB %a 250
  9. #format SE %a 240
  10. #format GMCP %a 201
  11. #alias {debug {on|off}}
  12. {
  13. #if {"%1" == "on"} { #variable debug 1 };
  14. #else { #variable debug 0 };
  15. #showme { Debug is <139>$debug<099> };
  16. #nop;
  17. }
  18. #alias {repopwatch {on|off}}
  19. {
  20. #if {"%1" == "on"} { #variable repop 1 };
  21. #else { #variable repop 0 };
  22. #showme { Repopwatch is <139>$repop<099> };
  23. #nop;
  24. }
  25. #alias {{^check repop$}}
  26. {
  27. #format {timestamp} {%T};
  28. #math {repop_time} {($last_repop+606)-$timestamp};
  29. #send {$repchan @CNext repop@w: @R$repop_time @Wseconds.@w};
  30. }
  31. #event {IAC SB GMCP comm.channel IAC SE}
  32. {
  33. #if {$debug} { #showme %1 };
  34. #var {GMCPDATA[COMM][CHATLOGGER]} {%0};
  35. #if {"$GMCPDATA[COMM][CHATLOGGER][chan]" != "mobsay"}
  36. {
  37. #line log {$dir/logs/channel.log} {$GMCPDATA[COMM][CHATLOGGER][msg]};
  38. };
  39. }
  40. #event {IAC SB GMCP comm.repop IAC SE}
  41. {
  42. #if {$debug} { #showme %1 };
  43. #var {GMCP[COMM][REPOP]} {%0};
  44. #format {last_repop} {%T};
  45. #format {time} {%t} {%H:%M:%S};
  46. #send {$repchan @WRepop @w= @r$GMCP[COMM][REPOP][zone]@w @@ @r$time};
  47. #var time {};
  48. #nop;
  49. }
  50. #nop Start up GMCP connection with the server
  51. #event {IAC WILL GMCP}
  52. {
  53. #send {$IAC$DO$GMCP\};
  54. #send {$IAC$SB$GMCP Core.Hello { "client": "$CLIENT_NAME", "version": "$CLIENT_VERSION" } $IAC$SE\};
  55. #send {$IAC$SB$GMCP Core.Supports.Set [ "Room 1", "Char 1", "Core 1", "Comm 1", "Debug 1", "Group 1" ] $IAC$SE\}
  56. }
  57. #event {PROGRAM START}
  58. {
  59. #variable CLIENT_NAME %0;
  60. #variable CLIENT_VERSION %1;
  61. }
  62. #nop Write out command history and variable class on disconnect
  63. #event {SESSION DISCONNECTED}
  64. {
  65. #history write {$dir/logs/history.log};
  66. }
  67. #event {SESSION CONNECTED}
  68. {
  69. $name;
  70. $password;
  71. #unvar name;
  72. #unvar password;
  73. #history read {$dir/logs/history.log};
  74. }
  75. #class gmcp close