;Info [ Npc Name{Challenges} X=25 Y=36 MapName={UGT_GamesRoom} ]

[@main]
#SAY
I’m the Challenge master.\
Here you can try Challenge to gain prizes\
But it will cost money to enter. Pick a challenge\ \
(<Mob Ladder/@chan1>) -- (<Mob Ladder Extreme /@chan4>) (Must set Prizes)\
(<Clear out /@chan2>) -- (<EmptyBag/@chan5>) (NA/CHECKBAGGAGE Code to lame)\
(<5 player PvP room/@chan3>)\
(<Exchange Medals/@EXmed>)\
<exit/@exit>


[@chan1]
#SAY
This Challenge is to take out a mob or mobs.\
Each item you clear a task you will get the\
Choice to take your prize of move on to next\
Task. Prices get better the further you get.\
(cant take pets, will mess up!)\
<Next/@NChan1>\
<exit/@exit>\

[@chan2]
#SAY
You must clear out a room of mobs in a\
Fixed time limit. After each successful\
Clearing you can take your prize or move\
On for a better prize.\
(cant take pets, will mess up!)
\ \
<Next/@NChan2>\
<exit/@exit>\

[@chan3]
#SAY
This is a small challenge. You need 5\
People to enter and be lvl 35+. The winner will get a \
Medal. you Can exchange medals for prizes\
(you will not get charge for Challenge ATM\
(Loging out will get you jailed in PVP room, Sadly \
Lag outs will to. Use this room at your own risk.\
PVP jail requires a GM to get you out!)\
<Next/@NChan3>, <exit/@exit>\

[@chan4]
#SAY
This Challenge is to take out a mob or mobs.\
Each item you clear a task you will get the\
Choice to take your prize of move on to next\
Task. Prices get better the further you get.\
(cant take pets, will mess up!)\
<Next/@NChan4>\
<exit/@exit>\

[@chan5]
You must have an empty bag to\
Enter this challenge, in there will be many\
Mobs and a boss. You will have 20 minuets\
To do your best. (Cost:300k)\

<Send me in>\
;------------------------------
;-------Empyt bag challange----
;---check hum room one---------
[@CC5]
#if
  checkhum NEBRF1 1
#ACT
  GOTO @C2
#ELSEACT
  Goto @PCHPC1
  break
;---check hum room two-----
[@C2]
#if
  checkhum NEBRF2 1
#ACT
  GOTO @C3
#ELSEACT
  Goto @PCHPC2
  break
;---check hum room tree-----
[@C3]
#if
  checkhum NEBRF3 1
#SAY
  All rooms are full right now\
  .\
  <exit/@exit>\
#ELSEACT
  Goto @PCHPC3
break

;--- Check gold bag and  and roomagain--
;--- Recheck hum on map-----------------
[@PCHPC1]
#IF
  checkhum NEBRF1 1
#SAY
  To late, Room full now\
  .\
  <exit/@exit>\
#ELSEACT
  Goto @CHPC1
;- Check bag and gold
[@CHPC1]
#if
  CheckGold 300000
  checkbaggage
#ACT
;--- Send to map----
  TAKE gold 300000
  Mapmove NEBRF1 1
  Give townteleport
#ELSESAY
  There is a problem..\
  Either you have items in your bag or bar\
  You do not have 300k or\
  <exit/@exit>\
;-------------------------------
;-------------------------One-------------------------------
[@NChan2]
#Say
#IF  
checkhum N0WC1 1
Checklevel 30
#Say
Waiting room is full or your level (30) is to low. \ \
Come back later.\ \
\ \
\ \
<exit/@exit>\
#ELSEACT
GOto @NChan22
[@NChan22]
#Say
#IF  
checkhum N0CL1 1
Checklevel 30
#Say
room is full or your level (30) is to low. \ \
Come back later.\ \
\ \
\ \
<exit/@exit>\
#ELSEACT
mapmove N0WC1 12 13
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
Give townteleport

[@NChan3]
#IF 
checkhum NG03 5
Checklevel 35
#Say
Waiting room is full or your level (35) is to low. \ \
Come back later.\ \
\ \
\ \
<exit/@exit>\
#ELSEACT
mapmove NG03 8 9
set [500] 0
Give townteleport


[@NChan1]
#Say
It will Cost 250,000 gold to enter.\
Do you wish to carry on?\ \
<yes/@check1>, <No/@exit>\

[@NChan4]
#Say
It will Cost 50,000,000 gold to enter.\
Aimed at lvl 45 + but you can try at any level\
Do you wish to carry on?\ \
<yes/@checkEx>, <No/@exit>\



[@check1]
#IF 
checkhum NG02 1
#Say
Only one Player can do challages at\
anytimes. they room is full\ \
\ \
<bye/@exit>
#ElseAct
goto @check2

[@checkEx]
#IF 
checkhum N0GLE 1
#Say
Only one Player can do challages at\
anytimes. they room is full\ \
\ \
<bye/@exit>
#ElseAct
goto @checkEx2
;------------------------------------------------------------
[@checkex2]
#IF 
checkgold 50000000
#Act
take gold 50000000
Monclear N0GLE
mapmove N0GLE 9 28
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
#ElseSay
YOU DONT HAVE 50,000,000 GOLD \
\ \
<bye/@exit>

[@check2]
#IF 
checkgold 250000
#Act
take gold 250000
Monclear NG02
mapmove NG02 24 10
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
#ElseSay
YOU DONT HAVE 250,000 GOLD \
\ \
<bye/@exit>
;------------------------------------------------------------
[@EXmed]
#Say
Exchange Medals for prizes\ \
3 = <PVP_Brace/@CheckMed1> 10 = <PVP_Ring/@CheckMed2>\
20 = <ChampionNeck/@CheckMed3> or <PVP_Neck/@CheckMed3r> \
Exchange ChampionNeck for prize \ \
5 = <PVP_Sword1/@CheckMed4> 8 = <PVP_Sword2/@CheckMed5>\
10 = <PVP_Sword3/@CheckMed6> 20 = <NoItemSet/@CheckMed7>\
<bye/@exit>

[@CheckMed1]
#IF 
checkitem medal 3
#ACT
Give PVP_Brace 1
Take medal 3
#SAY
There you go!\ \
\ \
\ \
\ \
<bye/@exit>

#ELSESAY
What are you trying to pull here?\ \
\ \
\ \
<bye/@exit>
;--

[@CheckMed2]
#IF 
checkitem medal 10
#ACT
Give PVP_Ring 1
Take medal 10
#SAY
There you go!\ \
\ \
\ \
\ \
<bye/@exit>


#ELSESAY
What are you trying to pull here?\ \
\ \
\ \
<bye/@exit>
;--

[@CheckMed3]
#IF 
checkitem medal 20
#ACT
Give ChampionNeck 1
Take medal 20
#SAY
There you go!\ \
\ \
\ \
\ \
<bye/@exit>

#ELSESAY
What are you trying to pull here?\ \
\ \
\ \
<bye/@exit>
;--

[@CheckMed3r]
#IF 
checkitem medal 20
#ACT
Give PVP_Neck 1
Take medal 20
#SAY
There you go!\ \
\ \
\ \
\ \
<bye/@exit>

#ELSESAY
What are you trying to pull here?\ \
\ \
\ \
<bye/@exit>
;--

[@CheckMed4]
#IF 
checkitem ChampionNeck 5
#ACT
Give PVP_Sword1 1
Take ChampionNeck 5
#SAY
There you go!\ \
\ \
\ \
\ \
<bye/@exit>

#ELSESAY
What are you trying to pull here?\ \
\ \
\ \
<bye/@exit>
;--

[@CheckMed5]
#IF 
checkitem ChampionNeck 8
#ACT
Give PVP_Sword2 1
Take ChampionNeck 8
#SAY
There you go!\ \
\ \
\ \
\ \
<bye/@exit>

#ELSESAY
What are you trying to pull here?\ \
\ \
\ \
<bye/@exit>
;--

[@CheckMed6]
#IF 
checkitem ChampionNeck 10
#ACT
Give PVP_Sword3 1
Take ChampionNeck 10
#SAY
There you go!\ \
\ \
\ \
\ \
<bye/@exit>

#ELSESAY
What are you trying to pull here?\ \
\ \
\ \
<bye/@exit>
;--

[@CheckMed7]
#IF 
checkitem ChampionNeck 20
#ACT
Give
Take
#SAY
There you go!\ \
\ \
\ \
\ \
<bye/@exit>

#ELSESAY
What are you trying to pull here?\ \
\ \
\ \
<bye/@exit>
;--