Paste #48323: Untitled Paste

Date: 2018/07/02 19:49:12 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


beartender:
  type: assignment
  actions:
    on assignment:
    - trigger name:proximity state:true radius:3
    on enter proximity:
    - narrate "Beartender<&co> Youre awake! Glad to see you. A few folks in town found you knocked out, cart spilled and all just outside the limits of the city here. Brought you right to Beartender they did! Come on, come on! Sit down. What would you like to eat. Tell me, would you like a cookie, rabbit stew or a pie?"
  interact scripts:
  - 3 beartender-feed
beartender-feed:
    type: interact
    steps:
        1:
            chat trigger:
                1:
                   trigger: /cookie/
                   script:
                   - if <player.has_flag[dont_take_another_cookie]> {
                     - chat "You already got your cookies and stuff! Go explore the city!"
                     - queue clear
                     - zap 2
                     }
                   - chat "Good choice!!! I love cookies, Old Fashioned Honey Cookies are my absolute favorite. Here's a dozen! Oh! Here's your stuff too, we found it by you last night."
                   - give cookie quantity:12
                   - execute as_player "kit newplayer"
                   - flag player dont_take_another_cookie
                   - zap 2
                2:
                   trigger: /rabbit stew/
                   script:
                   - if <player.has_flag[dont_take_another_stew]> {
                     - chat "You already got your stuff and stew. Go outside and explore the city!"
                     - queue clear
                     - zap 2
                     }
                   - chat "Mmm, mmm, mmm. A hearty rabbit stew! Sit back and enjoy a bowl of this! Oh! Here's your stuff too, we found it by you last night."
                   - give rabbit_stew
                   - execute as_player "kit <newplayer>"
                   - flag player dont_take_another_stew
                   - zap 2
                3:
                   trigger: /pie/
                   script:
                   - if <player.has_flag[dont_take_another_stew]> {
                     - chat "I hope you enjoyed your pie! Go ahead and head into the city! Theres lots to see!"
                     - queue clear
                     - zap 2
                   }
                   - chat "You know, there's nothing better than a nice slice of pie! I love apple pie the best! Here you go, one pie! Oh! Here's your stuff too, we found it by you last night."
                   - give pumpkin_pie
                   - execute as_player "kit <newplayer>"
                   - flag player dont_take_another_pie
                   - zap 2
        2:
            proximity trigger:
                entry:
                    script:
                    - narrate "Welcome back to the Honey Pot! How has your adventuring been? I bet you're famished, what can I get you?"
                exit:
                    script:
                    - narrate "Thanks for your patronage! Have a great adventure!"
            click trigger:
                script:
                - narrate "Watcha hungry for?"
                - wait 1s
                - inventory open d:in@beartender_menu

beartender_menu:
    type: inventory
    title: Honey Pot Menu
    size: 27
    slots:
    - "[i@honeycookie] [i@water] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"

#########
#COOKIES
#########
honeycookie:
    type: item
    material: cookie
    display name: Old Fashioned Honey Cookie
    lore:
    - "These are Beartenders favorite cookies!"
    - "<&a>$<&f>5"
on player clicks honeycookie in beartender_menu:
    - if <player.money> >= "5" {
      - inventory close
      - money take quantity:5
      - narrate "<&a>$<&e>6 <&a>has been taken from your balance"
      - give old_fashioned_honey_cookie
      } else {
      - inventory close
      - narrate "<&c>You do not have enough money!"
      }
water:
  type: item
  material: 373
  display name: "<&b>Water"
  lore:
  - "Bland. Old. Water."
  - "<&a>$<&f>0"