Paste #15659: knight

Date: 2015/05/08 14:55:39 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"KnightDavid":
  type: assignment
  interact scripts:
  - 10 necromancerhunt

"necromancerhunt":
  type: interact

  steps:
    1:
      click trigger:
        script:
        - chat "<blue> Shhh... there's nothing to see here servent."
        - narrate "<red> waves you away."
    2:
      proximity trigger:
        - chat "<aqua>Come closer..."

      click trigger:
        script:
        - engage
        - chat "<blue>The necromancer... is near.."
        - wait 2
        - chat "<BLUE>Don't go that way, the necromancer is too powerful... I feel my end... is near..."
        - narrate "<red>You hear a rumble of thunder."
        - weather thunder
        - wait 1
        - chat "<BLUE>It's in the clearing up there! RUN!"
        - wait 1
        - chat "<aqua>Do you wish to continue?"
        - ^narrate "<red>Say<&co>"
        - ^narrate "<white>[<blue>Yes<blue> <gray>or<red> No<white>]"
        - disengage
      chat trigger:
        'Start Questline':
          Trigger: /Yes/, I will continue.
          script:
          - spawn n@10 l@5,68,249,world
          - ^flag <player> Killthenecromancer
          - narrate "<red>Defeat the necromancer"
          - ^zap step:3
        'Deny Questline':
          Trigger: /No/, I can't!
          script:
            - execute as_player "spawn"
            - title stay:3s 'subtitle:<&4>Quest Failed'
          '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 "  <white>[<blue>Yes<blue> <gray>or<red> No<white>]"
    3:
      click trigger:
        script:
        - chat "<aqua>What are you doing?! The necromancer is still living!!"
    4:
      click trigger:
        script:
        - engage
        - give money qty:3000
        - narrate "<aqua>You have picked up <yellow>$3000<aqua> from defeating the necromancer."
        - wait 1
        - narrate "<aqua>The necromancer has been defeated..."
        - wait 1
        - narrate "<aqua>The earth beneath you feels like a cloud, suddenly a surge of energy overwhelms you."
        - wait 3
        - narrate "<aqua>You hear the whisper of ghosts of the royal children the necromancer had eaten calling you to somewhere..."
        - teleport <player> l@140.5,81,288.48841,world
        - ^flag player Killthenecromancer:!
        - ^zap step:2 script:spiritscript
        - disengage
    5:
      click trigger:
        script:
        - narrate "<red><npc.name> Stairs off into the distance."

Quest_Killthenecromancer_World: 
  type: world 
  events: 
    on NPC killed: 
    - if !<player.has_flag[Killthenecromancer]> queue clear 
    - run locally delay:1t wCount 


  wCount: 
    - ^flag player Killthenecromancer:++ 
    - ^if <player.flag[Killthenecromancer].as_int> == 1 { 
      - zap step:4 "script:necromancerhunt" 
      - queue clear 
      } 
    - ^if <player.flag[Killthenecromancer].as_int> > 1 { 
      - narrate "<red>You have killed the necromancer, go check on the valiant Knight." 
      } 


#