[@main]
#IF
equal p9 0
#ACT
goto @main-1
BreakTimeRecall 
break

#IF
equal p9 1
#ACT
goto @alive
BreakTimeRecall 
break

#IF
equal p9 9
#ACT
goto @quit
BreakTimeRecall 
break

[@main-1]
#IF
#ACT
mov p9 0
#SAY
Welcome to the Heavenly room, <$USERNAME>!\
This is the last of the Ma-Bang-Jin rooms, and just by\
reaching this point, you have shown great fortitude!\
I will move you to the Heaven room, and you must kill\
an equal adversary as well as trying to evade some\
very difficult monsters. You have 5 minutes; are you\
ready for this challenge?\\
;-----------END NEW TEXT-----------------
		;<  /@next> 
<Yes I Am Ready/@next>

[@next]
#IF
checkitem GambleChip 1
#ACT
take GambleChip 1
mov p9 1
TimeRecall 5
map T140
#ELSESAY
;<$USERNAME>, а Ѱ ó׿. \  
		;  ϱ ؼ а ʿ ϰŵ \  
		; а  ̻  Ҽ ׿.. \  
		;а غ ǰŵ ٽ .. \ \ 
;-------------NEW TEXT-------------------
Oh dear, <$USERNAME>, you don't seem to have any gambling\
chips left... You cannot continue without them. Please return\
when you have acquired some more!\\
;-----------END NEW TEXT-----------------
		;<  /@Quit>
<Leave the Game/@Quit>

mov p9 9

[@alive]
#IF
checkhum T140 1
checkhum B140 2
#SAY
;õǹ濡 ٸ ưô±. \
		;Ÿ  ӹ ϼϽ ϼ̱. \
		;̰ ô ϼ̴µ.. ѹ \
		; ϽŴٸ и    ̴ϴ. \ \
;-------------NEW TEXT-------------------
I see that another player is in the Heaven room...\
You may wait until the task room is clear, or\
you can forego this challenge and start again.\\
;-----------END NEW TEXT-----------------
		;<  /@Quit> 

<Leave the Game/@Quit>

#ACT
mov p9 9
break

#IF
equal p9 0
#ACT
goto @main-1
BreakTimeRecall 
break

#IF
equal p9 9
#ACT
goto @quit
BreakTimeRecall 
break

#ELSESAY
;-------------NEW TEXT-------------------
Congratulations my friend! You are alive, and have succeeded\
in the Heavenly room task! Here is a small gift for your\
bravery and skill in completing the Ma-Bang-Jin!\
A Benediction Oil!\\
;-----------END NEW TEXT-----------------
		;<  /@Quit> 
<Close/@Quit>


#ELSEACT
give BenedictionOil 1
mov p9 9

[@Quit]
#IF
#ACT
map B011


