TinTin++ Configs for DiscworldMUD
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.

88 lines
2.1 KiB

6 years ago
  1. #ALIAS {setsize} {rows 300;cols 148};
  2. #ALIAS {setmsize} {rows 300;cols 60};
  3. #ALIAS {^clear$} {
  4. #system {tput clear};
  5. #split {2} {1};
  6. setsize;
  7. };
  8. #ALIAS {htop} {
  9. #system {htop};
  10. };
  11. #ALIAS {rst} {
  12. #read {config.tin};
  13. setsize;
  14. shields;
  15. };
  16. #ALIAS {wiki} {
  17. #system {w3m https://dwwiki.mooo.com/w/index.php?search=%0};
  18. #split {2} {1};
  19. setsize;
  20. };
  21. #ALIAS {colourpalette}
  22. {
  23. #foreach {a;b;c;d;e;f} {cnt1}
  24. {
  25. #foreach {a;b;c;d;e;f} {cnt2}
  26. {
  27. #var result <000>;
  28. #foreach {a;b;c;d;e;f} {cnt3}
  29. {
  30. #var result $result <$cnt1$cnt2$cnt3> <<888>$cnt1$cnt2$cnt3><088>
  31. };
  32. #showme $result
  33. }
  34. }
  35. }
  36. #ALIAS {minesolve %1 %2 %3} {
  37. #var {total} {%1};
  38. #var {hammer} {%2};
  39. #var {pickaxe} {%3};
  40. #var {solvecommand} {python3 -c 'import math; t,p,h = $total,$pickaxe,$hammer; pu,hu = int(math.floor(t/p)+1), int(math.floor(t/h)+1); print(*sorted([(i, j) for j in range(0,hu) for i in range(0,pu) if ((i*p) + (j*h) == t)], key=lambda t: t[1])[0]);'};
  41. #script {result} {$solvecommand};
  42. #replace {result[1]} { } {;};
  43. #list {solution} {create} {$result[1]};
  44. #format {minesolvedisplay} {<149>[MineSolver] Best solution is <139>%d<149> pickaxe strikes and <139>%d<149> hammer chips for a total of <159>%f<149> inches.<099>} {$solution[1]} {$solution[2]} {$total};
  45. #echo {$minesolvedisplay};
  46. };
  47. #nop Resizing aliases for when we're in "cols 999" mode;
  48. #ALIAS {^skills%1} {
  49. #send {cols 130};
  50. #send {skills %1};
  51. #send {cols 999};
  52. };
  53. #ALIAS {^{speak|language}$} {
  54. #send {cols 130};
  55. #send {speak};
  56. #send {cols 999};
  57. };
  58. #ALIAS {^spells$} { #send {cols 130}; #send {spells}; #send {cols 999}; };
  59. #ALIAS {^rituals$} { #send {cols 130}; #send {rituals}; #send {cols 999}; };
  60. #ALIAS {^group status$} { #send {cols 130}; #send {group status}; #send {cols 999}; };
  61. #ALIAS {^{who$|who (.+)$}} {
  62. #send {cols 130};
  63. #send {%0};
  64. #send {cols 999};
  65. };
  66. #ALIAS {^help %1} {
  67. #send {cols 130};
  68. #send {help %1};
  69. #send {cols 999};
  70. };
  71. #ALIAS {^nickname$} {
  72. #send {cols 130};
  73. #send {nickname};
  74. #send {cols 999};
  75. };