;;Ҫɾ

; @move 4 158 135

[@Main]
#IF
IsAdmin
#SAY
Welcome Master <$USERNAME>\
Would you like to trigger an event?\\
;<Oma's Attack Bichon Wall/@OmaVSbw>\\
<Teleport To Bichon/@movebw>\
<Gamble/@Gamble>\
#ELSESAY
Welcome <$USERNAME>\

;#ACT
;DelayGoto [Local] 3 @Move_Sabuk_Wait

;---------------------------------------------------------------------------------------

[@movebw]
#ACT
MapMove 0 164 230

;---------------------------------------------------------------------------------------

[@Gamble]
#ACT
Loadvalue D4 "QuestDiary\System\LottoSystem.txt" TodaysNumber [%USERNAME]

#IF
EQUAL D4 ""
#ACT
GoTo @Play
#ELSESAY
you cannot play again...\\\
<Leave/@Exit>

[@Play]
#IF
;CheckItem GambleChip 1
#ACT
;Mov p9 1
Take GambleChip 1
;Mov D0 6
;Inc D0 1
PlayDice 2 @Dice
#SAY
{FCOLOR/10}Please Wait...{FCOLOR/12}\

[@Dice]
#SAY
Your number is: {FCOLOR/10}"<$OUTPUT(D0)>"{FCOLOR/12}...\\
<I will come back later/@Later>\

;---------------------------------------------------------------------------------------

[@Later]
#ACT
SaveValue "QuestDiary\System\LottoSystem.txt" TodaysNumber [%USERNAME] %D0
CLOSE

;;Ҫɾ