;;不要删掉此行

%100
+5
+6

[@Main]
#SAY
What refine would you like to do?\\
<Sabuk Wall Black Smith/@Main_SWBlackSmith>\
<Prajna Village Black Smith/@Main_PVBlackSmith>\\
<Leave/@Exit>

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

[@Main_PVBlackSmith]
#SAY
Welcome <$USERNAME>,\
How may i help you?{FCOLOR/10}\
<Refine Accessory/@Refine_Accessory>\
<Reset Weapon Level/@Reset_WeaponLevel>\\
<Leave/@Exit>
#ELSESAY
Ive gone to learn how 2 refine elements :D\\
<Leave/@Exit>

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

[@Refine_Accessory]
#SAY
What item did you want to to refine?\\
<[Necklace]/@Necklace>\
<[Bracelet(Left)]/@BraceletLeft>\
<[Bracelet(Right)]/@BraceletRight>\
<[Ring(Left)]/@RingLeft>\
<[Ring(Right)]/@RingRight>\\
<Leave/@Exit>

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

[@Reset_WeaponLevel]
#CALL [Refine\ClearWeaponLevel.txt] @checkRefinePoints

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

[@Necklace]
#IF
!HLSCRIPTCMD CHECKISTAKEITEM 3
#ACT
Break
#SAY
You must be wearing your necklace\
to use this refine.\\
<Leave/@Exit>
#ELSEACT
Goto @WearingNecklace

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

[@BraceletLeft]
#IF
!HLSCRIPTCMD CHECKISTAKEITEM 5
#ACT
Break
#SAY
You must be wearing your left bracelet\
to use this refine.\\
<Leave/@Exit>
#ELSEACT
Goto @WearingBraceLeft

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

[@BraceletRight]
#IF
!HLSCRIPTCMD CHECKISTAKEITEM 6
#ACT
Break
#SAY
You must be wearing your right bracelet\
to use this refine.\\
<Leave/@Exit>
#ELSEACT
Goto @WearingBraceRight

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

[@RingLeft]
#IF
!HLSCRIPTCMD CHECKISTAKEITEM 7
#ACT
Break
#SAY
You must be wearing your left ring\
to use this refine.\\
<Leave/@Exit>
#ELSEACT
Goto @WearingRingLeft

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

[@RingRight]
#IF
!HLSCRIPTCMD CHECKISTAKEITEM 8
#ACT
Break
#SAY
You must be wearing your right ring\
to use this refine.\\
<Leave/@Exit>
#ELSEACT
Goto @WearingRingRight

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

[@WearingNecklace]
#IF
!HLSCRIPTCMD CHECKITEMAMULETCOUNT 3 5
#ACT
Goto @RefineMax
#ELSEACT
Goto @WearingNecklaceNext

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

[@WearingBraceLeft]
#IF
!HLSCRIPTCMD CHECKITEMAMULETCOUNT 5 5
#ACT
Goto @RefineMax
#ELSEACT
Goto @WearingBraceLeftNext

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

[@WearingBraceRight]
#IF
!HLSCRIPTCMD CHECKITEMAMULETCOUNT 6 5
#ACT
Goto @RefineMax
#ELSEACT
Goto @WearingBraceRightNext

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

[@WearingRingLeft]
#IF
!HLSCRIPTCMD CHECKITEMAMULETCOUNT 7 5
#ACT
Goto @RefineMax
#ELSEACT
Goto @WearingRingLeftNext

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

[@WearingRingRight]
#IF
!HLSCRIPTCMD CHECKITEMAMULETCOUNT 8 5
#ACT
Goto @RefineMax
#ELSEACT
Goto @WearingRingRightNext

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

[@RefineMax]
#SAY
Your item has had too many refines...\\
<Leave/@Exit>

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

[@WearingNecklaceNext]
#SAY
What do you want to refine onto your necklace?\\
<Accuracy/@NecklaceAccuracy>\
;<Agility/@NecklaceAgility>\
<Destructive Class/@NecklaceDC>\
<Magic/@NecklaceMagic>\
<Element/@Element(3)>\\
<Leave/@Exit>

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

[@WearingBraceLeftNext]
#SAY
What do you want to refine onto your left bracelet?\\
<Armour Class/@BraceLeftAC>\
<Magic Resistance/@BraceLeftMR>\
<Destructive Class/@BraceLeftDC>\
<Magic/@BraceLeftMagic>\
<Element/@Element(5)>\\
<Leave/@Exit>

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

[@WearingBraceRightNext]
#SAY
What do you want to refine onto your right bracelet?\\
<Armour Class/@BraceRightAC>\
<Magic Resistance/@BraceRightMR>\
<Destructive Class/@BraceRightDC>\
<Magic/@BraceRightMagic>\
<Element/@Element(6)>\\
<Leave/@Exit>

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

[@WearingRingLeftNext]
#SAY
What do you want to refine onto your left ring?\\
<Armour Class/@RingLeftAC>\
<Magic Resistance/@RingLeftMR>\
<Destructive Class/@RingLeftDC>\
<Magic/@RingLeftMagic>\
<Element/@Element(7)>\\
<Leave/@Exit>

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

[@WearingRingRightNext]
#SAY
What do you want to refine onto your right ring?\\
<Armour Class/@RingRightAC>\
<Magic Resistance/@RingRightMR>\
<Destructive Class/@RingRightDC>\
<Magic/@RingRightMagic>\
<Element/@Element(8)>\\
<Leave/@Exit>

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

[@NecklaceAccuracy]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take AccuracyCrystal 1
Goto @NecklaceAccuracyNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@NecklaceAgility]

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

[@NecklaceDC]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @NecklaceDCNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} DamageCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@NecklaceMagic]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem MagicCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take MagicCrystal 1
Goto @NecklaceMagicNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} MagicCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@NecklaceElements]

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

[@BraceLeftAC]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take AccuracyCrystal 1
Goto @BraceLeftACNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@BraceLeftMR]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take AccuracyCrystal 1
Goto @BraceLeftMRNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@BraceLeftDC]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @BraceLeftDCNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} DamageCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@BraceLeftMagic]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem MagicCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take MagicCrystal 1
Goto @BraceLeftMagicNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} MagicCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@BraceLeftElements]

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

[@BraceRightAC]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take AccuracyCrystal 1
Goto @BraceRightACNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@BraceRightMR]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take AccuracyCrystal 1
Goto @BraceRightMRNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@BraceRightDC]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @BraceRightDCNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} DamageCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@BraceRightMagic]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem MagicCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take MagicCrystal 1
Goto @BraceRightMagicNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} MagicCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@BraceRightElements]

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

[@RingLeftAC]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take AccuracyCrystal 1
Goto @RingLeftACNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@RingLeftMR]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take AccuracyCrystal 1
Goto @RingLeftMRNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@RingLeftDC]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
Goto @RingLeftDCNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} DamageCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@RingLeftMagic]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem MagicCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take MagicCrystal 1
Goto @RingLeftMagicNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} MagicCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@RingLeftElements]

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

[@RingRightAC]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take AccuracyCrystal 1
Goto @RingRightACNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@RingRightMR]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem AccuracyCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take AccuracyCrystal 1
Goto @RingRightMRNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} AccuracyCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@RingRightDC]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem DamageCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take DamageCrystal 1
goto @RingRightDCNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} DamageCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@RingRightMagic]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem MagicCrystal 1
#ACT
Take Gold 50000
Take Corundum 5
Take MagicCrystal 1
goto @RingRightMagicNxt
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} MagicCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@RingRightElements]

;-----------------------------------------
[@NecklaceAccuracyNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 3 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

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

[@NecklaceAgilityNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 3 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

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

[@NecklaceDCNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 3 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

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

[@NecklaceMagicNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 3 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

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

[@NecklaceElementsNxt]

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

[@BraceLeftACNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 5 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

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

[@BraceLeftMRNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 5 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

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

[@BraceLeftDCNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 5 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

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

[@BraceLeftMagicNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 5 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

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

[@BraceLeftElementsNxt]

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

[@BraceRightACNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 6 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

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

[@BraceRightMRNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 6 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

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

[@BraceRightDCNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 6 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

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

[@BraceRightMagicNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 6 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

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

[@BraceRightElementsNxt]

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

[@RingLeftACNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 7 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

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

[@RingLeftMRNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 7 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

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

[@RingLeftDCNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 7 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

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

[@RingLeftMagicNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 7 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

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

[@RingLeftElementsNxt]

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

[@RingRightACNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 8 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

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

[@RingRightMRNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 8 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

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

[@RingRightDCNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 8 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

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

[@RingRightMagicNxt]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD 8 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

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

[@RingRightElementsNxt]

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

[@Element()]
#ACT
Mov D0 %ARG(1)
GoTo @ElementNxt

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

[@ElementNxt]
#IF
;HLSCRIPTCMD CHECKITEMAMULETCOUNT %D0 6
#SAY
{FCOLOR/1}IMPORTANT:Any item with over +6 stats will be deleted!\\{FCOLOR/10}
Refine Element: <Fire (Ignis)/@ElementRefine(1)>\
Refine Element: <Cold (Gelu)/@ElementRefine(2)>\
Refine Element: <Lightning (Fulmen)/@ElementRefine(3)>\
Refine Element: <Wind (Ventus)/@ElementRefine(4)>\
Refine Element: <Holy (Sacer)/@ElementRefine(5)>\
Refine Element: <Dark (Ater)/@ElementRefine(6)>\
Refine Element: <Phantom (Phasma)/@ElementRefine(7)>\
<Leave/@Exit>

#ELSEACT
Goto @RefineMax

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

[@ElementRefine()]
#IF
CheckGold 50000
CheckItem Corundum 5
CheckItem MagicCrystal 1
#ACT
Mov D1 %ARG(1)
Take Gold 50000
Take Corundum 5
Take MagicCrystal 1
goto @ElementRefineNext
#ELSESAY
To use the Item Refining System You Need:\\
{FCOLOR/15}1){FCOLOR/10} 50000 Gold {FCOLOR/12}\
{FCOLOR/15}2){FCOLOR/10} Corundum 5{FCOLOR/12}\
{FCOLOR/15}3){FCOLOR/10} MagicCrystal 1{FCOLOR/12}\\
<Leave/@Exit>

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

[@ElementRefineNext]
#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEEQU %D0 11 %D1
HLSCRIPTCMD ITEMREMAKEADD %D0 12 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

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

[@Main_SWBlackSmith]
#IF

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_0

#IF
checkweaponlevel 10

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_1

#IF

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_2

[@GetBack_Cmd]
#ACT
GetBackUpgItem

[@Refine_Help_Cmd]
#CALL [Refine\WeaponRefinehelp.txt] @Refine_Help

[@Change_Atom_Cmd]
#CALL [Refine\WeaponChangeAtom.txt] @ChangeAtom

[@RefineName_Cmd]
#CALL [Refine\WeaponRefineName.txt] @RefineName

[@Refine_Cmd]
#CALL [Refine\WeaponRefine.txt] @Refine

[~@upgradenow_ok]

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_3

[~@upgradenow_ing]

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_4

[~@upgradenow_fail]

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_5

[~@getbackupgnow_ok]

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_6

[~@getbackupgnow_duraok]

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_7

[~@Success]

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_8

[~@getbackupgnow_ing]

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_9

[~@getbackupgnow_fail]

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_10

[~@getbackupgnow_nenoughlv]

#SAY
#INCLUDE [..\Convert_Def\Common\RefineWeapon.txt] @RefineWeapon_11

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

[@Reset_WeaponLevel]
#CALL [Refine\ClearWeaponLevel.txt] @checkRefinePoints

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

[@Refine_Advanced]
;#CALL [Refine\AdvRefine.txt] @AdvancedMain

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

[@TalkToQuest]
#SAY
My work is very skilled...\\
if you dont mind i need to carry on\
with this sword i am refining...\\
<Leave/@Exit>

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


;;不要删掉此行