- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleRaid
TypeDenizen Script
Date2019/08/13 00:19:46 UTC-07:00
ByGuest
Other
Paste
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
5900
Raids:
    type: world
    debug: false
    events:
        on server flag air1_underseige expires:
        #run or inject RaidFailAnnouncements
        on server flag water1_underseige expires:
        #run or inject RaidFailAnnouncements
        on server flag earth1_underseige expires:
        #run or inject RaidFailAnnouncements
        on server flag fire1_underseige expires:
        #run or inject RaidFailAnnouncements
        on server flag chi1_underseige expires:
        #run or inject RaidFailAnnouncements
        
        
        
        
    
RaidFailAnnouncements:
    type: task
    debug: false
    script:
    #Air Announcements
    - if <server.has_flag[air_raiding]>:
      - if <server.flag[air_raiding].contains_any_text[Air]>:
        - announce format:elementalchat '<&e>The <&7>Air Nomads <&e>have failed to reclaim <server.flag[air_raiding]><&e>.'
        else:
        - announce format:elementalchat '<&e>The <&7>Air Nomads <&e>have failed to raid <server.flag[air_raiding]><&e>.'
      - narrate format:elementalchat "<&7>Air Nomads <&e>cannot raid this outpost again for another <&d>2 days<&e>." targets:<server.list_online_players.filter[in_group[AirNation]]>
    #Water Announcements
    - if <server.has_flag[water_raiding]>:
      - if <server.flag[water_raiding].contains_any_text[Water]>:
        - announce format:elementalchat '<&e>The <&b>Water Tribe <&e>has failed to reclaim <server.flag[water_raiding]><&e>.'
        else:
        - announce format:elementalchat '<&e>The <&b>Water Tribe <&e>has failed to raid <server.flag[water_raiding]><&e>.'
      - narrate format:elementalchat "The <&b>Water Tribe <&e>cannot raid this outpost again for another <&d>2 days<&e>." targets:<server.list_online_players.filter[in_group[WaterNation]]>
    #Earth Announcements
    - if <server.has_flag[earth_raiding]>:
      - if <server.flag[earth_raiding].contains_any_text[Earth]>:
        - announce format:elementalchat '<&e>The <&2>Earth Kingdom <&e>has failed to reclaim <server.flag[earth_raiding]><&e>.'
        else:
        - announce format:elementalchat '<&e>The <&2>Earth Kingdom <&e>has failed to raid <server.flag[earth_raiding]><&e>.'
      - narrate format:elementalchat "The <&2>Earth Kingdom <&e>cannot raid this outpost again for another <&d>2 days<&e>." targets:<server.list_online_players.filter[in_group[EarthNation]]>
    #Fire Announcements
    - if <server.has_flag[fire_raiding]>:
      - if <server.flag[fire_raiding].contains_any_text[Fire]>:
        - announce format:elementalchat '<&e>The <&c>Fire Nation <&e>has failed to reclaim <server.flag[fire_raiding]><&e>.'
        else:
        - announce format:elementalchat '<&e>The <&c>Fire Nation <&e>has failed to raid <server.flag[fire_raiding]><&e>.'
      - narrate format:elementalchat "The <&c>Fire Nation <&e>cannot raid this outpost again for another <&d>2 days<&e>." targets:<server.list_online_players.filter[in_group[FireNation]]>
    #Chi Announcements
    - if <server.has_flag[chi_raiding]>:
      - if <server.flag[chi_raiding].contains_any_text[Chi]>:
        - announce format:elementalchat '<&e>The <&6>Chi Blockers <&e>have failed to reclaim <server.flag[chi_raiding]><&e>.'
        else:
        - announce format:elementalchat '<&e>The <&6>Chi Blockers <&e>have failed to raid <server.flag[chi_raiding]><&e>.'
      - narrate format:elementalchat "<&6>Chi Blockers <&e>cannot raid this outpost again for another <&d>2 days<&e>." targets:<server.list_online_players.filter[in_group[ChiNation]]>



RawRaw



Pastes made: 75780