Date: 2014/06/24 19:02:10 UTC-07:00
Type: Denizen Script
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
#
# 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."
}
}