Paste #942: Draven

Date: 2014/01/02 17:31:23 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


DravenScriptAs:
  Type: Assignment
  Interact Scripts:
  - 10 DravenScript
  - 20 DravenScriptRet
DravenScript:
  Type: Interact
  Requirements:
    Mode: All
    List:
    - TIME day
    Steps:
      1:
        Click Trigger:
          Script:
          - if <player.inventory.contains[DIAMOND_SWORD.qty[1]> {
            - CHAT "That's a mighty fine blade you've got there..."
            - WAIT 2
            - CHAT "Would you like me to sharpen it?"
            - ANNOUNCE "<NPC.NAME> wants to add <GOLD>SHARPNESS II<GREEN> to your <GOLD>DIAMOND SWORD<GREEN>!"
            - ANNOUNCE "Type <RED>YES<GREEN> or <RED>NO<GREEN>!"
            - ZAP 2
            } else {
            - CHAT "I'm just a simple enchanter.."
            }
        Chat Trigger:
          1:
            Trigger: /Yes/, I would!
            Script:
            - CHAT "Great! Hand it over!"
            - ANNOUNCE "<NPC>NAME> takes the <GOLD>DIAMOND SWORD<GREEN>!
            - WAIT 2
            - CHAT "Come back at <GOLD>NIGHT<GREEN> and it will be sharpened!"
          2:
           Trigger: /No/ thanks!
           Script:
           - CHAT "Very well, your loss."
DravenScriptRet:
  Type: Interact
  Requirements:
    Mode: All
    List:
    - TIME Night
    - scripts finished 'Script:DravenScript'
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "Ah, you're back! Here's your weapon."
        - GIVE 'DIAMOND_SWORD' 'QTY:1'
        - ANNOUNCE "<NPC.NAME> hands you the <GOLD>DIAMOND SWORD<GREEN>!
        - ZAP 2              
    2:
      Click Trigger:
        Script:
        -CHAT "Has that weapon served well for you?"