Paste #15299: lady

Date: 2015/04/28 17:16:44 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"LadyEvangalia":
  type: assignment
  interact scripts:
  - 10 Silkquest

"Silkquest":
  type: interact

  steps:
    1:
      click trigger:
        script:
        - chat "<aqua>I have nothing for you pesant."
        - narrate "<red><npc.name> Looks away from you."
   2:
      proximity trigger:
        - chat "<aqua>I hope that string will be here soon, I've been waiting a long time."

      click trigger:
        script:
        - chat "<aqua>Ah, you are the young subject who has been asking to meet me..."
        - narrate "<blue><npc.name>Inspects player cautiously."
        - wait 1
        - chat "<aqua>I am a silk maker for the king. A long time ago, the king lost some his children to an evil witch."
        - wait 1
        - chat "<aqua>The same witch that has been taking the children of royal families over the years..."
        - wait 1
        - chat "<aqua>Every summer the king of Hollow sends off a brave subject to kill the evil witch, on their leave he throws a marvellous party."
        - wait 1
        - chat "<aqua>All the noblemen and women wear only the finest clothes. My clothes to be exact. I make the finest cloth around. Now."
        - chat "<aqua>Enough babbling and time to get to work. Bring me the silk of <red>20<aqua> spiders from the Cave of Naut to the east of here."
        - wait 1
        - chat "<aqua>Are you ready to start your quest?"
        - ^narrate "<red>Say<&co>"
        - ^narrate "<blue>Yes<blue> <gray>or<red> No"
      chat trigger:
        'Start Questline':
          Trigger: /Yes/, I'm on it.
          script:
          - listen itemdrop item:silk qty:1 script:silkspiderkill 
          - chat "<aqua>Good, now go <white><player.name><aqua>, head to the east past the mushrooms you will find the cave, it is surrounded by a waterfall at the edge of a lake."
          - narrate "<red>Gather Silk - Quest Started"
          - flag player silkcount:0
          - ^zap step:2
        'Deny Questline':
          Trigger: /No/, I cant do that right now.
          script:
            - chat "<aqua>Then don't come to me for anything."
            - narrate "<white><npc.name>Goes back to sewing."

          'What did you say':
            trigger: /REGEX:\w+/
            script:
            - chat "<white><player.name><yellow>, I don<&sq>t what <&sq><white><context.message><yellow><&sq> means."
            - ^narrate "<red>Say<&co>"
            - ^narrate "  <blue>Yes<blue> <gray>or<red> No"
    3:
      click trigger:
        script:
        - chat "<aqua>I've got a lot of sewing to do, come back when you have all the silk."
        - wait 1
        - chat "<aqua>You only gotten <player.flag[silkcount].asint> silk."
    4:
      click trigger:
        script:
        - chat "<aqua>This is better than I had imagined! <player.name> You didn't even get blood on the silk!"
        - wait 1
        - narrate "<Gather Silk - Quest Completed>"
        - narrate "<aqua>You have received $2000 from Lady Evangalia for completing this quest."
        - zap step:1 script:gettinggems
        - take i@silk qty:20
        - give 

"silkspiderkill":
  type: task
  script:
  - flag player silkcount:++
  - narrate "<red>You collected<player.flag[silkcount].asint>/20 silk."
  - if <player.flag[silkcount].asint> >= 3 run silkquestreward
    else run silkquestcontinue

"silkquestcontinue":
  type: task
  script:
  - ^listen item type:craft silk qty:1 script:silkspiderkill

"silkquestreward":
  type: task
  script:
  - narrate "<red>Your Quest should be completed by now, return to Madam Molly."

"gettinggems":
  type: interact
  steps:
    1:
      proximity trigger:
        - chat "<aqua>I hope that string will be here soon, I've been waiting a long time."

      click trigger:
        script:
        - chat "<aqua>Ah, you are the young subject who has been asking to meet me..."
        - narrate "<blue><npc.name>Inspects player cautiously."
        - wait 1
        - chat "<aqua>I am a silk maker for the king. A long time ago, the king lost some his children to an evil witch."
        - wait 1
        - chat "<aqua>The same witch that has been taking the children of royal families over the years..."
        - wait 1
        - chat "<aqua>Every summer the king of Hollow sends off a brave subject to kill the evil witch, on their leave he throws a marvellous party."
        - wait 1
        - chat "<aqua>All the noblemen and women wear only the finest clothes. My clothes to be exact. I make the finest cloth around. Now."
        - chat "<aqua>Enough babbling and time to get to work. Bring me the silk of <red>20<aqua> spiders from the Cave of Naut to the east of here."
        - wait 1
        - chat "<aqua>Are you ready to start your quest?"
        - ^narrate "<red>Say<&co>"
        - ^narrate "<blue>Yes<blue> <gray>or<red> No"
      chat trigger:
        'Start Questline':
          Trigger: /Yes/, I'm on it.
          script:
          - listen itemdrop item:silk qty:1 script:silkspiderkill 
          - chat "<aqua>Good, now go <white><player.name><aqua>, head to the east past the mushrooms you will find the cave, it is surrounded by a waterfall at the edge of a lake."
          - narrate "<red>Gather Silk - Quest Started"
          - flag player silkcount:0
          - ^zap step:2
        'Deny Questline':
          Trigger: /No/, I cant do that right now.
          script:
            - chat "<aqua>Then don't come to me for anything."
            - narrate "<white><npc.name>Goes back to sewing."

          'What did you say':
            trigger: /REGEX:\w+/
            script:
            - chat "<white><player.name><yellow>, I don<&sq>t what <&sq><white><context.message><yellow><&sq> means."
            - ^narrate "<red>Say<&co>"
            - ^narrate "  <blue>Yes<blue> <gray>or<red> No"
    2:
      click trigger:
        script:
        - chat "<aqua>I've got a lot of sewing to do, come back when you have all the silk."
        - wait 1
        - chat "<aqua>You only gotten <player.flag[silkcount].asint> silk."
    3:
      click trigger:
        script:
        - chat "<aqua>This is better than I had imagined! <player.name> You didn't even get blood on the silk!"
        - wait 1
        - narrate "<Gather Silk - Quest Completed>"
        - narrate "<aqua>You have received $2000 from Lady Evangalia for completing this quest."
        - zap step:1 script:gettinggems
        - take i@silk qty:20