;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@input]
{
#SAY
Hello <$USERNAME>, Welcome to the Sting Maze!\
You have to travel through 40 rooms filled with various traps\
to finally arrive at your target - Room 40.\
If you go past room 40 you will start again at room 1\
If you run out of chips, you will return here\
If you die, you will return here\
If you fail a task, you will return here\
<[ Buy and Sell Chips ]/@BuySellChip>\
<[ Let me play! ]/@InputRoom>\
<[ See Prizes ]/@CheckPrizes>\
<[ No Thanks ]/@exit>\\\
#ACT
BreakTimeRecall 

[@InputRoom]
#ACT
SET [390] 0
map D1701_001

[@CheckPrizes]
#SAY
CurrentPrizes are\\
StingsTransparentRing(Gamble) - 2 Days\
StingsParalysisRing(Gamble) - 2 Days\
StingsProtectionRing(Gamble) - 2 Days\
StingsMuscularRing(Gamble) - 2 Days\
StingsSkillNecklace(Gamble) - 2 Days\
StingsEdgeShadeDemon(Gamble) - 2 Days\
StingsGambleArmour(Gamble) - 2 Days\
1000 Integral\
Benedicion\
RevivalWater\
RefineStone\\
Please Note The Timer starts on Midnight\
BEFORE you obtain the item\\
<[ Back ]/@input>\\\

[@BuySellChip]
#SAY
I Sell Chips for 5000 per Chip\
I Buy Chips for 2500 per Chip\
<[ Buy 1 Chip ]/@BuyChip(1,5000)> - 5,000 Gold\
<[ Buy 10 Chips ]/@BuyChip(10,50000)> - 50,000 Gold\
<[ Buy 50 Chips ]/@BuyChip(50,250000)> - 250,000 Gold\
<[ Buy 100 Chips ]/@BuyChip(100,500000)> - 500,000 Gold\
<[ Sell 1 Chip ]/@SellChip(1,2500)> - 2,500 Gold\
<[ Sell 10 Chips ]/@SellChip(10,25000)> - 25,000 Gold\
<[ Sell 50 Chips ]/@SellChip(50,125000)> - 125,000 Gold\
<[ Sell 100 Chips ]/@SellChip(100,250000)> - 250,000 Gold\\
<[ Back ]/@input>\\\

[@BuyChip()]
#ACT
   Mov   D1  %ARG(1)
   Mov   D2  %ARG(2)
#IF
   CheckGold  %D2
#ACT
   Take Gold %D2
   Give GambleChip %D1
   Goto @BuySellChip

[@SellChip()]
#ACT
   Mov   D1  %ARG(1)
   Mov   D2  %ARG(2)
#IF
   CheckItem  GambleChip %D1
#ACT
   Take GambleChip %D1
   Give Gold %D2
   Goto @BuySellChip

}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;