SHOW:
|
|
- or go back to the newest paste.
| 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 {bot.%arg-1%} to true
| |
| 20 | set {_second} to {_second} * 20
| |
| 21 | loop {_second} times:
| |
| 22 | make arg-1 say "%{_message}% ##%random integer between 1 and 999999%"
| |
| 23 | wait a tick | |
| 24 | - | message "&c使用法:/spam <プレイヤー> <メッセージ> [秒数]" to player |
| 24 | + | delete {bot.%arg-1%}
|
| 25 | else: | |
| 26 | message "&c使用法:/spam <プレイヤー> <メッセージ> [秒数]" to player | |
| 27 | ||
| 28 | on any move: | |
| 29 | {bot.%player%} is true
| |
| 30 | cancel event | |
| 31 | ||
| 32 | on chat: | |
| 33 | {bot.%player%} is true
| |
| 34 | cancel event |