Advertisement
SuzukazeK

Untitled

Sep 20th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. command /spam [<player>] [<text>] [<number>]:
  2. trigger:
  3. if arg-1 is set:
  4. set {_message} to "あ"
  5. if arg-2 is set:
  6. set {_message} to "%arg-2%"
  7. set {_second} to 10
  8. if arg-3 is set:
  9. if arg-3 < 60:
  10. if arg-3 > 0:
  11. set {_second} to arg-3
  12. else:
  13. message "「%arg-3%」は有効な数値ではありません" to player
  14. stop
  15. else:
  16. message "「%arg-3%」は有効な数値ではありません" to player
  17. stop
  18. message "プレイヤー %arg-1% に %{_second}% 秒間メッセージをリピートさせます" to player
  19. set {_second} to {_second} * 20
  20. loop {_second} times:
  21. make arg-1 say "%{_message}% ##%random integer between 1 and 999999%"
  22. wait a tick
  23. else:
  24. message "&c使用法:/spam <プレイヤー> <メッセージ> [秒数]" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement