Paste #4914: Untitled Paste

Date: 2014/05/30 17:59:50 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


InventoryScript:
    type: inventory
    inventory: chest
    title: Refinery
    size: 27
    slots:
    - [i@scraps] [] [] [] [] [] [] [] []
    - [] [] [] [] [] [] [] [] []
    - [] [] [] [] [] [] [] [] []

InventoryWorldScript:
    type:world
    events:
        on player clicks in in@InventoryScript:
        - if <context.item> == i@scraps {
          - if <player.inventory.contains[i@T1ore].qty[8] && <player.inventory.contains[i@RefiningPowder].qty[1] {
            - take i@T1ore qty:8
            - take i@RefiningPowder qty:1
            - random {
              - narrate "<dark_gray>The refining failed..."
              - narrate "<dark_gray>The refining failed..."
              - give i@scraps qty:1
              - give i@scraps qty:1
              - give i@scraps qty:1
              - give i@scraps qty:2
              }
            }
          }
        - determine cancelled