Paste #4477: Untitled Paste

Date: 2014/05/19 22:07:19 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


roy:
    type: assignment
    actions:
      on assignment:
      - trigger name:chat toggle:true
      - trigger name:click toggle:true

    interact scripts:
    - 5 royscript

royscript:
  type: interact
  steps:
    1:
      click trigger:
        script:
        - inject locally 'path:narrate1'
        - zap 2
    2:
      click trigger:
        script:
        - inject locally 'path:narrate1'
      chat trigger:
        1:
          trigger: "/Yes/. <&f><&l>I want the item."
          script:
          - if '<player.inventory.contains[i@bow].qty[1]>' {
            - narrate "<&7><&l>You Already have a Bow! Get Out of here -_-."
            } else {
            - give i@bow qty:1
            - narrate "<&7><&l>This Is your Bow."
            - wait 4s
            - narrate "<&7><&l>This bow is just like any other bow. But this bow is what makes it possible to use our special arrows!" 
            - wait 8s
            }
          - narrate "<&7><&l>These Special Arrows are crafted with items from looted chests, Then they are simply used. Its that simple. There are a total of 20 Arrows."
          - wait 8s
          - narrate "<&7><&l>Here Lets Try this, Take these items. This will give you the items to create a <&d><&l>Lightning Arrow<&7><&l>. Put The Blaze Rod in the top middle box, and the stick in the Center middle box, Then the Feather in the bottom middle box."
          - wait 7s
          - narrate "<&7><&l>Use that Crafting Table on the right, Come back to me when you have created it."
          - give i@Blaze_Rod qty:1
          - give i@Stick qty:1
          - give i@Feather qty:1
          - flag itemcooldown duration:1h
          - zap 3
        2:
          trigger: "/No/.<&7><&l> I do not  want the item."
          script:   
          - narrate "<&7><&l>Well then, Fine, but you might wanna come back."
          - wait 3s
          - zap 1
    3:
      click trigger:
        script:
        - if "<player.inventory.contains.display[strict:<&6>Lightning Arrow].qty[1]>" {
          - narrate "<&7><&l>Well look at you, Your getting the hang of things <&4><&l>    <player.name><&7><&l>. Well ive taught you enough, better get along your way. Just remember these arrows will help you along your travels. Keep that Bow Youll need it.!"
          - take 'bydisplay:<&d>Regeneration Staff'
          - zap 1
          } else if '<player.inventory.contains[i@Blaze_rod].qty[1]>' && '<player.inventory.contains[i@Stick].qty[1]>' && '>player.inventory.contains[i@Feather].qty[1]>' {
          - narrate "&7><&l>Here Craft that Arrow."
          } else {
          - narrate "<&7><&l>Let me check to see if i have any extra items."
          - wait 4s
          - if <player.flag[itemcooldown]> {
          - narrate "<&7><7l>Looks like I'm all out for now, come back later."
            } else {
            - narrate "Looks like I do! Have these."
            - give i@Blaze_Rod qty:1
            - give i@stick qty:1
            - give i@feather qty:1
            - flag itemcooldown duration:1h
            }
          }
  narrate1:
    - narrate "<&7><&l>Welcome <&4><player.name><&7><&l>, I am the <&4><npc.name><&7><&l>. I am here to Teach you about Special arrows! Care to Learn more?"
    - wait 4s
    - narrate "<&f><&l>Type <&f>[<&a><&l>Yes<&f>] <&f><&l>or<&f> [<&a><&l>No<&f>]"
Bow:
    type: item
    no_id: true
    material: i@bow
    display name:Bow
    lore:
    -