Paste #54736: Untitled Paste

Date: 2019/06/18 13:33:38 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


welcome:

    type: assignment



    interact scripts:

    - 10 Katarina



    actions:

      on assignment:

      - trigger name:chat toggle:true radius:2

      - trigger name:click toggle:true



Katarina:

    type: interact

    steps:

      '1':

        click trigger:

          script:

          - narrate format:cchat "Welcome, I am <npc.name>, I will get you ready for landing traveler"

          - wait 2

          - narrate format:cchat "To begin, you need to accept our rules, and confirm to me by saying <&9>Yes or <&9>No"

          - execute as_player "/rules"

        chat trigger:

          'yes':

            trigger: '/yes/'

            script:

              - narrate format:cchat "Thank you, for accepting our rules, welcome to (Server name)"
              - wait 5
              -execute as_op "warp airport <player.name>"
              }

          'no':

            trigger: '/no/'

            script:
              - narrate format:cchat "You cant play on here without accepting the rules !"
              - narrate format:cchat "Goodbye !"
              - wait 5
              -execute as_op "kick <player.name>
              }