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

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

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


; -----------------------------------
[@main-1]
#IF
#ACT
	mov p9 0
#SAY
		;! <$USERNAME> \  
		;̰  22°, ٶǹԴϴ \
		;̰ ֻ  4̻   8ĭ  ̵ \
		;ϽǼ ,    ڰ ð \
		; ŭ ̵ ϽǼ ֽϴ. \ \
;-------------NEW TEXT-------------------
This, <$USERNAME>, is the 4th Windy Room which is\
the 22nd Ma-Bang-Jin room. You can throw a dice and, if its\
value is greater than 4, you will move 8 rooms forward. If not,\
you will move the number of rooms determined by the value of\
the dice.\\
;-----------END NEW TEXT-----------------
		;<ֻ /@race>
<Throw the Dice/@race>



; -----------------------------------
[@race]
#IF
#ACT
	mov p9 1
	movr d0 6
	inc d0 1
	playdice 1 @cube
#SAY
		;ֻ  ֽϴ. \ \  
;-------------NEW TEXT-------------------
The dice has been thrown....\\
;-----------END NEW TEXT-----------------
		;<  /@cube>
<Continue/@cube>


; -----------------------------------
[@cube]
#IF
	large d0 3
#SAY
		; ֻ ڴ <$STR(D0)> Դϴ. \
		; ڰ 4 ̱ ׷ 8ĭ  ̵ \
		; 帮ڽϴ. \ \
;-------------NEW TEXT-------------------
The dice you have thrown shows a value of <$STR(D0)>.\
Since that is more than 4, you will be moved forward\
8 rooms.\\
;-----------END NEW TEXT-----------------
		;<  /@move>
<Continue/@move>

#ELSESAY
		;ֻ  <$STR(D0)>  Դϴ. \ 
		; <$STR(D0)> ŭ  ̵  帮ڽϴ. \ \  
;-------------NEW TEXT-------------------
The dice you have thrown shows a value of <$STR(D0)>.\
You will therefore be moved forward <$STR(D0)> rooms.\\
;-----------END NEW TEXT-----------------
		;<  /@next_cube>  
<Continue/@next_cube>


; -----------------------------------
[@next_cube]
#IF
	equal d0 1 
#ACT
	batchDelay 1
	addbatch B123
	batchmove
	break

#IF
	equal d0 2 
#ACT
	batchDelay 1
	addbatch B123
	addbatch B124
	batchmove
	break

#IF
	equal d0 3 
#ACT
	batchDelay 1
	addbatch B123
	addbatch B124
	addbatch B125
	batchmove
	break


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


; -----------------------------------
[@move]
#IF
#ACT
	batchDelay 1
	addbatch B123
	addbatch B124
	addbatch B125
	addbatch B126
	addbatch B127
	addbatch B128
	addbatch B129
	addbatch B130
	batchmove

