Paste #50676: Script

Date: 2018/11/12 12:31:27 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20


Guilde_eventSuite2:
    type: world
    debug: false
    events:
      on ARMOR_STAND damaged:
        - inject guildeSysteme_ProtectionHandler_Task_ForArmorStand instantly
guildeSysteme_ProtectionHandler_Task_ForArmorStand:
    type: task
    debug: false
    script:
    - if <context.entity.location.regions.is_empty.not||false> queue clear
    - if <li@Elysea|Centre.contains[<context.entity.location.world.name>].not||false> queue clear
    - if <context.entity.location.cuboids.is_empty||false> queue clear
    - if <context.entity.location.cuboids.get[1].after[cu@].starts_with[ruine]||false> queue clear
    - if <context.entity.location.cuboids.get[1].after[cu@].starts_with[guilde]||false> || <context.entity.location.cuboids.get[1].after[cu@].starts_with[capture]||false> {
      - define guilde 'Guilde_<context.entity.location.cuboids.get[1].split[_].get[4]||false>'
      - if <def[guilde].to_uppercase> != <player.flag[guilde]||false> {
        - determine cancelled
      }
    }