Paste #38323: Untitled Paste

Date: 2016/12/14 15:32:15 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


SafariAssign:
    type: assignment
    interact scripts:
    - 10 Safari

Safari:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - if <player.has_flag[safari_cooldown]>
                {
                    - narrate format:cchat "You may play the Safari Game again in <player.flag[safari_cooldown].expiration.formatted>"
                }
                - if !<player.has_flag[safari_cooldown]>
                {
                    - ^narrate format:cchat "Do you want to play the Safari Game?"
                    - wait 1
                    - execute as_server "clear <player>"
                    - flag player safari_cooldown duration:1s
                    - wait 10t
                    - narrate format:cchat "Here are 30 Safari Balls, Have Fun!"
                    - ^give i@4142 qty:30
                    - ^flag player insafari_cooldown duration:2m
                    - ^teleport player l@-1327,107,-6468,world
                    - if !<player.has_flag[insafari_cooldown]>
                    {
                        - teleport player l@-278,107,234,world
                    }
                }