1
// Someone cast an unlock spell
4
tmpy = 491 // The unique code for an unlock order
10
tmpargument = ACTIONMG
23
// Tell the players...
28
// Someone is trying to open it
30
// Can they open the chest?
31
SetTargetToWhoeverBumped
45
tmpargument = ACTIONMG
49
// Give some experience
52
GiveExperienceToTarget
56
tmpargument = ACTIONMG
69
// Tell the players...
73
// Wait before allowing a swap
81
tmpargument = ACTIONMG
87
// Say it's empty... Or check for false bottom
89
// Say the chest is empty...
92
// Content... 0 is normal chest, 2 is false bottom
94
tmpargument = tmpargument & 2
97
// It has a false bottom
100
// Character easily finds the false bottom
105
// Give some experience
107
tmpdistance = EXPROLEPLAY
108
GiveExperienceToTarget
111
// Figure out what to drop... Opposite of first drop
113
tmpargument = tmpargument & 1
119
tmpargument = selfmoney
124
// No more false bottom
130
// Check wisdom until it is found
132
tmpy = rand & 4095 + 3584 // Need between 14 and 30 wisdom
134
// Character finds the false bottom
139
// Give some experience
141
tmpdistance = EXPSECRET
142
GiveExperienceToTarget
145
// Figure out what to drop... Opposite of first drop
147
tmpargument = tmpargument & 1
153
tmpargument = selfmoney
158
// No more false bottom
173
// Content... 0 is money, 1 is items
175
tmpargument = tmpargument & 1
182
tmpargument = selfmoney
187
// No money in a money chest...