; ===================================
; QGO Market Def NPC File : 9Ega-B116
; Gambling House - Switching Room (16th)
; -----------------------------------
; 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> \
		;̰  16°,  Դϴ \
		;̰ Ư濡 ӹ ô ٸа Ƿ ڸ \
		;ȯ ϰ ˴ϴ.  <$USERNAME>԰ ڸȯ Ͻô в\
		;˼.. ̶ ڽ  ٸ ư°.. \
		; е  ֽð..ȣȣȣ Ȥ ̵ Ͻ÷ 濡 ٸ\
		; ȰŴٸ.    ǲ. ȣȣȣȣ \ \
;-------------NEW TEXT-------------------
Ah hello there, <$USERNAME>!\
Welcome to the 16th room of Ma-Bang-Jin, the 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.\\
;-----------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
		; 8° 濡 ִ  ڸ ٲټž մϴ. \
		;8° 濡   ٲܼ   ġ  \
		; 쿡 ٷ ֽʽÿ \ \
;-------------NEW TEXT-------------------
You will switch with the player at the 8th Room. If it is\
empty, we must try again.\\
;-----------END NEW TEXT-----------------
		;<  /@Pena>
<Continue/@Pena>

#ACT
	mov p1 1
	break

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

#ACT
	mov p1 2
	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 3
	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 4
	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 5
	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 6
	break

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

#ACT
	mov p1 7
	break

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

#ACT
	mov p1 8
	break

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

#ACT
	mov p1 9
	break

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

#ACT
	mov p1 10
	break

#ELSEACT
	goto @Penalty



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

#IF
	equal p1 2
#ACT
	ExchangeMap B113
	break

#IF
	equal p1 3
#ACT
	ExchangeMap B114
	break

#IF
	equal p1 4
#ACT
	ExchangeMap B115
	break

#IF
	equal p1 5
#ACT
	ExchangeMap B118
	break

#IF
	equal p1 6
#ACT
	ExchangeMap B119
	break

#IF
	equal p1 7
#ACT
	ExchangeMap B120
	break

#IF
	equal p1 8
#ACT
	ExchangeMap B121
	break

#IF
	equal p1 9
#ACT
	ExchangeMap B122
	break

#IF
	equal p1 10
#ACT
	ExchangeMap B123
	break

