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

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

[@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
Hello <$USERNAME>\
Welcome to room 16\
You will more to a random room from here, and change places with someone\
Are you ready <$USERNAME>?\
Well off we go!\ \
<Ok/@race>

[@Quit]
#IF
#ACT
map B011

[@race]
#IF
checkitem gamblechip 1
#ACT
mov p9 1
take gamblechip 1
goto @race1
#ELSESAY
<$USERNAME>, you haven't got any chips!\
Go get some if you want to gamble\ \
<Silly Me/@Quit>
#ELSEACT
mov p9 9

[@race1]
#IF
random 10
#SAY
You will change places with someone in room 8\ \
<Move/@Pena>
#ACT
mov p1 1
break

#IF
random 10
#SAY
You will change places with someone in room 13\ \
<Move/@Pena>
#ACT
mov p1 2
break

#IF
random 10
#SAY
You will change places with someone in room 14\ \
<Move/@Pena>
#ACT
mov p1 3
break

#IF
random 10
#SAY
You will change places with someone in room 15\ \
<Move/@Pena>
#ACT
mov p1 4
break

#IF
random 10
#SAY
You will change places with someone in room 18\ \
<Move/@Pena>
#ACT
mov p1 5
break

#IF
random 10
#SAY
You will change places with someone in room 19\ \
<Move/@Pena>
#ACT
mov p1 6
break

#IF
random 10
#SAY
You will change places with someone in room 20\ \
<Move/@Pena>
#ACT
mov p1 7
break

#IF
random 10
#SAY
You will change places with someone in room 21\ \
<Move/@Pena>
#ACT
mov p1 8
break

#IF
random 10
#SAY
You will change places with someone in room 22\ \
<Move/@Pena>
#ACT
mov p1 9
break

#IF
random 10
#SAY
You will change places with someone in room 23\ \

<Move/@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


