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.

123 lines
4.1 KiB

6 years ago
  1. #CLASS {quow} {kill};
  2. #CLASS {quow} {open};
  3. #VARIABLE {map_id_names} {
  4. {1}{Ankh-Morpork}
  5. {2}{AM Assassins}
  6. {3}{AM Buildings}
  7. {4}{AM Cruets}
  8. {5}{AM Docks}
  9. {6}{AM Guilds}
  10. {7}{AM Isle of Gods}
  11. {8}{Shades Maze}
  12. {9}{Temple of Small Gods}
  13. {10}{AM Temples}
  14. {11}{AM Thieves}
  15. {12}{Unseen University}
  16. {13}{AM Warriors}
  17. {14}{Pseudopolis Watch House}
  18. {15}{Magpyr's Castle}
  19. {16}{Bois}
  20. {17}{Bes Pelargic}
  21. {18}{BP Buildings}
  22. {19}{BP Estates}
  23. {20}{BP Wizards}
  24. {21}{Brown Islands}
  25. {22}{Death's Domain}
  26. {23}{Djelibeybi}
  27. {24}{IIL - DJB Wizards}
  28. {25}{Ephebe}
  29. {26}{Ephebe Underdocks}
  30. {27}{Genua}
  31. {28}{Genua Sewers}
  32. {29}{GRFLX Caves}
  33. {30}{Hashishim Caves}
  34. {31}{Klatch Region}
  35. {32}{Lancre Region}
  36. {33}{Mano Rossa}
  37. {34}{Monks of Cool}
  38. {35}{Netherworld}
  39. {37}{Pumpkin Town}
  40. {38}{Ramtops Regions}
  41. {39}{Sto-Lat}
  42. {40}{Academy of Artificers}
  43. {41}{Cabbage Warehouse}
  44. {42}{AoA Library}
  45. {43}{Sto-Lat Sewers}
  46. {44}{Sprite Caves}
  47. {45}{Sto Plains Region}
  48. {46}{Uberwald Region}
  49. {47}{UU Library}
  50. {48}{Klatchian Farmsteads}
  51. {49}{CTF Arena}
  52. {50}{PK Arena}
  53. {51}{AM Post Office}
  54. {52}{Ninja Guild}
  55. {53}{The Travelling Shop}
  56. {54}{Slippery Hollow}
  57. {55}{House of Magic - Creel}
  58. {56}{Special Areas}
  59. {57}{Skund Wolf Trail}
  60. }
  61. #ALIAS {db gatherable %1} {
  62. #unvariable {gatherable_display};
  63. #format {query} {SELECT item_name, room_short, map_id, INSTR(item_name, '%s') pos FROM shop_items INNER JOIN rooms on rooms.room_id = shop_items.room_id WHERE pos > 0 AND sale_price = 'gather';} {%1};
  64. #format {db_command} {sqlite3 -separator ";" src/quow.db "%s"} {$query};
  65. #script {gatherable_query_result} {$db_command};
  66. #list {gatherable_query_result} {size} {gatherable_result_size};
  67. #if {$gatherable_result_size > 0} {
  68. #foreach {$gatherable_query_result[%*]} {inner_query_result} {
  69. #replace {inner_query_result} {\\} {};
  70. #list gatherable_results create {${inner_query_result}};
  71. #variable {gatherable_info} {
  72. {item_name}{$gatherable_results[1]}
  73. {room_short}{$gatherable_results[2]}
  74. {map_name}{$map_id_names[$gatherable_results[3]]}
  75. };
  76. #format {gatherable_display} {%cQuery Result: %c%s%c found in %c%s, %s%c} {bold blue}{green}{$gatherable_info[item_name]}{bold blue}{orange}{$gatherable_info[room_short]}{$gatherable_info[map_name]}{bold blue};
  77. #echo {$gatherable_display};
  78. }
  79. } {
  80. #format {gatherable_display} {%cQuery Result: %c%s%c was not found.} {bold blue}{green}{%1}{bold blue};
  81. #echo {$gatherable_display};
  82. }
  83. }
  84. #ALIAS {db buyable %1} {
  85. #unvariable {buyable_display};
  86. #format {query} {SELECT item_name, sale_price, room_short, map_id, INSTR(item_name, '%s') pos FROM shop_items INNER JOIN rooms on rooms.room_id = shop_items.room_id WHERE pos > 0 AND sale_price != 'gather' LIMIT 10;} {%1};
  87. #format {db_command} {sqlite3 -separator ";" src/quow.db "%s"} {$query};
  88. #script {buyable_query_result} {$db_command};
  89. #echo {RESULT: $buyable_query_result};
  90. #list {buyable_query_result} {size} {buyable_result_size};
  91. #if {$buyable_result_size > 0} {
  92. #foreach {$buyable_query_result[%*]} {inner_query_result} {
  93. #replace {inner_query_result} {\\} {};
  94. #list buyable_results create {${inner_query_result}};
  95. #variable {buyable_info} {
  96. {item_name}{$buyable_results[1]}
  97. {sale_price}{$buyable_results[2]}
  98. {room_short}{$buyable_results[3]}
  99. {map_name}{$map_id_names[$buyable_results[4]]}
  100. };
  101. #format {buyable_display} {%cQuery Result: %c%s%c (%c%s%c) found in %c%s, %s%c} {bold blue}{green}{$buyable_info[item_name]}{bold blue}{yellow}{$buyable_info[sale_price]}{bold blue}{orange}{$buyable_info[room_short]}{$buyable_info[map_name]}{bold blue};
  102. #echo {$buyable_display};
  103. }
  104. } {
  105. #format {buyable_display} {%cQuery Result: %c%s%c was not found.} {bold blue}{green}{%1}{bold blue};
  106. #echo {$buyable_display};
  107. }
  108. }
  109. #CLASS {quow} {close};