;;不要删掉此行

[@Main_AdvantageRefine]
{

#SAY
What do you want to refine advantage on to?\\
{FCOLOR/1}Warning: This counts as 1 Refine!\
And you may only refine 1 Advantage per item!{FCOLOR/12}\\

<Armour/@RefineAdvantage(0)>\
<Helmet/@RefineAdvantage(4)>\
<Right Bracelet/@RefineAdvantage(6)>\
<Leave/@Exit>\

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

[@RefineAdvantage()]
#IF
HLSCRIPTCMD CHECKITEMAMULETCOUNT %D1 5
#ACT
Mov D1 %ARG(1)
#SAY
What advantage do you want to refine?\\
<Ignis/@RefineAdvantage_Next(1)>\
<Gelu/@RefineAdvantage_Next(2)>\
<Fulmen/@RefineAdvantage_Next(3)>\
<Ventus/@RefineAdvantage_Next(4)>\
<Ater/@RefineAdvantage_Next(5)>\
<Sacer/@RefineAdvantage_Next(6)>\
<Phasma/@RefineAdvantage_Next(7)>\
#ELSEACT
Goto @RefineMax

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

[@RefineMax]

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

[@RefineAdvantage_Next()]
#ACT
Mov D2 %ARG(1)

#IF
Random 2
#ACT
HLSCRIPTCMD ITEMREMAKEADD %D1 5 %D2
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

}
;;不要删掉此行