; ===================================
; QGO Market Def NPC File : 9Ega-B124
; Gambling House - Damage Room (24th)
; -----------------------------------
; 6 July 2003 (Xerxes)
;   - Added New text
; ===================================
[@main]
#IF
	equal p9 0
#ACT
	goto @main-1
	BreakTimeRecall 
	break

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

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


; -----------------------------------
[@main-1]
#IF
#ACT
	mov p9 0
#SAY
		;! <$USERNAME> \  
		;̰  24°,  Դϴ \
		;̰ Ư濡 ӹ ô ٸа Ƿ ڸ \
		;ȯ ϰ ˴ϴ.  <$USERNAME>԰ ڸȯ Ͻô в\
		;˼.. ̶ ڽ  ٸ ư°.. \
		; е  ֽð..ȣȣȣ Ȥ ̵ Ͻ÷ 濡 ٸ\
		; ȰŴٸ.    ǲ. ȣȣȣȣ \ \
;-------------NEW TEXT-------------------
Welcome, <$USERNAME>!, to the 24th room\
of Ma-Bang-Jin, the 2nd Switching room! Here, you will randomly\
change seats with someone sitting in another of the Ma-Bang-Jin\
rooms. Unfortunately you have no control over where you will go.\
If the switched room is empty, you will need to wait until one\
is found that is occupied. Shame about the occupants of the\
other rooms....\\
;-----------END NEW TEXT-----------------
		;<  /@race>
<Continue/@race>


; -----------------------------------
[@Quit]
#IF
#ACT
	map B011


; -----------------------------------
[@race]
#IF
	checkitem GambleChip 1
#ACT
	mov p9 1
	take GambleChip 1
	goto @race1
#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>

#ELSEACT
	mov p9 9


; -----------------------------------
[@race1]
#IF
	random 10
#SAY
		; 26° 濡 ִ  ڸ ٲټž մϴ. \
		;26° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 26th Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 1
	break

#IF
	random 10
#SAY
		; 27° 濡 ִ  ڸ ٲټž մϴ. \
		;27 ° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 27th Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 2
	break

#IF
	random 10
#SAY
		; 30° 濡 ִ  ڸ ٲټž մϴ. \
		;30° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 30th Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 3
	break

#IF
	random 10
#SAY
		; 33° 濡 ִ  ڸ ٲټž մϴ. \
		;33° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 33rd Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 4
	break

#IF
	random 10
#SAY
		; 35° 濡 ִ  ڸ ٲټž մϴ. \
		;35° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 35th Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 5
	break

#IF
random 10
#SAY
		; 2° 濡 ִ  ڸ ٲټž մϴ. \
		;2° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 2nd Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 6
	break

#IF
	random 10
#SAY
		; 14° 濡 ִ  ڸ ٲټž մϴ. \
		;14° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 14th Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 7
	break

#IF
random 10
#SAY
		; 15° 濡 ִ  ڸ ٲټž մϴ. \
		;15° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 15th Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 8
	break

#IF
	random 10
#SAY
		; 18° 濡 ִ  ڸ ٲټž մϴ. \
		;18° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 18th Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 9
	break

#IF
	random 10
#SAY
		; 19° 濡 ִ  ڸ ٲټž մϴ. \
		;19° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 19th Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 10
	break

#ELSEACT
; ## original said 'goto @Penalty'  ##
; ## korean txt says 'goto @race1' ##
; ## amended accordingly            ##
;	goto @Penalty
	goto @race1

; -----------------------------------
[@Pena]
#IF
	equal p1 1
#ACT
	ExchangeMap B126
	break

#IF
	equal p1 2
#ACT
	ExchangeMap B127
	break

#IF
	equal p1 3
#ACT
	ExchangeMap B130
	break

#IF
	equal p1 4
#ACT
	ExchangeMap B133
	break

#IF
	equal p1 5
#ACT
	ExchangeMap B135
	break

#IF
	equal p1 6
#ACT
	ExchangeMap B102
	break

#IF
	equal p1 7
#ACT
	ExchangeMap B114
	break

#IF
	equal p1 8
#ACT
	ExchangeMap B115
	break

#IF
	equal p1 9
#ACT
	ExchangeMap B118
	break

#IF
	equal p1 10
#ACT
	ExchangeMap B119
	break

