Paste #5700: General Mine Guard Script

Date: 2014/06/24 19:02:10 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#
#   Proctor for the Archery Test
#
"dillon":
    type: procedure
    debug: false
    actions:
        on assignment:
        - trigger name:chat toggle:true
        - trigger name:click toggle:true
        - lookclose state:true
    interact scripts:
    - 10 MineD

MineD:
    type: interact
    steps:
        Finish:
            click trigger:
                script:
                - if <player.in_group[D]> {
                  chat "You have already ranked up to D, please proceed to the mine or use /warp C."
                  } else if !<player.in_group[C]> {
                    chat "You haven't achieved Rank C yet.  Come back later."
                    }
                    else if <player.money> > 200000 {
                    - chat "Are you ready to move on?"
                    - chat "Taking your fee to rank up."
                    - take money qty:200000
                    - chat "You have now achieved the <gold>Prisoner Rank of D!"
                    - wait 1
                    - execute as_server "manselect Prison"
                    - execute as_server "manuaddsub <player.name> D"
                    - chat "Please enter the mine."
                    } else {
                    - chat "You don't have the required fee to rank up."
                    - chat "Come back when you have $200,000."
                    }
                  }