Paste #74959: Bank

Date: 2020/08/26 07:59:09 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


bank:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
        - trigger name:chat state:true
        on click:
        - chat "<white>Hello <player.name>! Would you like to<blue> deposit <white>or <blue>withdraw <white>gold?"
    interact scripts:
    - bank_interact

bank_interact:
    type: interact
    steps:
        1:
            chat trigger:
                1:
                    trigger: /Deposit/
                    script:
                    - execute as_op "deposit <player.name>"
                2:
                    trigger: /Withdraw/
                    script:
                    - execute as_op withdraw