Paste #17291: raj

Date: 2015/07/02 13:59:14 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Rajeshnpc:
  type: assignment
  interact scripts:
  - 30 Rajesh

"Rajesh":
  type: interact
  steps:
    1:
      click trigger:
        script:
        - chat "blah"
    2:
      click trigger:
        script:
        - engage
        - chat "<yellow>Amareth must have sent you..."
        - wait 2
        - chat "<yellow>We are a dyeing people and even more so now that the fire demons have lay claim to our land."
        - wait 3
        - chat "<yellow>Are you here to help us friend?"
        - disengage
      chat trigger:
        'Start Questline':
          Trigger: /Yes/, I am here to help you sir, what can I do?
          script:
          - engage
          - chat "<aqua>You are a very brave soul, there is only one way to slow this bloodshed..."
          - wait 2
          - chat "<aqua>If you defeat the master fire demon the rest should dwindle."
          - wait 2
          - chat "<aqua>Do not worry about our people out there, they can hold their own for now."
          - animate <npc> animation:ARM_SWING
          - cast Health_Boost <player> duration: 300 p:2
          - wait 2
          - narrate "<red>Defeat Fire God - Quest Started"
          - flag player firegod:0
          - disengage
          - ^zap step:2
        'Deny Questline':
          Trigger: /No/, I cant do that right now.
          script:
          - chat "<aqua>Good luck on your journey!"

          'What did you say':
            trigger: /REGEX:\w+/
            script:
            - chat "<aqua><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>Go <player.name> and kill the Fire god.."
    4:
      click trigger:
        script:
        - engage
        - chat "<aqua>You have defeated the firegod..."
        - wait 2
        - chat "<aqua>I will send word to Tyrithian of your good deed and the progress of our war."
        - wait 2
        - chat "<aqua>I do not have much <player.name> but please have this..."
        - give emerald <player>
        - give xp qty:200
        - zap step:5
        - zap step:8 "script:beasty"
        - zap step:2 "script:tyrithian"
        - disengage
    5:
      click trigger:
        script:
        - engage
        - chat "<aqua>Return to Tyrithian, I am sure he will commend you for your great deeds."
        - wait 20
        - disengage
firegodworld:
  type: world
  events:
    on npc killed by player:
    - if <npc.name> == "Fire God" {
      - run locally delay:1t Count
      }


  Count:  
      - zap step:4 "script:Rajesh" 
      - title stay:3s 'subtitle:<&6>Defeat The Fire God Quest Finished' 
      - wait 5s 
      - title stay:3s 'subtitle:<&6>Rajesh to Complete' 
      - queue clear  
      - narrate "<red>The Fire God is Dead, Return to Rajesh."