[@upgrade]
{
Hi <$USERNAME> I can upgrade your items\
(Will cost 1 gold bar and items)\
<Armour/@arm>  --  <Right Brace/@BracR> (Right onscreen)\
<Weapon/@wep>  --  <Left Brace/@BracL>  (Left onscreen)\
<Necky/@necky> --  <Right Ring/@RingR>  (Right onscreen)\
<Helm/@Helm>   --  <Left Ring/@RingL>   (Left onscreen)\
Info:<How Upgrade works?/@Helpup>\
<Back/@main>

[@Helpup]
#SAY
You need to collect the books asked for\
And Put the item on you want to upgrade.\
Then upgrade it. You will get one of 2 \
Messages in your text window.\
<Next/@Helpup2>  <Back/@main>   <Exit/@exit>\ 

[@Helpup2]
#SAY
A blue message means that the upgrade\
Worked and a red message means it failed.\
On a failure the item will reset to Database \
defaults. (take item off after Attempts to \
see change)\
<Back/@Helpup>  <main/@main>   <Exit/@exit>\ 

[@Helm]
Add what stats to ( <$HELMET> )? \
<**(DONT FORGET TO HAVE ITEM ON!!!)***>\
<**(REMEMBER YOU NEED A GOLD BAR!!)***>\
<Ac/@uph1> (need BookofHelm) \
<Dc/@uph3> (need BookofHelm/DC)\
<Mc/@uph4> (need BookofHelm/MC)\
<Sc/@uph5> (need BookofHelm/SC)\
<Cancel/@main>



[@arm]
<**(DONT FORGET TO HAVE ITEM ON!!!)***>\
<**(REMEMBER YOU NEED A GOLD BAR!!)***>\
Add what stats to ( <$DRESS> )?\
<Ac/@up1>  (need BookofArmor)\
<Amc/@up2> (need BookofArmor)\
<Dc/@up3>  (need BookofArmor/DC)\
<Mc/@up4>  (need BookofArmor/MC)\
<Sc/@up5>  (need BookofArmor/SC)\
<Cancel/@main>

[@wep]
<**(DONT FORGET TO HAVE ITEM ON!!!)***>\
<**(REMEMBER YOU NEED A GOLD BAR!!)***>\
Add what stats to <$WEAPON>? \
<ACC/@upw6> (need BookofDC/SC/MC)\
<DC/@upw1>  (need BookofDC)\
<MC/@upw2>  (need BookofMC)\
<SC/@upw3>  (need BookofSC)\
<Luck/@upw4> (need BookofDC/MC/SC)\  
<Cancel/@main>

[@Necky]
<**(DONT FORGET TO HAVE ITEM ON!!!)***>\
<**(REMEMBER YOU NEED A GOLD BAR!!)***>\
Add what stats to ( <$NECKLACE> )? \
<Acc - HP rec - M.eva /@upn1>  (need BookofNecky) \
<Agil - MP rec - luck /@upn2>  (need BookofNecky) \
<Dc/@upn3> (need BookofNecky/DC) \
<Mc/@upn4> (need BookofNecky/MC) \
<Sc/@upn5> (need BookofNecky/SC) \
<Cancel/@main>

[@BracR]
<**(DONT FORGET TO HAVE ITEM ON!!!)***>\
<**(REMEMBER YOU NEED A GOLD BAR!!)***>\
Add what stats to ( <$ARMRING_L> )? \
<ACC - AC /@upb1>  (need BookofBrace) \
<Agi - AMC /@upb2> (need BookofBrace)\
<Dc/@upb3>  (need BookofBrace/DC)\
<Mc/@upb4>  (need BookofBrace/MC)\
<Sc/@upb5>  (need BookofBrace/SC)\
<Cancel/@main>

[@BracL]
<**(DONT FORGET TO HAVE ITEM ON!!!)***>\
<**(REMEMBER YOU NEED A GOLD BAR!!)***>\
Add what stats to ( <$ARMRING_R> )? \
<ACC - AC /@upbl1>   (need BookofBrace)\
<Agi - AMC /@upbl2>  (need BookofBrace)\
<Dc/@upbl3>  (need BookofBrace/DC)\
<Mc/@upbl4>  (need BookofBrace/MC)\
<Sc/@upbl5>  (need BookofBrace/SC)\
<Cancel/@main>

[@RingR]
<**(DONT FORGET TO HAVE ITEM ON!!!)***>\
<**(REMEMBER YOU NEED A GOLD BAR!!)***>\
Add what stats to ( <$RING_L> )? \
<AC - P.eva /@upRR1>  (need BookofRing)\
<AMC - p.Rec/@upRR2>  (need BookofRing)\
<Dc/@upRR3>  (need BookofRing/DC)\
<Mc/@upRR4>  (need BookofRing/MC)\
<Sc/@upRR5>  (need BookofRing/SC)\
<Cancel/@main>


[@RingL]
<**(DONT FORGET TO HAVE ITEM ON!!!)***>\
<**(REMEMBER YOU NEED A GOLD BAR!!)***>\
Add what stats to ( <$RING_R> )? \
<AC - P.eva /@upRL1>  (need BookofRing)\
<AMC - p.Rec/@upRL2>  (need BookofRing)\
<Dc/@upRL3>  (need BookofRing/DC)\
<Mc/@upRL4>  (need BookofRing/MC)\
<Sc/@upRL5>  (need BookofRing/SC)\
<Cancel/@main>

[@test22]
Add what stats to <$DRESS>? \
<Ac/@upt1>\
<Amc/@upt2>\
<Dc/@upt3>\
<Mc/@upt4>\
<Sc/@upt5>\
<Cancel/@main>


;----weapon------------------------------------------------
[@upw1]
#IF
Checkitem Goldbar 1
Checkitem BookofDC 1
#ACT
Take Goldbar 1
Take BookofDC 1
UPGRADEITEMEX 1 0 2 4 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upw2]
#IF
Checkitem Goldbar 1
Checkitem BookofMC 1
#ACT
Take Goldbar 1
Take BookofMC 1
UPGRADEITEMEX 1 1 2 2 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upw3]
#IF
Checkitem Goldbar 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofSC 1
UPGRADEITEMEX 1 2 2 2 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upw4]
#IF
Checkitem Goldbar 1
Checkitem BookofDC 1
Checkitem BookofMC 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofDC 1
Take BookofMC 1
Take BookofSC 1
UPGRADEITEMEX 1 3 2 2 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upw6]
#IF
Checkitem Goldbar 1
Checkitem BookofDC 1
Checkitem BookofMC 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofDC 1
Take BookofMC 1
Take BookofSC 1
UPGRADEITEMEX 1 5 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

;-- arm ------------------------------------
[@up1]
#IF
Checkitem Goldbar 1
Checkitem BookofArmor 1
#ACT
Take Goldbar 1
Take BookofArmor 1
UPGRADEITEMEX 0 0 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@up2]
#IF
Checkitem Goldbar 1
Checkitem BookofArmor 1
#ACT
Take Goldbar 1
Take BookofArmor 1
UPGRADEITEMEX 0 1 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@up3]
#IF
Checkitem Goldbar 1
Checkitem BookofArmor 1
Checkitem BookofDC 1
#ACT
Take Goldbar 1
Take BookofArmor 1
Take BookofDC 1
UPGRADEITEMEX 0 2 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@up4]
#IF
Checkitem Goldbar 1
Checkitem BookofArmor 1
Checkitem BookofMC 1
#ACT
Take Goldbar 1
Take BookofArmor 1
Take BookofMC 1
UPGRADEITEMEX 0 3 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@up5]
#IF
Checkitem Goldbar 1
Checkitem BookofArmor 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofArmor 1
Take BookofSC 1
UPGRADEITEMEX 0 4 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1
;---- necky

[@upn1]
#IF
Checkitem Goldbar 1
Checkitem BookofNecky 1
#ACT
Take Goldbar 1
Take BookofNecky 1
UPGRADEITEMEX 3 0 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upn2]
#IF
Checkitem Goldbar 1
Checkitem BookofNecky 1
#ACT
Take Goldbar 1
Take BookofNecky 1
UPGRADEITEMEX 3 1 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upn3]
#IF
Checkitem Goldbar 1
Checkitem BookofNecky 1
Checkitem BookofDC 1
#ACT
Take Goldbar 1
Take BookofNecky 1
Take BookofDC 1
UPGRADEITEMEX 3 2 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upn4]
#IF
Checkitem Goldbar 1
Checkitem BookofNecky 1
Checkitem BookofMC 1
#ACT
Take Goldbar 1
Take BookofNecky 1
Take BookofMC 1
UPGRADEITEMEX 3 3 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upn5]
#IF
Checkitem Goldbar 1
Checkitem BookofNecky 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofNecky 1
Take BookofSC 1
UPGRADEITEMEX 3 4 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

;----*****************************Helm
[@uph1]
#IF
Checkitem Goldbar 1
Checkitem BookofHelm 1
#ACT
Take Goldbar 1
Take BookofHelm 1
UPGRADEITEMEX 4 0 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@uph3]
#IF
Checkitem Goldbar 1
Checkitem BookofHelm 1
Checkitem BookofDC 1
#ACT
Take Goldbar 1
Take BookofHelm 1
Take BookofDC 1
UPGRADEITEMEX 4 2 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@uph4]
#IF
Checkitem Goldbar 1
Checkitem BookofHelm 1
Checkitem BookofMC 1
#ACT
Take Goldbar 1
Take BookofHelm 1
Take BookofMC 1
UPGRADEITEMEX 4 3 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@uph5]
#IF
Checkitem Goldbar 1
Checkitem BookofHelm 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofHelm 1
Take BookofSC 1
UPGRADEITEMEX 4 4 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1


;----**************************bracr
[@upb1]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
#ACT
Take Goldbar 1
Take BookofBrace 1
UPGRADEITEMEX 5 0 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upb2]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
#ACT
Take Goldbar 1
Take BookofBrace 1
UPGRADEITEMEX 5 1 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upb3]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
Checkitem BookofDC 1
#ACT
Take Goldbar 1
Take BookofBrace 1
Take BookofDC 1
UPGRADEITEMEX 5 2 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upb4]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
Checkitem BookofMC 1
#ACT
Take Goldbar 1
Take BookofBrace 1
Take BookofMC 1
UPGRADEITEMEX 5 3 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upb5]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofBrace 1
Take BookofSC 1
UPGRADEITEMEX 5 4 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

;----*********************Left brace
[@upbl1]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
#ACT
Take Goldbar 1
Take BookofBrace 1
UPGRADEITEMEX 6 0 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upbl2]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
#ACT
Take Goldbar 1
Take BookofBrace 1
UPGRADEITEMEX 6 1 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upbl3]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
Checkitem BookofDC 1
#ACT
Take Goldbar 1
Take BookofBrace 1
Take BookofDC 1
UPGRADEITEMEX 6 2 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upbl4]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
Checkitem BookofMC 1
#ACT
Take Goldbar 1
Take BookofBrace 1
Take BookofMC 1
UPGRADEITEMEX 6 3 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upbl5]
#IF
Checkitem Goldbar 1
Checkitem BookofBrace 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofBrace 1
Take BookofSC 1
UPGRADEITEMEX 6 4 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

;----****************Rightring
[@upRR1]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
#ACT
Take Goldbar 1
Take BookofRing 1
UPGRADEITEMEX 7 0 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1


[@upRR2]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
#ACT
Take Goldbar 1
Take BookofRing 1
UPGRADEITEMEX 7 1 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1


[@upRR3]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
Checkitem BookofDC 1
#ACT
Take Goldbar 1
Take BookofRing 1
Take BookofDC 1
UPGRADEITEMEX 7 2 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upRR4]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
Checkitem BookofMC 1
#ACT
Take Goldbar 1
Take BookofRing 1
Take BookofMC 1
UPGRADEITEMEX 7 3 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1


[@upRR5]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofRing 1
Take BookofSC 1
UPGRADEITEMEX 7 4 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

;----****************Leftring
[@upRL1]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
#ACT
Take Goldbar 1
Take BookofRing 1
UPGRADEITEMEX 8 0 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1


[@upRL2]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
#ACT
Take Goldbar 1
Take BookofRing 1
UPGRADEITEMEX 8 1 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1


[@upRL3]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
Checkitem BookofDC 1
#ACT
Take Goldbar 1
Take BookofRing 1
Take BookofDC 1
UPGRADEITEMEX 8 2 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1

[@upRL4]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
Checkitem BookofMC 1
#ACT
Take Goldbar 1
Take BookofRing 1
Take BookofMC 1
UPGRADEITEMEX 8 3 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1


[@upRL5]
#IF
Checkitem Goldbar 1
Checkitem BookofRing 1
Checkitem BookofSC 1
#ACT
Take Goldbar 1
Take BookofRing 1
Take BookofSC 1
UPGRADEITEMEX 8 4 2 1 2
GOTO @suc
#ELSEACT
GOTO @FAIL1



;----*****************************test
[@upt1]
#ACT
UPGRADEITEM 1 0 2 10 0
GOTO @suc
[@upt2]
#ACT
UPGRADEITEM 1 1 2 10 0
GOTO @suc
[@upt3]
#ACT
UPGRADEITEM 1 2 2 10 0
GOTO @suc
[@upt4]
#ACT
UPGRADEITEM 1 3 2 10 0
GOTO @suc
[@upt5]
#ACT
UPGRADEITEM 1 4 2 10 0
GOTO @suc
[@upt6]
#ACT
UPGRADEITEMEX 1 1 0 1 0
GOTO @suc
[@upt7]
#ACT
UPGRADEITEMEX 1 1 1 1 0
GOTO @suc
[@upt8]
#ACT
UPGRADEITEMEX 1 1 2 1 0
GOTO @suc
[@upt9]
#ACT
UPGRADEITEMEX 1 1 3 1 0
GOTO @suc
[@upt10]
#ACT
UPGRADEITEMEX 11 1 4 1 0
GOTO @suc
[@upt11]
#ACT
UPGRADEITEMEX 1 1 5 1 0
GOTO @suc
[@upt12]
#ACT
UPGRADEITEMEX 1 11 6 1 0
GOTO @suc
[@upt13]
#ACT
UPGRADEITEMEX 1 12 7 1 0
GOTO @suc
[@upt14]
#ACT
UPGRADEITEMEX 1 13 8 1 0
GOTO @suc

[@suc]
#ACT
#SAY
I did my best. hope it worked\\
**Red text bad :( -Blue text good :)**\
(take of item and put back on to \
see stat change)\\
<Back/@upgrade>\\
<exit/@exit>\

[@FAIL1]
#SAY
You are missing an items\\
<BACK/@upgrade>\\
<Exit/Exit>\
}