Paste #37403: Untitled Paste

Date: 2016/11/05 09:01:09 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


rolandquestsinv:
  type: inventory
  title: Roland's Quests
  size: 9
  slots:
  - "[] [] [] [] [] [] [] [] []"

rolandquests:
  type: world
  events:
    on player clicks in <player>rolandquests:
    - determine cancelled
    on player drags in <player>rolandquests:
    - determine cancelled
    on player clicks in rolandshop:
    - determine cancelled
    on player drags in rolandshop:
    - determine cancelled

    on player clicks rolandquestsi in rolandshop:
    - if <player.has_flag[rolandquests]> == false {
      - flag player rolandquests
      - inventory add destination:<player>rolandquests origin:i@RolandsReagents
      - inventory add destination:<player>rolandquests origin:i@rolandshopi slot:9
      - inventory open d:in@<player>rolandquests
    } else {
      - inventory open d:in@<player>rolandquests
    }
    on player clicks rolandshopi in <player>rolandquests:
    - inventory close
    - inventory open d:in@rolandshop

rolandasn:  
  type: assignment
  actions:
    on assignment:  
      - trigger name:click state:true
      - trigger name:chat state:true radius:5
    on click:
      - if <player.has_flag[rolandintro]> == false {
        - narrate "Welcome to my humble shop! Care to browse my wares or are you seeking employment?"
        - flag player rolandintro
        - inventory open d:in@rolandshop
        } else {
        - narrate "Ah! Hello again. What can I do for you?"
        - inventory open d:in@rolandshop
      }
rolandshop:
  type: inventory
  title: Roland's Shop
  size: 36
  slots:
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] [i@rolandquestsi]"

rolandshopi:
  type: item
  material: gold_ingot
  display name: Shop
  lore:
  - "Care to browse my wares?"
  - "<&O>Click here to return to"
  - "shop menu.<&r>"

rolandquestsi:
  type: item
  material: 386
  display name: Quests
  lore:
  - "Looking for work? I might"
  - "have a job or two for ya."
  - "<&O>Click here to view available"
  - "Quests<&r>"

RolandsReagents:
  type: item
  material: 386
  display name: Roland's Reagents
  lore:
  - "Need a little scratch?"
  - "I'll pay ya for some"
  - "'basic' deliveries..."
  - "Quest Points Needed: 0"
  - "Prereq. Quests: None"

AnExoticCustomer:
  type: item
  material: 386
  display name: An Exotic Customer
  lore:
  - "More delivery work. East"
  - "gish and back doesn't quite"
  - "describe it."
  - "Quest Points Needed: 20"
  - "Prereq. Quests: Roland's Reagents"

PeskyCompetition:
  type: item
  material: 386
  display name: Pesky Competition
  lore:
  - "I need a hand swatting some"
  - "bothersome flies."
  - "Quest Points Needed: 500"
  - "Prereq. Quests: An Exotic Customer"