;;²»ÒªÉ¾µô´ËÐÐ

[@Main]
#IF
IsAdmin
#SAY
Welcome <$USERNAME>,\
How may i help you?{FCOLOR/10}\\
<Refine Armour/@Refine_Armour>\\
<Leave/@Exit>
#ELSESAY
Gone due to lack of diamond in the area...\\
<Leave/@Exit>

;-----------------------------------------------------

[@Refine_Armour]
#SAY
What did you want to to refine?\\
<[Helmet]/@Refine_Helmet>\
<[Armour]/@Refine_Armour>\
<[Shoes]/@Refine_Shoes>\\
<Leave/@Exit>

;-----------------------------------------------------

[@Refine_Helmet]
#IF
!HLSCRIPTCMD CHECKISTAKEITEM 4
#SAY
You must be wearing your helmet\
to use this refine.\\
<Leave/@Exit>
#ELSESAY
<Armour Class/@Refine_HelmetAC>\
<Magic Resistance/@Refine_HelmetMR>\
<Destructive Class/@Refine_HelmetDC>\
<Magic/@Refine_HelmetMagic>\
;<Elements/@Refine_HelmetElements>\\
<Leave/@Exit>

;-----------------------------------------------------

[@Refine_Armour]
#IF
!HLSCRIPTCMD CHECKISTAKEITEM 0
#SAY
You must be wearing your armour\
to use this refine.\\
<Leave/@Exit>
#ELSESAY
<Armour Class/@Refine_ArmourAC>\
<Magic Resistance/@Refine_ArmourMR>\
<Destructive Class/@Refine_ArmourDC>\
<Magic/@Refine_ArmourMagic>\
<Health/@Refine_ArmourHealth>\
<Mana/@Refine_ArmourMana>\\
<Leave/@Exit>

;-----------------------------------------------------

[@Refine_Shoes]
#IF
!HLSCRIPTCMD CHECKISTAKEITEM 10
#SAY
You must be wearing your shoes\
to use this refine.\\
<Leave/@Exit>
#ELSESAY
<Comfort/@Refine_ShoesComfort>\
<Wear Weight/@Refine_ShoesWW>\
<Hands Weight/@Refine_ShoesHW>\
<Health/@Refine_ShoesHealth>\
<Mana/@Refine_ShoesMana>\\
<Leave/@Exit>

;-----------------------------------------------------

[@Refine_HelmetAC]
#IF
HLSCRIPTCMD CHECKITEMPRO 4 0 5
#ELSEACT
BREAK
#ELSESAY
This helmet can not have any more ac refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_HelmetACNxt

;-------------------------

[@Refine_HelmetMR]
#IF
HLSCRIPTCMD CHECKITEMPRO 4 1 5
#ELSEACT
BREAK
#ELSESAY
This helmet can not have any more mr refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_HelmetMRNxt

;-------------------------

[@Refine_HelmetDC]
#IF
HLSCRIPTCMD CHECKITEMPRO 4 2 5
#ELSEACT
BREAK
#ELSESAY
This helmet can not have any more dc refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_HelmetDCNxt

;-------------------------

[@Refine_HelmetMagic]
#IF
HLSCRIPTCMD CHECKITEMPRO 4 3 5
#ELSEACT
BREAK
#ELSESAY
This helmet can not have any more ac refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_HelmetMagicNxt

;------------------------------------------------------------------

[@Refine_ArmourAC]
#IF
HLSCRIPTCMD CHECKITEMPRO 0 0 5
#ELSEACT
BREAK
#ELSESAY
This helmet can not have any more ac refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ArmourACNxt

;-------------------------

[@Refine_ArmourMR]
#IF
HLSCRIPTCMD CHECKITEMPRO 0 1 5
#ELSEACT
BREAK
#ELSESAY
This helmet can not have any more mr refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ArmourMRNxt

;-------------------------

[@Refine_ArmourDC]
#IF
HLSCRIPTCMD CHECKITEMPRO 0 2 5
#ELSEACT
BREAK
#ELSESAY
This helmet can not have any more dc refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ArmourDCNxt

;-------------------------

[@Refine_ArmourMagic]
#IF
HLSCRIPTCMD CHECKITEMPRO 0 3 5
#ELSEACT
BREAK
#ELSESAY
This armour can not have any more magic refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ArmourMagicNxt

;-------------------------

[@Refine_ArmourHealth]
#IF
HLSCRIPTCMD CHECKITEMPRO 0 8 8
#ELSEACT
BREAK
#ELSESAY
This armour can not have any more health refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ArmourHealthNxt

;-------------------------

[@Refine_ArmourMana]
#IF
HLSCRIPTCMD CHECKITEMPRO 0 9 8
#ELSEACT
BREAK
#ELSESAY
This armour can not have any more mana refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ArmourManaNxt

;---------------------------------------------------------------------------------

[@Refine_ShoesComfort]
#IF
HLSCRIPTCMD CHECKITEMPRO 10 0 3
#ELSEACT
BREAK
#ELSESAY
These shoes can not have any more comfort refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ShoesComfortNxt

;-------------------------

[@Refine_ShoesWW]
#IF
HLSCRIPTCMD CHECKITEMPRO 10 1 3
#ELSEACT
BREAK
#ELSESAY
These shoes can not have any more wear weight refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ShoesWWNxt

;-------------------------

[@Refine_ShoesHW]
#IF
HLSCRIPTCMD CHECKITEMPRO 10 2 3
#ELSEACT
BREAK
#ELSESAY
These shoes can not have any more hands weight refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ShoesHWNxt

;-------------------------

[@Refine_ShoesHealth]
#IF
HLSCRIPTCMD CHECKITEMPRO 10 8 5
#ELSEACT
BREAK
#ELSESAY
These shoes can not have any more health refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ShoesHealthNxt

;-------------------------

[@Refine_ShoesMana]
#IF
HLSCRIPTCMD CHECKITEMPRO 10 9 5
#ELSEACT
BREAK
#ELSESAY
These shoes can not have any more mana refined on to it...\\
<Leave/@Exit>
#ACT
Goto @Refine_ShoesManaNxt

;-------------------------------------------------------------

[@Refine_HelmetACNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Diamond 5
Take AccuracyCrystal 1
Goto @Refine_HelmetACNxt2
#ELSEACT
GoTo @AccuracyCrystalFail

;-------------------------

[@Refine_HelmetMRNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem MagicCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take MagicCrystal 1
Goto @Refine_HelmetMRNxt2
#ELSEACT
GoTo @MagicCrystalFail

;-------------------------

[@Refine_HelmetDCNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @Refine_HelmetDCNxt2
#ELSEACT
GoTo @DamageCrystalFail

;-------------------------

[@Refine_HelmetMagicNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @Refine_HelmetMagicNxt2
#ELSEACT
GoTo @MagicCrystalFail

;-------------------------------------------------------------

[@Refine_ArmourACNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Diamond 5
Take AccuracyCrystal 1
Goto @Refine_ArmourACNxt2
#ELSEACT
GoTo @AccuracyCrystalFail

;-------------------------

[@Refine_ArmourMRNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @Refine_ArmourMRNxt2
#ELSEACT
GoTo @MagicCrystalFail

;-------------------------

[@Refine_ArmourDCNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @Refine_ArmourDCNxt2
#ELSEACT
GoTo @DamageCrystalFail

;-------------------------

[@Refine_ArmourMagicNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @Refine_ArmourMagicNxt2
#ELSEACT
GoTo @MagicCrystalFail

;-------------------------

[@Refine_ArmourHealthNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Diamond 5
Take AccuracyCrystal 1
Goto @Refine_ArmourHealthNxt2
#ELSEACT
GoTo @AccuracyCrystalFail

;-------------------------

[@Refine_ArmourManaNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @Refine_ArmourManaNxt2
#ELSEACT
GoTo @MagicCrystalFail

;-------------------------------------------------------------

[@Refine_ShoesComfortNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Diamond 5
Take AccuracyCrystal 1
Goto @Refine_ShoesComfortNxt2
#ELSEACT
GoTo @AccuracyCrystalFail

;-------------------------

[@Refine_ShoesWWNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Diamond 5
Take AccuracyCrystal 1
Goto @Refine_ShoesWWNxt2
#ELSEACT
GoTo @AccuracyCrystalFail

;-------------------------

[@Refine_ShoesHWNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Diamond 5
Take AccuracyCrystal 1
Goto @Refine_ShoesHWNxt2
#ELSEACT
GoTo @AccuracyCrystalFail

;-------------------------

[@Refine_ShoesHealthNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Diamond 5
Take AccuracyCrystal 1
Goto @Refine_ShoesHealthNxt2
#ELSEACT
GoTo @AccuracyCrystalFail

;-------------------------

[@Refine_ShoesManaNxt]
#IF
CheckGold 50000
CheckItem Diamond 1
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @Refine_ShoesManaNxt2
#ELSEACT
GoTo @MagicCrystalFail

;-------------------------------------------------------------

[@Refine_HelmetACNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 4 0 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_HelmetMRNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 4 1 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_HelmetDCNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 4 2 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_HelmetMagicNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 4 3 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-------------------------------------------------------------

[@Refine_ArmourACNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 0 0 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_ArmourMRNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 0 1 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_ArmourDCNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 0 2 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_ArmourMagicNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 0 3 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_ArmourHealthNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 0 8 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_ArmourManaNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 0 9 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-------------------------------------------------------------

[@Refine_ShoesComfortNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 10 0 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_ShoesWWNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 10 1 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_ShoesHWNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 10 2 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_ShoesHealthNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 10 8 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-----------------------------------------

[@Refine_ShoesManaNxt2]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 10 9 1
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg0]
SysMsg %A7
CLOSE
#ELSEACT
LoadValue A7 [Convert_Def\QuestDiary\Refine\AdvanceRefines.txt] [Convert] [Msg1]
SysMsg %A7
CLOSE

;-------------------------------------------------------------

[@AccuracyCrystalFail]
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Diamond 1{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

;-----------------------------------------

[@MagicCrystalFail]
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Diamond 1{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} MagicCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

;-----------------------------------------

[@DamageCrystalFail]
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Diamond 1{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} DamageCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

;-------------------------------------------------------------
