Paste #20354: jason

Date: 2015/09/24 02:51:20 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Jason:
  type: assignment
  debug: false
  actions:
    on assignment:
    - trigger name:click toggle:true
    - trigger name:chat toggle:true
    - lookclose state:true
  interact scripts:
  - 10 jason_interact

jason_interact:
  type: interact
  Steps:
      1:
        click trigger:
          Script:
          - narrate "<dark_green>Jason<white><&co> Can you help me please?"
          - wait 2
          - narrate "<dark_green>Jason<white><&co> I need something from the blacksmith"
          - narrate "<blue> Type yes or no"
      2:
        chat trigger:
         1:
          trigger: /yes/, how can i help you?
           script:
           - narrate "<dark_green>Jason<white><&co> Ohh... thank you, get a <blue>[Gold Ingot]<white> to me..."
           - wait 1
           - narrate "<dark_green>Jason<white><&co> I think the blacksmith took it, he loves gold more than anything else..."
           - wait 2
           - narrate "<dark_green>Jason<white><&co> For about 9 month ago he was a very happy man, he had alot of friends, we all loved him but then.."
           - wait 2
           - narrate "<dark_green>Jason<white><&co> But then he took to the Kingdom of Dwarfs to talk with some old friends, he came back 1 month later.."
           - wait 2
           - narrate "<dark_green>Jason<white><&co> And then he only talked about gold, every single day.. but now he won't even come up"
           - wait 2
           - narrate "<dark_green>Jason<white><&co> It's so sad..."
           - wait 1
           - narrate "<grey>[Quest: Find and deliver the gold ingot to Jason]"
           - zap step:3
         2:
          trigger: /no/, im too busy
          script:
          - narrate "<dark_green>Jason<white><&co> okay , come back later then."
          - zap step:1
      3:
       click trigger:
          script:
          - if <player.inventory.contains[GOLD_INGOT].qty[1]> {
          - take gold_ingot qty:1
          - wait 1
          - narrate "<dark_green>Jason<white><&co> Thank you so much."
          - wait 1
          - narrate "<dark_green>Jason<white><&co> Walk around and try to find a new quest."
          - wait 2
          - narrate "<dark_green>Jason<white><&co> I think my friend jeffery can help you!"
          - wait 2
          - narrate "<dark_green>Jason<white><&co> Here is your reward my friend."
          - give i@Copper qty:13
          - zap step:4
          } else {
          - narrate "<dark_green>Jason<white><&co> Go find my gold ingot!"
          - wait 2
          - narrate "<dark_green>Jason<white><&co> come back when you found it."
          }
      4:
       click trigger:
          script:
          - narrate "<dark_green>Jason<white><&co> Thank you for the help last time."

Copper:
  type: item
  material: brick
  display name: <red>Copper
  lore: <dark_aqua>Worth<&co>1 Copper