- mcmonkey studios -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2018/07/02 20:37:22 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
11200
beartender:
  type: assignment
  actions:
    on assignment:
    - trigger name:proximity state:true radius:3
    on enter proximity:
    - if <player.has_flag[beartender_initiated].not> {
      - 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?"
      }
    else {
      - zap s@beartender_feed 2
    }
  interact scripts:
  - 3 beartender_feed
  
beartender_feed:
    type: interact
    steps:
        1:
            chat trigger:
                1:
                   trigger: I'd like a /cookie/ please!
                   script:
                   - 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 beartender_initiated
                   - zap 2
                2:
                  trigger: I feel like some rabbit /stew/
                  script:
                    - 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 beartender_initiated
                    - zap 2
                3:
                   trigger: Mmmm... /pie/
                   script:
                   - 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 beartender_initiated
                   - 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?"
                    - look <player>
                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@magicwater] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
  
  
CookieStuff:
  type: world
  events:
    on player clicks in beartender_menu:
    - determine passively cancelled
    - if <context.item.material.name> == air {
      - queue clear
    }
    - if <context.item.scriptname||null> == honeycookie {
      - if <player.money> >= "5" {
        - money take quantity:5
        - narrate "<&a>$<&e><&a>has been taken from your balance"
        - give honeycookie
        } 
      else {
        - narrate "<&c>You do not have enough money!"
      }
    }
    else if <context.item.scriptname||null> == magicwater {
      - narrate "Here's some magical water!"
      - give magicwater
    }
    - inventory close

#########
#COOKIES
#########
honeycookie:
    type: item
    material: cookie
    display name: Old Fashioned Honey Cookie
    lore:
    - "These are Beartenders favorite cookies!"
    - "<&a>$<&f>5"
    
magicwater:
  type: item
  material: 373
  display name"<&b>Water"
  lore:
  - "Bland. Old. Water."
  - "<&a>$<&f>0"



RawRaw



Pastes made: 52679