Paste #64529: Untitled Paste

Date: 2020/01/24 19:09:07 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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