; ===================================
; QGO Market Def NPC File : 9Ega-B112
; Gambling House - Windy Room 3 (12th)
; -----------------------------------
; 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> \
		;̰  12°Դϴ. \
		;̰ ֻ  4ϰ   7ĭ ڷ ̵ \
		;Ͻð Ǹ,   ̻ ڰ ð \
		; ŭ ڷ ̵ Ͻð ˴ϴ. \ \
;-------------NEW TEXT-------------------
Ah I see you have made it to this 12th Ma-Bang-Jin room!\
When you throw your dice, if the value is less than 4\
then you will move back through 7 rooms, otherwise you\
will move back the number of rooms as shown on the dice.\\
;-----------END NEW TEXT-----------------
		;<ֻ /@pre_cube>
<Throw the Dice/@pre_cube>


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

#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



; -----------------------------------
[@cube]
#IF
	small d0 5
#SAY
		; ֻ ڴ <$STR(D0)> Դϴ. \
		; ڰ 4  ϼ̱, ׷ 7ĭ ڷ ̵ \
		; 帮ڽϴ. \ \
;-------------NEW TEXT-------------------
The dice you have thrown shows a value of <$STR(D0)>.\
Since that is less than 4, you will be moved back\
7 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 back that number of rooms.\\
;-----------END NEW TEXT-----------------
		;<  /@move>
<Continue/@dicemove>



; -----------------------------------
[@dicemove]
#IF
	equal d0 5 
#ACT
	batchDelay 1
	addbatch B111
	addbatch B110
	addbatch B109
	addbatch B108
	addbatch B107
	batchmove
	break

#IF
equal d0 6 
#ACT
	batchDelay 1
	addbatch B111
	addbatch B110
	addbatch B109
	addbatch B108
	addbatch B107
	addbatch B106
	batchmove
	break


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


; -----------------------------------
[@move]
#IF
#ACT
	batchDelay 1
	addbatch B111
	addbatch B110
	addbatch B109
	addbatch B108
	addbatch B107
	addbatch B106
	addbatch B105
	batchmove

