- D1 Meta Docs - Denizen Script -
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
Date2020/01/24 19:09:07 UTC-08: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
4100
santa:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
    interact scripts:
    - 1 santa_interact


santa_interact:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Hey do you want buy a Teleport?"
                - narrate "yes"
            chat trigger:
                1:
                    trigger: /yes/
                    script:
                    - chat "Ok than pay me 50$"
                    - narrate "<yellow>pay 50"
                    - zap 2
        2:
            chat trigger:
                1:
                    trigger: /pay 50/
                    script:
                    - if <player.radius> < 3:
                        - if <player.money> > 50:
                            - chat "Thank you for your Money."
                            - teleport <player> <location[-545,70,494,world]>
                            - money take quantity:50 from:<[player]>
                            - zap 1
                        - else:
                            - chat "Sorry but you dont have enough money."
                            - zap 1
                    - else:
                        - zap 1



RawRaw



Pastes made: 78061