;Info [ Npc Name{GambleWoman} X=10 Y=6 MapName={Heavenroom} ]

;NPC Release 1 (2003) By Geoff
;99% Translated NPCs Including Quests

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

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

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

[@main-1]
#IF
#ACT
mov p9 0
#SAY
Welcome <$USERNAME>.\
This is room 40, Heaven Room, the last room.\
You have almost won.\
There is only one more task to survive.\
I wish you luck my freind\ \
<Continue/@next>

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

[@race]
#ACT
mov p9 9
#SAY
Well done, you have won!\
Now leave this place, you dont need to be here any longer.\ \
<Bye/@Quit>
#ACT
;give BeneditionOil 3
;give GoldBar 2
give BenedictionOil 1
mov p9 9

[@Quit]
#IF
#ACT
map B011


