satocahng

report

Aug 9th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.99 KB | None | 0 0
  1. variables:
  2. {id} = 0
  3. options:
  4. #█▀▀█ █▀▀ █▀▀█ █▀▀█ █▀▀█ ▀▀█▀▀         █▀▀ █░█ █▀▀█ ░▀░ █▀▀█ ▀▀█▀▀
  5. #█▄▄▀ █▀▀ █░░█ █░░█ █▄▄▀ ░░█░░         ▀▀█ █▀▄ █▄▄▀ ▀█▀ █░░█ ░░█░░
  6. #▀░▀▀ ▀▀▀ █▀▀▀ ▀▀▀▀ ▀░▀▀ ░░▀░░         ▀▀▀ ▀░▀ ▀░▀▀ ▀▀▀ █▀▀▀ ░░▀░░
  7.  
  8.  
  9. #█▀▀█ █▀▀█ █▀▀ █▀▀ ░▀░ █░█
  10. #█░░█ █▄▄▀ █▀▀ █▀▀ ▀█▀ ▄▀▄
  11. #█▀▀▀ ▀░▀▀ ▀▀▀ ▀░░ ▀▀▀ ▀░▀
  12. prefix: &c&lReports &f>
  13.  
  14.  
  15. #█▀▀█ █▀▀ █▀▀█ █▀▄▀█ ░▀░ █▀▀ █▀▀ ░▀░ █▀▀█ █▀▀▄ █▀▀
  16. #█░░█ █▀▀ █▄▄▀ █░▀░█ ▀█▀ ▀▀█ ▀▀█ ▀█▀ █░░█ █░░█ ▀▀█
  17. #█▀▀▀ ▀▀▀ ▀░▀▀ ▀░░░▀ ▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀▀ ▀░░▀ ▀▀▀
  18. UseTheCommand: use.report
  19. CommentOnAReview: comment.report
  20.  
  21.  
  22. #▒█▀▀█ █▀▀█ █▀▀█ █▀▀█ █▀▀ █▀▀ ▀▀█▀▀   ▒█░▒█ █▀▀ █▀▀█ █▀▀▀ █▀▀
  23. #▒█░░░ █░░█ █▄▄▀ █▄▄▀ █▀▀ █░░ ░░█░░   ▒█░▒█ ▀▀█ █▄▄█ █░▀█ █▀▀
  24. #▒█▄▄█ ▀▀▀▀ ▀░▀▀ ▀░▀▀ ▀▀▀ ▀▀▀ ░░▀░░   ░▀▄▄▀ ▀▀▀ ▀░░▀ ▀▀▀▀ ▀▀▀
  25. Arg-1NotCorrectUsage: %nl% %nl% %nl%&4&l>> &4Error&c:&4&l <<%nl% &8&l - &eUsage: &7/&8report &7<&4&l&nname&7> &7<&8reason&7>&4! %nl% %nl% %nl%
  26. Arg-2NotCorrectUsage: %nl% %nl% %nl%&4&l>> &4Error&c:&4&l <<%nl% &8&l - &eUsage: &7/&8report &7<&8name&7> &7<&4&l&nreason&7>&4! %nl% %nl% %nl%
  27. #reports view
  28. IDNotCorrectUsageReport: %nl% %nl% %nl%&4&l>> &4Error&c:&4&l <<%nl% &8&l - &eUsage: &7/&8reports &7<&8view&7> &7<&4&l&nID&7>&4! %nl% %nl% %nl%
  29. Arg-1NotCorrectUsageReport: %nl% %nl% %nl%&4&l>> &4Error&c:&4&l <<%nl% &8&l - &eUsage: &7/&8reports &7<&8view/comment/list/flag&7>&4! %nl% %nl% %nl%
  30. Arg-3NotCorrectUsageComment: %nl% %nl% %nl%&4&l>> &4Error&c:&4&l <<%nl% &8&l - &eUsage: &7/&8reports &7<&8&ncomment&7> <&8ID&7> <&4&l&ncomment&7>&4%nl% %nl% %nl%
  31. #reports comment
  32. Arg-2NotCorrectUsageComment: %nl% %nl% %nl%&4&l>> &4Error&c:&4&l <<%nl% &8&l - &eUsage: &7/&8reports &7<&8&ncomment&7> <&4&nID&7> <&8comment&7>&4! %nl% %nl% %nl%
  33. #flag comment
  34. Arg-2NotCorrectUsageCommentflag: %nl% %nl% %nl%&4&l>> &4Error&c:&4&l <<%nl% &8&l - &eUsage: &7/&8reports &7<&8flag> <&4&nID&7> <&8Open/Closed&7>&4! %nl% %nl% %nl%
  35. Arg-3NotCorrectUsageCommentflag: %nl% %nl% %nl%&4&l>> &4Error&c:&4&l <<%nl% &8&l - &eUsage: &7/&8reports &7<&8&ncomment&7> <&8ID&7> <&4&nOpen/Closed&7>&4! %nl% %nl% %nl%
  36. #▒█▄░▒█ █▀▀█ ▀▀█▀▀   █▀▀█ █▀▀▄ █░░ ░▀░ █▀▀▄ █▀▀
  37. #▒█▒█▒█ █░░█ ░░█░░   █░░█ █░░█ █░░ ▀█▀ █░░█ █▀▀
  38. #▒█░░▀█ ▀▀▀▀ ░░▀░░   ▀▀▀▀ ▀░░▀ ▀▀▀ ▀▀▀ ▀░░▀ ▀▀▀
  39. notonline: &8&l&n%arg 1%&7 is not online&4&l!
  40.  
  41. #▒█░░▒█ █▀▀█ ░▀░ ▀▀█▀▀   ▀▀█▀▀ ░▀░ █▀▄▀█ █▀▀
  42. #▒█▒█▒█ █▄▄█ ▀█▀ ░░█░░   ░░█░░ ▀█▀ █░▀░█ █▀▀
  43. #▒█▄▀▄█ ▀░░▀ ▀▀▀ ░░▀░░   ░░▀░░ ▀▀▀ ▀░░░▀ ▀▀▀ #And Also Amount of Comments In /reports comment!
  44. reportwaitingtime: 3 #in seconds
  45. delay: &c&l|&c You'll have to wait: &7 %{_difference}% &c&l| &cbefore using this command again!
  46. delaymin: 5 #in minutes
  47. #▒█▀▀█ █▀▀█ █▀▄▀█ █▀▀█ █░░ █▀▀ ▀▀█▀▀ █▀▀
  48. #▒█░░░ █░░█ █░▀░█ █░░█ █░░ █▀▀ ░░█░░ █▀▀
  49. #▒█▄▄█ ▀▀▀▀ ▀░░░▀ █▀▀▀ ▀▀▀ ▀▀▀ ░░▀░░ ▀▀▀
  50. ReportWait: &8&l| &e&lWAIT &8&l| &eChecking the database, please wait...
  51. ReportSuccesful: &c&lReports &f> &e&lID: &e%{id}%%nl%&c&lReports &f> &4Note: You have reported &c%arg 1%&4 for &7%arg 2%&4.%nl%&c&lReports &f> &7Thank you. Your report has been filed.%nl% &8&l- &7Your name: &8(&c %player%&8 )%nl% &8&l- &7Player you reported: &8(&c %arg 1%&8 )%nl% &8&l- &7報告された時間 (YYYY-MM-DD) (EST): &c%{date::%{id}%}% %nl% &8&l- &7Reason:%nl% &7> &c%arg 2% %nl% &7&l** Staff should view your report within 48 hours!
  52. #review
  53. ViewingAReport: &4&l&m=============[&c&lReport Viewer&4&l&m]=============%nl%&f> &7Viewing record with ID &c%{id}%&7:%nl%&4&m-------------------------%nl%&7レポートしたプレイヤー: &c%arg 1% %nl%&7レポートされ対処プレイヤー: &c%player% %nl%&7Date (YYYY-MM-DD) (EST): &c%{date::%{id}%}% %nl%&7レポートされた理由: &c%arg 2%
  54. Commented: &c&lReports &f> &eYou have succesfully commented on &lTICKET &eID: &l%arg-2%&7!
  55. commenthowitlooks: [&c%now%&7]&c%player%&7: %arg 3%
  56. list: &7[&c%now%&7] &c%player%
  57. flaghasbeensettoopen: &c&lReports &f> &f[&cStaff&f]: &eFlag has been set to &6&nOpen&e!
  58. flaghasbeensettoclosed: &c&lReports &f> &f[&cStaff&f]: &eFlag has been set to &4&nClosed&e!
  59. #▒█▀▀▀ █▀▀█ █▀▀█ █▀▀█ █▀▀█ █▀▀
  60. #▒█▀▀▀ █▄▄▀ █▄▄▀ █░░█ █▄▄▀ ▀▀█
  61. #▒█▄▄▄ ▀░▀▀ ▀░▀▀ ▀▀▀▀ ▀░▀▀ ▀▀▀
  62. NoPermissionError: %nl% %nl% %nl%&4&l>> &4Error&c:&4&l <<%nl% &8&l - &4You don't have permissions for this! %nl% %nl% %nl%
  63. #review
  64. NoIDCouldBeFound: &c&lReports &f> &f[&cStaff&f]: &c&lID&c, &4couldn't be found!
  65. NoReports: &c&lReports &f> &f[&cStaff&f]: &eThere are no report's at the moment! Good job!
  66. canonlybeopenorclosed: &c&lReports &f> &f[&cStaff&f]: &eYou may only use &6Closed&e/&6Open&e&l!
  67. closedthread: &c&lReports &f> &f[&cStaff&f]:&e You can't comment on a closed thread!
  68. #Hjemmeside til fed tekst!
  69. # http://fsymbols.com/generators/tarty/
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92. #▒█▀▀█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀
  93. #▒█░░░ ▒█░░▒█ ▒█░▒█ ▒█▀▀▀
  94. #▒█▄▄█ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄
  95.  
  96. command /report [<offline player>] [<text>]:
  97. trigger:
  98. if player has permission "{@UseTheCommand}":
  99. if arg 1 is set:
  100. if arg 1 is online:
  101. if arg 2 is set:
  102. set {_difference} to difference between {delayreport.%player%} and now
  103. if {_difference} is less than {@delaymin} minutes:
  104. set {_difference} to difference between {_difference} and {@delaymin} minutes
  105. message "{@delay}"
  106. stop
  107. set {delayreport.%player%} to now
  108. send "{@ReportWait}"
  109. add 1 to {id}
  110. wait {@reportwaitingtime} seconds
  111. add "{@list}" to {list::*}
  112. set {date::%{id}%} to now
  113. set {flag::%{id}%} to "&2&lOpen"
  114. set {report::%{id}%} to "{@ViewingAReport}"
  115. send "{@ReportSuccesful}"
  116. else:
  117. send "{@Arg-2NotCorrectUsage}"
  118. else:
  119. send "{@notonline}"
  120. else:
  121. send "{@Arg-1NotCorrectUsage}"
  122. else:
  123. send "{@NoPermissionError}"
  124. command /reports [<text>] [<text>] [<text>]:
  125. trigger:
  126. if player has permission "{@CommentOnAReview}":
  127. if arg 1 isn't set:
  128. send "{@Arg-1NotCorrectUsageReport}"
  129. stop
  130. else if arg 1 isn't "view" or "comment" or "list" or "flag":
  131. send "{@Arg-1NotCorrectUsageReport}"
  132. stop
  133. #view
  134. else if arg 1 is "view":
  135. if arg 2 is set:
  136. if {report::%arg 2%} is set:
  137. message "%{report::%arg 2%}%"
  138. message "&7flag: %{flag::%arg-2%}%"
  139. set {_a} to 0
  140. loop {comment::%arg-2%::*}:
  141. add 1 to {_a}
  142. message "&7Found &c%{_a}% &7comments:%nl%"
  143. message "&4&m-------------------------"
  144. if {_a} is greater than 0:
  145. loop {comment::%arg-2%::*}:
  146. message "&4%loop-index%&7. [ID:&c%loop-index%&7] %loop-value%"
  147. message "&4&l&m=============[&c&lReport Viewer&4&l&m]============="
  148. stop
  149. message "{@NoIDCouldBeFound}"
  150. stop
  151. message "{@IDNotCorrectUsageReport}"
  152. #comment
  153. else if arg 1 is "comment":
  154. if arg 2 is not set:
  155. message "{@Arg-2NotCorrectUsageComment}"
  156. stop
  157. if {report::%arg 2%} is not set:
  158. message "{@NoIDCouldBeFound}"
  159. stop
  160. if {flag::%arg-2%} contains "Closed":
  161. message "{@closedthread}"
  162. stop
  163. if arg 3 is not set:
  164. message "{@Arg-3NotCorrectUsageComment}"
  165. stop
  166. add "{@commenthowitlooks}" to {comment::%arg-2%::*}
  167. message "{@Commented}"
  168. else if arg 1 is "list":
  169. set {_a} to 0
  170. loop {list::*}:
  171. add 1 to {_a}
  172. if {_a} is greater than 0:
  173. message "&f&l - &4%loop-index%&7. %loop-value%"
  174. if {_a} is 0:
  175. message "{@NoReports}"
  176. stop
  177. else if arg 1 is "flag":
  178. if arg 2 is not set:
  179. send "{@Arg-2NotCorrectUsageCommentflag}"
  180. stop
  181. if arg 3 is not set:
  182. send "{@Arg-3NotCorrectUsageCommentflag}"
  183. stop
  184. else:
  185. if {report::%arg-2%} is set:
  186. if arg 3 isn't "Closed" or "Open":
  187. send "{@canonlybeopenorclosed}"
  188. stop
  189. else:
  190. if arg 3 is "Open":
  191. send "{@flaghasbeensettoopen}"
  192. set {flag::%arg-2%} to "&2&nOpen"
  193. else:
  194. send "{@flaghasbeensettoclosed}"
  195. set {flag::%arg-2%} to "&4&nClosed"
  196. else:
  197. message "{@NoIDCouldBeFound}"
  198.  
  199.  
  200.  
  201.  
  202.  
  203. else:
  204. send "{@NoPermissionError}"
  205. command /reset:
  206. trigger:
  207. if player has permission "*":
  208. delete {comment::*}
  209. delete {report::*}
  210. set {id} to 0
  211. delete {date::*}
  212. delete {flag::*}
  213. delete {list::*}
  214. else:
  215. send "{@NoPermissionError}"
Add Comment
Please, Sign In to add comment