[@main]
#SAY
Hi There <$USERNAME>, My Name Is Benjamin.\
I Am The Vagary Castle Administrator, How\
May I Be Of Assistance?\ \
<Quest/@StartQuest>\
<Refine Book Exchange/@RBE>\
<Exit/@exit>

[@RBE]
#SAY
As You Are A Valid Member Of The Vagary Castle\
Guild, I Can Exchange Your Unwanted Refine Books.\ \
For Me To Do This Tho Is Not Cheap Or Easy!\ \
<Learn More/@RBE2>

[@RBE2]
#SAY
You Can Exchange MC, DC and SC Books, For Example\
If You Wanted A DC Book It Would Cost You 3 SC Or\
3 MC Books & A Gold Chest.\ \
<I Wish To Perform An Exchange/@ExchangeList>

[@ExchangeList]
<DC Exchange/@DCE>\
<SC Exchange/@SCE>\
<MC Exchange/@MCE>\

[@DCE]
<Exchange/@SC2DC> 3 SC Books & A GoldChest For A DC Book.\ \
<Exchange/@MC2DC> 3 MC Books & A GoldChest For A DC Book.

[@SC2DC]
#IF
CheckItem BookofSC 3
CheckItem GoldChest 1
#ACT
Take BookofSC 3
Take GoldChest 1
Give BookofDC 1
#ELSEACT
Goto @Missing

[@MC2DC]
#IF
CheckItem BookofMC 3
CheckItem GoldChest 1
#ACT
Take BookofMC 3
Take GoldChest 1
Give BookofDC 1
#ELSEACT
Goto @Missing

[@SCE]
<Exchange/@DC2SC> 3 DC Books & A GoldChest For A SC Book.\ \
<Exchange/@MC2SC> 3 MC Books & A GoldChest For A SC Book.

[@DC2SC]
#IF
CheckItem BookofDC 3
CheckItem GoldChest 1
#ACT
Take BookofDC 3
Take GoldChest 1
Give BookofSC 1
#ELSEACT
Goto @Missing

[@MC2SC]
#IF
CheckItem BookofMC 3
CheckItem GoldChest 1
#ACT
Take BookofMC 3
Take GoldChest 1
Give BookofSC 1
#ELSEACT
Goto @Missing

[@MCE]
<Exchange/@DC2MC> 3 DC Books & A GoldChest For A MC Book.\ \
<Exchange/@SC2MC> 3 SC Books & A GoldChest For A MC Book.

[@DC2MC]
#IF
CheckItem BookofDC 3
CheckItem GoldChest 1
#ACT
Take BookofDC 3
Take GoldChest 1
Give BookofMC 1
#ELSEACT
Goto @Missing

[@SC2MC]
#IF
CheckItem BookofSC 3
CheckItem GoldChest 1
#ACT
Take BookofSC 3
Take GoldChest 1
Give BookofMC 1
#ELSEACT
Goto @Missing

[@Missing]
#SAY
You Lack The Items To Complete The Exchange Sorry.\ \
<Exit/@exit>

[@StartQuest]
#SAY
I've Heard Rumours Of Orbs Now Being Available....\
Would You Like An Orb <$USERNAME>?\ \
<Yes/@GetOrb>\
<No Thanks I'll Pass/@exit>\ \
<Tele Me To Vagary Pit/@Move2VP>\

[@Move2VP]
#SAY
You May Go In The Cave For 30 Minutes,\
Then You Will Be Recalled.\ \
<Go In/@Move2VPNow>

[@Move2VPNow]
#ACT
TIMERECALL 45
Map 66
Give TownTeleport
break

[@GetOrb]
#SAY
Well They Aint Free But I Can Strike A Bargain With You.\ \
Bring Me 3 Orb Fragments & I'll Allow You To Select The\
Orb Of Your Choosing.\ \
<I Have The Orb Fragments/@HaveFragments>\

[@HaveFragments]
#IF
CheckItem OrbFragment 3
#ACT
Goto @PickOrb
#ELSEACT
Goto @FragMissing

[@FragMissing]
#SAY
You Do Not Have All The Fragments.\ \
<Exit/@exit>

[@PickOrb]
#SAY
ThankYou So Much, Please Take Your Pick Of My Orbs.\ \
<DC Orb/@GiveDCOrb>\
<SC Orb/@GiveSCOrb>\
<MC Orb/@GiveMCOrb>\
<Luck Orb/@GiveLuckOrb>\

[@GiveDCOrb]
#IF
CheckItem OrbFragment 3
#ACT
Take OrbFragment 3
Give DC_Orb 1
#SAY
Here Is Your Orb.\ \
<Exit/@exit>\
#ELSEACT
Goto @CheatBan

[@GiveSCOrb]
#IF
CheckItem OrbFragment 3
#ACT
Take OrbFragment 3
Give SC_Orb 1
#SAY
Here Is Your Orb.\ \
<Exit/@exit>\
#ELSEACT
Goto @CheatBan

[@GiveMCOrb]
#IF
CheckItem OrbFragment 3
#ACT
Take OrbFragment 3
Give MC_Orb 1
#SAY
Here Is Your Orb.\ \
<Exit/@exit>\
#ELSEACT
Goto @CheatBan

[@GiveLuckOrb]
#IF
CheckItem OrbFragment 3
#ACT
Take OrbFragment 3
Give LuckOrb 1
#SAY
Here Is Your Orb.\ \
<Exit/@exit>\
#ELSEACT
Goto @CheatBan

[@CheatBan]
#SAY
BUG EXPLOITING IS A BANNABLE OFFENCE!



