Templates.rdef 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. #include "Flags.h"
  2. // Default templates
  3. resource(1001, "roster") message('IMst')
  4. {
  5. "setting" = message
  6. {
  7. "name" = "user_id",
  8. "description" = "Username:",
  9. "error" = "You can't friend someone without a username.",
  10. int32 "type" = 'CSTR'
  11. }
  12. };
  13. resource(1002, "create_room") message('IMst')
  14. {
  15. "setting" = message
  16. {
  17. "name" = "chat_id",
  18. "description" = "Room:",
  19. "error" = "You can't quite seem to find ' ' on the map.",
  20. int32 "type" = 'CSTR'
  21. }
  22. };
  23. resource(1003, "join_room") message('IMst')
  24. {
  25. "setting" = message
  26. {
  27. "name" = "chat_id",
  28. "description" = "Room:",
  29. "error" = "You can't quite seem to find ' ' on the map.",
  30. int32 "type" = 'CSTR'
  31. }
  32. };
  33. // User pop-up menu items
  34. resource(1100) message
  35. {
  36. "class" = "BMenuItem",
  37. "_label" = "User info…",
  38. "_msg" = message('CYuw'),
  39. int32 "x_perms" = 0,
  40. int32 "x_target_perms" = 0,
  41. int32 "x_target_antiperms" = 0,
  42. bool "x_priority" = false,
  43. bool "x_to_protocol" = false
  44. };
  45. resource(1101) message
  46. {
  47. "class" = "BMenuItem",
  48. "_label" = "Kick user",
  49. "_msg" = message('IMme') { int32 "im_what" = 191 },
  50. int32 "x_perms" = PERM_KICK,
  51. int32 "x_target_perms" = 0,
  52. int32 "x_target_antiperms" = 0,
  53. bool "x_priority" = false,
  54. bool "x_to_protocol" = true
  55. };
  56. resource(1102) message
  57. {
  58. "class" = "BMenuItem",
  59. "_label" = "Ban user",
  60. "_msg" = message('IMme') { int32 "im_what" = 193 },
  61. int32 "x_perms" = PERM_BAN,
  62. int32 "x_target_perms" = 0,
  63. int32 "x_target_antiperms" = 0,
  64. bool "x_priority" = false,
  65. bool "x_to_protocol" = true
  66. };
  67. resource(1103) message
  68. {
  69. "class" = "BMenuItem",
  70. "_label" = "Mute user",
  71. "_msg" = message('IMme') { int32 "im_what" = 196 },
  72. int32 "x_perms" = PERM_MUTE,
  73. int32 "x_target_perms" = PERM_WRITE,
  74. int32 "x_target_antiperms" = 0,
  75. bool "x_priority" = false,
  76. bool "x_to_protocol" = true
  77. };
  78. resource(1104) message
  79. {
  80. "class" = "BMenuItem",
  81. "_label" = "Unmute user",
  82. "_msg" = message('IMme') { int32 "im_what" = 197 },
  83. int32 "x_perms" = PERM_MUTE,
  84. int32 "x_target_perms" = 0,
  85. int32 "x_target_antiperms" = PERM_WRITE,
  86. bool "x_priority" = false,
  87. bool "x_to_protocol" = true
  88. };
  89. resource(1105) message
  90. {
  91. "class" = "BMenuItem",
  92. "_label" = "Deafen user",
  93. "_msg" = message('IMme') { int32 "im_what" = 198 },
  94. int32 "x_perms" = PERM_DEAFEN,
  95. int32 "x_target_perms" = PERM_READ,
  96. int32 "x_target_antiperms" = 0,
  97. bool "x_priority" = false,
  98. bool "x_to_protocol" = true
  99. };
  100. resource(1106) message
  101. {
  102. "class" = "BMenuItem",
  103. "_label" = "Undeafen user",
  104. "_msg" = message('IMme') { int32 "im_what" = 199 },
  105. int32 "x_perms" = PERM_DEAFEN,
  106. int32 "x_target_perms" = 0,
  107. int32 "x_target_antiperms" = PERM_READ,
  108. bool "x_priority" = false,
  109. bool "x_to_protocol" = true
  110. };
  111. // Chat commands
  112. resource(1140) message
  113. {
  114. "class" = "ChatCommand",
  115. "_name" = "ban",
  116. "_desc" = "Kick a user out of the room and slam the door behind them― locking it while you're at it.",
  117. "_msg" = message('IMme') { int32 "im_what" = 193 },
  118. bool "_proto" = true,
  119. int32 "_argtype" = 1128362608,
  120. int32 "_argtype" = 1128358515
  121. };
  122. resource(1141) message
  123. {
  124. "class" = "ChatCommand",
  125. "_name" = "help",
  126. "_desc" = "List all current commands, or get help for certain command.",
  127. "_msg" = message('CYhm'),
  128. bool "_proto" = false
  129. };
  130. resource(1142) message
  131. {
  132. "class" = "ChatCommand",
  133. "_name" = "deafen",
  134. "_desc" = "Disallow a user from reading the conversation.",
  135. "_msg" = message('IMme') { int32 "im_what" = 198 },
  136. bool "_proto" = true,
  137. int32 "_argtype" = 1128362608
  138. };
  139. resource(1143) message
  140. {
  141. "class" = "ChatCommand",
  142. "_name" = "invite",
  143. "_desc" = "Invite a user to the current room.",
  144. "_msg" = message('IMme') { int32 "im_what" = 162 },
  145. bool "_proto" = true,
  146. int32 "_argtype" = 1128360821
  147. };
  148. resource(1144) message
  149. {
  150. "class" = "ChatCommand",
  151. "_name" = "kick",
  152. "_desc" = "Force a user to temporarily leave the room, assuming your power level's high enough.",
  153. "_msg" = message('IMme') { int32 "im_what" = 191 },
  154. bool "_proto" = true,
  155. int32 "_argtype" = 1128362608,
  156. int32 "_argtype" = 1128358515
  157. };
  158. resource(1145) message
  159. {
  160. "class" = "ChatCommand",
  161. "_name" = "mute",
  162. "_desc" = "Disallow a user from sending visible messages.",
  163. "_msg" = message('IMme') { int32 "im_what" = 196 },
  164. bool "_proto" = true,
  165. int32 "_argtype" = 1128362608
  166. };
  167. resource(1146) message
  168. {
  169. "class" = "ChatCommand",
  170. "_name" = "unban",
  171. "_desc" = "Undo a previous ban, allowing the user to rejoin (if they still want to).",
  172. "_msg" = message('IMme') { int32 "im_what" = 195 },
  173. bool "_proto" = true,
  174. int32 "_argtype" = 1128358261
  175. };
  176. resource(1147) message
  177. {
  178. "class" = "ChatCommand",
  179. "_name" = "undeafen",
  180. "_desc" = "Restore a user's ability to receive messages.",
  181. "_msg" = message('IMme') { int32 "im_what" = 199 },
  182. bool "_proto" = true,
  183. int32 "_argtype" = 1128362608
  184. };
  185. resource(1148) message
  186. {
  187. "class" = "ChatCommand",
  188. "_name" = "unmute",
  189. "_desc" = "Restore a user's ability to send messages.",
  190. "_msg" = message('IMme') { int32 "im_what" = 197 },
  191. bool "_proto" = true,
  192. int32 "_argtype" = 1128362608
  193. };