Date: 2014/11/02 17:12:07 UTC-08:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Radio:
Type: world
events:
on server start:
- inject Sradio
on radio command:
- if <context.raw_args> == "" {
- narrate "To turn on the radio type /radio on and to turn the radio off type /radio off"
}
- if <context.raw_args> == "on" {
- flag player radio
- narrate "Radio on"
}
- if <context.raw_args> == "off" {
- flag server Radio:<-:<player>
- narrate "Radio off"
}
- if <context.raw_args> == "forcestart" {
- if !<player.has_permission[Music.Start]> {
- narrate 'You must be Madara to use this command!'
- queue clear
}
- narrate "radio force started"
- inject Sradio
}
on testcmd command:
- narrate "<server.get_online_players_flagged[radio]> <server.list.ops>"
Sradio:
Type: task
script:
- while true {
- random {
- inject Sradio1
- inject Sradio2
- inject Sradio3
- inject Sradio4
- inject Sradio5
}
}
Sradio1:
Type: task
script:
- MIDI file:God <server.get_online_players_flagged[radio]>
- narrate "We're now playing Declaration of a God" targets:<server.get_online_players_flagged[<radio:on>]>
- wait 126s
Sradio2:
Type: task
script:
- MIDI file:BlueBird <server.get_online_players_flagged[radio]>
- narrate "We're now playing Blue Bird" targets:<server.get_online_players_flagged[<radio:on>]>
- wait 88s
Sradio3:
Type: task
script:
- MIDI file:CF <server.get_online_players_flagged[radio]>
- narrate "We're now playing Crossing field" targets:<server.get_online_players_flagged[<radio:on>]>
- wait 86s
Sradio4:
Type: task
script:
- MIDI file:NarutoTheme <server.get_online_players_flagged[radio]>
- narrate "We're now playing the Naruto theme" targets:<server.get_online_players_flagged[<radio:on>]>
- wait 42s
Sradio5:
Type: task
script:
- MIDI file:HinataVsNeji <server.get_online_players_flagged[radio]>
- narrate "We're now playing Hinata vs Neji" targets:<server.get_online_players_flagged[<radio:on>]>
- wait 189s