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

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

#IF
	equal p9 2
#ACT
	goto @pena2
	BreakTimeRecall 
	break

#IF
	equal p9 3
#ACT
	goto @pena3
	BreakTimeRecall 
	break

#IF
	equal p9 4
#ACT
	goto @pena4
	BreakTimeRecall 
	break

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


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



; -----------------------------------
[@main-1]
#IF
#ACT
mov p9 0
#SAY
		;! <$USERNAME>.\ 
		;̹  30°,  Դϴ. \
		;̹ 4   ٲ 鼭  \
		; ε Դϴ.  Բ Ͻñ.. \ \
;-------------NEW TEXT-------------------
Welcome to the 30th Ma-Bang-Jin room, <$USERNAME>!\
In this room of Four Fortunes, your luck will reveal\
four different results from your gamble attempts.\
May destiny smile upon you, my friend!\\
;-----------END NEW TEXT-----------------
		;<  /@main-2>
<Continue/@main-2>



; -----------------------------------
[@main-2]
#IF
	checkitem GambleChip 1
#ACT
	take GambleChip 1
	goto @penalty
#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



; -----------------------------------
[@Penalty]
#IF
	random 4
#ACT
	mov p9 1
	goto @pena1
	give GambleChip 1
	break

#IF
	random 4
#ACT
	mov p9 2
	goto @pena2
	take GambleChip 2
	break

#IF
	random 4
#ACT
	mov p9 3
	goto @pena3
	take GambleChip 2
	break

#IF
	random 4
#ACT
	mov p9 4
	goto @pena4
	give GambleChip 2
	break

#ELSEACT
	goto @Penalty



; -----------------------------------
[@pena1]
		; ĭڷ ԵǾϴ. \ 
		; и 1 帮 ϰڽϴ.. \ \
;-------------NEW TEXT-------------------
Luck says that you, <$USERNAME>, \
must travel back one room...\
however I shall give you one gambling chip.\\
;-----------END NEW TEXT-----------------
		;<  /@Posi1>
<Move/@Posi1>

; -----------------------------------
[@pena2]
		; ĭ ڷ ̵ϰ Ǿϴ. \
		;  2 мϵ ϰڽϴ. \
		;ʹϽôٰ? ¿ ׿.   ̷.... \ \
;-------------NEW TEXT-------------------
Luck says that you, <$USERNAME>, \
must travel back two rooms...\
and it will also cost you two gambling chips.\
You think this unfair? You have no choice,\
my friend... it is your destiny.\\
;-----------END NEW TEXT-----------------
		;<  /@Posi2>
<Move/@Posi2>

; -----------------------------------
[@pena3]
		; ĭ  ̵ϰ Ǿϴ. \
		;׿  񰡷 и 2 м ϵ ϰڽϴ \ \
;-------------NEW TEXT-------------------
Luck says that you, <$USERNAME>, \
must travel forward by one room...\
and this will cost you two gambling chips.\\
;-----------END NEW TEXT-----------------
		;<  /@Posi3>
<Move/@Posi3>

; -----------------------------------
[@pena4]
		; ĭ  ̵ϰ Ǿϴ. \
		;  2 ô .. ̽ϴ \
		;û  Ÿ̱. \ \
;-------------NEW TEXT-------------------
Luck says that you, <$USERNAME>, \
must travel forward by two rooms...\
and you have also gained two gambling chips!\\
;-----------END NEW TEXT-----------------
		;<  /@Posi4>
<Move/@Posi4>



; -----------------------------------
[@Posi1]
#IF
#ACT
	batchDelay 1
	addbatch B129
	batchmove

[@Posi2]
#IF
#ACT
	batchDelay 1
	addbatch B129
	addbatch B128
	batchmove

[@Posi3]
#IF
#ACT
	batchDelay 1
	addbatch B131
	batchmove

[@Posi4]
#IF
#ACT
	batchDelay 1
	addbatch B131
	addbatch B132
	batchmove

