Paste #22706: Earth Quest

Date: 2015/11/17 20:43:07 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


ScriptName: EarthQuest
  Type: assignment
  interact scripts:
  - 10 EarthQuestPart1

EarthQuestPart1:
  type: interact
  steps:
    1:
      click trigger:
        script:
        - chat "Greetings traveler, would you be willing to help me?"
      chat trigger:
        1:
          trigger: /Yes/, I'd be happy to!
          script:
          - chat "Great thank you so much."
          - wait 2
          - chat "My name is Gaea, this is my World Tree, Toparite."
          - wait 2
          - chat "Recently I, as well as Toparite, have grown weak."
          - wait 2
          - chat "We need to gain our power back in order to preserve balance in the world."
          - wait 2
          - chat "I can give power back to Toparite with sapplings of other trees."
          - wait 2
          - chat "Please bring me 16 of each type of Sappling!"
          - zap step:2
        2:
          trigger: /No/, I am too busy exploring.
          script:
          - chat "Well thanks anyway, please come back when you have the time."
    2:
      click trigger:
        script:
        - if <player.inventory.contains[SAPLING].qty[16]> && <player.inventory.contains[SAPLING:1].qty[16]> && <player.inventory.contains[SAPLING:2].qty[16]> && <player.inventory.contains[SAPLING:3].qty[16]> && <player.inventory.contains[SAPLING:4].qty[16]> && <player.inventory.contains[SAPLING:5].qty[16]> {
          - ^take sapling qty:16
          - ^take sapling:1 qty:16
          - ^take sapling:2 qty:16
          - ^take sapling:3 qty:16
          - ^take sapling:4 qty:16
          - ^take sapling:5 qty:16
          - chat "You brought me all the sapplings! Thank you."
        } else {
          - chat "You don't have all the saplings yet!"
          - wait 1
          - chat "Remember, there are 6 different types of saplings."
          - wait 1
          - chat "Please come back when you have them all!"
        }