; ===================================
; Market Def NPC File : 8Ega-T125
; PeacefulRoom
; -----------------------------------
; Name: GambleWoman
; Job: 
; Map No: T125
; Pos X 11
; Pos Y 9
; File name: *removed*
; Comment: PeacefulRoom

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

[@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
Welcome to the Pilgrims room\
No task for you here, just some light relief\
Would you like to buy something?\
<Buy (HP)DrugBundle/@buyP> \
<Buy (MP)DrugBundle/@buyB> \
No thanks <Role/@pre_cube>
#ACT
breaktimerecall

[@buyP]
#IF
checkitem GambleChip 1
#ACT
take GambleChip 1
give (HP)DrugBundle1
#SAY
There you go\\
<Thanks/@main-1>

[@buyB]
#IF
checkitem GambleChip 1
#ACT
take GambleChip 1
give (MP)DrugBundle 1
#SAY
There you go\\
<Thanks/@main-1>

[@Quit]
#IF
#ACT
map B011

[@pre_cube]
#IF
checkitem GambleChip 1
#ACT
take GambleChip 1
mov p9 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>
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 B126
batchmove

[@Posi2]
#IF
#ACT
batchDelay 1
addbatch B126
addbatch B127
batchmove

[@Posi3]
#IF
#ACT
batchDelay 1
addbatch B126
addbatch B127
addbatch B128
batchmove

[@Posi4]
#IF
#ACT
batchDelay 1
addbatch B126
addbatch B127
addbatch B128
addbatch B129
batchmove

[@Posi5]
#IF
#ACT
batchDelay 1
addbatch B126
addbatch B127
addbatch B128
addbatch B129
addbatch B130
batchmove

[@Posi6]
#IF
#ACT
batchDelay 1
addbatch B126
addbatch B127
addbatch B128
addbatch B129
addbatch B130
addbatch B131
batchmove


