()
%100
;- Check for person in room
[@main]
#if
checkhum N0CL1 1
#Say
Someone is currently in the room.\
You will have to wait\
#ACT
BreakTimeRecall 
#ELSEACT
GOTO @Main2

; -Check to see if started
[@Main2]
#if
check [501] 1
#ACT
BreakTimeRecall 
GOTO @CurCheck
#ELSESAY
Would you like to start Clearout?\
It will cost you 250,000\
You will have 10 mins to clear room\
.\
<Yes/@CStartpet>  -  <No/@eixt>  -   <Leave/@Cleave>


[@Cleave]
#ACT
MAPmove NG01 14 34
break
;- Petcheck
[@CStartpet]
#IF
CHECKSLAVECOUNT > 1
#SAY
You cant use pets as it will mess \
up the amount of mobs left in room.\ 
And don’t think your being  smart to\
summon pets in there, it will only cause\
a hassle for you\
<bye/@eixt>\
#ELSEACT
GOTO @CStart

; - Start clearout
[@CStart]
#If
Checkgold 250000
#ACT
SET [500] 0
SET [501] 1
SET [502] 0
SET [503] 0
SET [504] 0
SET [505] 0
SET [506] 0
SET [507] 0
SET [508] 0
SET [509] 0
SET [510] 0
Take gold 250000
TimeRecall 10
Monclear N0CL1
param1 N0CL1
param2 56
param3 23
mongen Yob 30 3
mapmove N0CL1 53 25


[@CurCheck]
#If
CHECK [500] 1
#ACT
GOTO @CHPrize
#ELSEACT
SET [501] 0
SET [502] 0
SET [503] 0
SET [504] 0
SET [505] 0
SET [506] 0
SET [507] 0
SET [508] 0
SET [509] 0
SET [510] 0
#ELSESAY
You failed. Back luck!\
.\
<Exit/@eixt> 


[@CHPrize]
#if
CHECK [510] 1 
#SAY
Prize 10\
Collect your <prize/@P10>. you won\
(have one free space) (have 5? space)\
.\
#ACT
break
;--------------Prize 9
#if
CHECK [509] 1 
#SAY
Prize 9\
Collect your <prize/@P9>.(have 5? space)\
Or\
Move to <next/@SNext> stage?\
.\
#ACT
break
;--------------Prize 8
#if
CHECK [508] 1 
#SAY
Prize 8\
Collect your <prize/@P8>.(have 5? space)\
Or\
Move to <next/@SNext> stage?\
.\
#ACT
break
;--------------Prize 7
#if
CHECK [507] 1 
#SAY
Prize 7\
Collect your <prize/@P7>.(have 2 free space)\
Or\
Move to <next/@SNext> stage?\
.\
#ACT
break
;--------------Prize 6
#if
CHECK [506] 1 
#SAY
Prize 6\
Collect your <prize/@P6>.(have 2 free space)\
Or\
Move to <next/@SNext> stage?\
.\
#ACT
break
;--------------Prize 5
#if
CHECK [505] 1 
#SAY
Prize 5\
Collect your <prize/@P5>.(have 1 free space)\
Or\
Move to <next/@SNext> stage?\
.\
#ACT
break
;--------------Prize 4
#if
CHECK [504] 1 
#SAY
Prize 4\
Collect your <prize/@P4>.(have 2 free space)\
Or\
Move to <next/@SNext> stage?\
.\
#ACT
break
;--------------Prize 3
#if
CHECK [503] 1 
#SAY
Prize 3\
Collect your <prize/@P3>.(have 2 free space)\
Or\
Move to <next/@SNext> stage?\
.\
#ACT
break
;--------------Prize 2
#if
CHECK [502] 1 
#SAY
Prize 2\
Collect your <prize/@P2>.(have one free space)\
Or\
Move to <next/@SNext> stage?\
.\
#ACT
break
;--------------Prize 1
#if
CHECK [501] 1
#SAY
Prize 1\
Collect your <prize/@P1>. (have one free space)\
Or\
Move to <next/@SNext> stage?\
.\
#ACT
break
;-------------------------------- Stages--------
;-----------------------------------------------
[@SNext]
;- move to 10------
#IF
check [509] 1
#ACT
;- Stage flags ---
SET [510] 1
SET [500] 0
;-Spawn-----
TimeRecall 12
Monclear N0CL1
param1 N0CL1
param2 30
param3 30
mongen TorozorLord 3 30
mongen TorozorSlave 25 30
mongen TorozorWiz 15 30
mapmove N0CL1 53 25
break
;------------------
;- move to 9 ------
;-----------------
#IF
check [508] 1
#ACT
;- Stage flags ---
SET [509] 1
SET [500] 0
;-Spawn-----
TimeRecall 9
Monclear N0CL1
param1 N0CL1
param2 30
param3 30
mongen GhostPirate 30 30
mongen Ghoul 5 30
mongen KingOfTheApes 4 30
mapmove N0CL1 53 25
break
;------------------
;- move to 8 ------
;-----------------
#IF
check [507] 1
#ACT
;- Stage flags ---
SET [508] 1
SET [500] 0
;-Spawn-----
TimeRecall 9
Monclear N0CL1
param1 N0CL1
param2 30
param3 30
mongen EvilSnake 4 30
mongen Ghoul 25 30
mongen GiantKeratoid 25 30
mapmove N0CL1 53 25
break
;------------------
;- move to 7 ------
;-----------------
#IF
check [506] 1
#ACT
;- Stage flags ---
SET [507] 1
SET [500] 0
;-Spawn-----
TimeRecall 8
Monclear N0CL1
param1 N0CL1
param2 30
param3 30
mongen Ghoul 5 30
mongen BoneSlave 30 30
mapmove N0CL1 53 25
break
;------------------
;- move to 6 ------
;-----------------
#IF
check [505] 1
#ACT
;- Stage flags ---
SET [506] 1
SET [500] 0
;-Spawn-----
TimeRecall 6
Monclear N0CL1
param1 N0CL1
param2 56
param3 30
mongen EvilTongs 10 30
mapmove N0CL1 53 25
break
;------------------
;- move to 5 ------
;-----------------
#IF
check [504] 1
#ACT
;- Stage flags ---
SET [505] 1
SET [500] 0
;-Spawn-----
TimeRecall 5
Monclear N0CL1
param1 N0CL1
param2 56
param3 30
mongen BoneElite 10 30
mapmove N0CL1 53 25
break
;------------------
;- move to 4 ------
;-----------------
#IF
check [503] 1
#ACT
;- Stage flags ---
SET [504] 1
SET [500] 0
;-Spawn-----
TimeRecall 6
Monclear N0CL1
param1 N0CL1
param2 56
param3 30
mongen BlackEvilBoar 10 8
mapmove N0CL1 53 25
break
;------------------
;- move to 3 ------
;-----------------
#IF
check [502] 1
#ACT
;- Stage flags ---
SET [503] 1
SET [500] 0
;-Spawn-----
TimeRecall 6
Monclear N0CL1
param1 N0CL1
param2 56
param3 23
mongen BlackMaggot 20 8
mapmove N0CL1 53 25
break
;------------------
;- move to 2 ------
;-----------------
#IF
check [501] 1
#ACT
;- Stage flags ---
SET [502] 1
SET [500] 0
;-Spawn-----
TimeRecall 6
Monclear N0CL1
param1 N0CL1
param2 56
param3 23
mongen AxeSkeleton 30 5
mapmove N0CL1 53 25
break

;-----------------
;---- Prize 1 ----
;-----------------
[@P1]
#ACT
Give EvilYobRing
Goto @CFlags
;-----------------
;---- Prize 2 ----
;-----------------
[@P2]
#ACT
Give DomaBrace 2
Goto @CFlags
;-----------------
;---- Prize 3 ----
;-----------------
[@P3]
#ACT
Give Apeneck 2
Goto @CFlags
;-----------------
;---- Prize 4 ----
;-----------------
[@P4]
#ACT
Give TongsRing 2
Goto @CFlags
;-----------------
;---- Prize 5 ----
;-----------------
[@P5]
#ACT
Give SerpentBraceB
Goto @CFlags
;-----------------
;---- Prize 6 ----
;-----------------
[@P6]
#ACT
Give SerpentBraceR 1
Give SerpentBraceB 1
Goto @CFlags
;-----------------
;---- Prize 7 ----
;-----------------
[@P7]
#ACT
Give MirRing 1
Give GhouldBoots 1
Goto @CFlags
;-----------------
;---- Prize 8 ----
;-----------------
[@P8]
#ACT
Give TaurusBrace 2
Give goldbar 1
Goto @CFlags
;-----------------
;---- Prize 9 ----
;-----------------
[@P9]
#ACT
Give BoneGodRingR 1
Give QueensRing 1
Give Greatbelt
Give TaurusBrace 2
Goto @CFlags
;-----------------
;---- Prize 10 ----
;-----------------
[@P10]
#ACT
give TorozorsGuard 1
give TorozorsEye 1
Give GreatBelt 1
Give BoneGodRingR 1
Give QueensRing 1
Goto @CFlags



[@CFlags]
#ACT
SET [500] 0
SET [501] 0
SET [502] 0
SET [503] 0
SET [504] 0
SET [505] 0
SET [506] 0
SET [507] 0
SET [508] 0
SET [509] 0
SET [510] 0
mapmove N001 28 25

;[500] Complete a clear
;[501] Start 1
;[502] 
;[503] 
;[504] 
;[505] 
;[506] 
;[507] 
;[508] 
;[509] 
;[510]