Paste #1149: Untitled Paste

Date: 2014/01/06 23:31:27 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"StartDungeon":
    type: assignment

    interact scripts:
    - 10 MewStar

    Actions:
      on assignment:
      - trigger name:click toggle:true

MewStar:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "<yellow>Hello <white><player.name>."
                - wait 1
                - chat "<yellow>Here to enter the <red>Fel Horn Dungeon<yellow>? I hope you brought friends."
                - wait 1
                - chat "<yellow>I also suggest you have all diamond aromor too!"
                - wait 1
                - chat "<yellow>Oh, also to get in I need 1 Mew Star to grant you passage."
                - wait 1
                - chat "<yellow>Do you wish to enter?"
                - chat "<white>Yes <GREEN>or <white>No<GREEN>."
            chat trigger:
                1:
                    trigger: /Yes/, I'm ready!
                    - wait 1
                    - zap step:2
                2:
                    trigger: /No/, I changed my mind.
                    script:
                    - chat "<yellow>Fear not. I don't have the courage to enter either!"
                    - wait 1
                    - narrate "<npc.name> nods."
        2:
            click trigger:
                script:
                  - if <player.inventory.contains[MewNetherStar].qty[1]> {
                    - chat "<yellow>Ok. Hold on I will use the power of the star to get you inside!"
                    - wait 1
                    - narrate "<white><npc.name><yellow> ignites the star..."
                    - wait 1
                    - teleport <player> location:-4117,87,4,MewsPlace3
                    } else {
                    - chat "<yellow>I'm sorry <white><player.name>. <yellow>You need to bring me a <gold>Mew Star<gold> to gain passage."
                    - wait 1
                    - narrate "<npc.name> cries for you."
                    }