Paste #32064: Untitled Paste

Date: 2016/03/27 16:28:13 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Recruit:
  type: assignment
  actions: 
    on assignment:
    - trigger name:click state:true
    on click:
    - run ConquestTransport
  interact scripts:
  - 1 Recruit_Interact

Recruit_Interact:
  type: interact
  steps:
    1: 
      click trigger:
        script:
        - narrate "<&c><&l>[Conquest] <&6>Would you like to teleport to the Conquest Island?|<&a>Yes <&6>or <&4>No?"
      chat trigger:
        1:
          trigger: /Yes/
          script:
          - run ConquestTransport
        2:
          trigger: /No/
          script:
          - determine cancelled

ConquestTransport:
  type: task
  script:
  - if <player.has_flag[ConquestTransport]> == true {
    - narrate "<&c><&l>[Conquest] <&6>You're already about to be teleported to the Capture Point!"
  }
  else {
    - flag player ConquestTransport duration:130s
    - narrate "<&c><&l>[Conquest] <&6>You will be teleported to the Conquest Point in 2 minutes."
    - wait 30s
    - narrate "<&c><&l>[Conquest] <&6>You will be teleported to the Conquest Point in 1 minute and 30 seconds."
    - wait 30s
    - narrate "<&c><&l>[Conquest] <&6>You will be teleported to the Conquest Point in 1 minute."
    - wait 30s
    - narrate "<&c><&l>[Conquest] <&6>You will be teleported to the Conquest Point in 30 seconds."
    - wait 15s
    - narrate "<&c><&l>[Conquest] <&6>You will be teleported to the Conquest Point in 15 seconds."
    - wait 10s
    - narrate "<&c><&l>[Conquest] <&6>You will be teleported to the Conquest Point in 5 seconds."
    - wait 5s
    - teleport <player.name> <l@210,64,383,CPM>
    - narrate "<&c><&l>[Conquest] <&6>You've been teleported!"
  }