; ===================================
; Market Def NPC File : 8Ega-B128
; Chaoticroom
; -----------------------------------
; Name: GambleWoman
; Job: 
; Map No: B128
; Pos X 10
; Pos Y 6
; File name: *removed*
; Comment: Chaoticroom

;================================================= =
;

[@main]
#IF
equal p9 0
#ACT
goto @main-1
BreakTimeRecall 
break

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

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

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

[@main-1]
#IF
#ACT
mov p9 0
#SAY
Welcome to room 28 <$USERNAME>.\
This is the room of Chaos.\
A room only for strong and brave people.\
Are you prepared?\\
<Yea/@Pena1>

[@Pena1]
#IF
#ACT
mov p9 1
mapmove T1281 13 39
break

#IF
random 3
#ACT
mov p9 1
mapmove T1282 13 39
break

#IF
random 3
#ACT
mov p9 1
mapmove T1283 13 39
break

#ELSEACT
goto @pena1

[@Quit]
#IF
#ACT
map B011

[@race]
Well done, you can continue.\ \
<Move/@pre_Cube>

[@pre_cube]
#IF
checkitem gamblechip 1
#ACT
mov p9 2
take gamblechip 1
movr d0 6
inc d0 1
playdice 1 @cube
#SAY
Continue\ \
<Ok/@cube>
#ELSESAY
<$USERNAME>, You haven't got any chips!\
Go get some if you want to gamble.\ \
<Silly Me/@Quit>
#ELSEACT
mov p9 9

[@cube]
#SAY
Hey, you rolled a <$STR(D0)> \
You can now move <$STR(D0)> rooms forward.\ \
<Sweet, lets move!/@next_cube>

[@next_cube]
#IF
equal d0 1 
#ACT
goto @posi1
break

#IF
equal d0 2 
#ACT
goto @posi2
break

#IF
equal d0 3 
#ACT
goto @posi3
break

#IF
equal d0 4 
#ACT
goto @posi4
break

#IF
equal d0 5
#ACT
goto @posi5
break

#IF
equal d0 6 
#ACT
goto @posi6
break

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

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

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

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

[@Posi5]
#IF
#ACT
batchDelay 1
addbatch B129
addbatch B130
addbatch B131
addbatch B132
addbatch B133
batchmove

[@Posi6]
#IF
#ACT
batchDelay 1
addbatch B129
addbatch B130
addbatch B131
addbatch B132
addbatch B133
addbatch B134
batchmove


