;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@Refine]
{
#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_0

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_1

#ACT
break

#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_2

#ACT
break

#IF
Checkitemw ·ÉÁú½££¨»ð£© 1
#ACT
goto @CantRefineWeapon
break

#IF
Checkitemw ·ÉÁú½££¨±ù£© 1
#ACT
goto @CantRefineWeapon
break

#IF
Checkitemw ·ÉÁú½££¨À×£© 1
#ACT
goto @CantRefineWeapon
break

#IF
Checkitemw ·ÉÁú½££¨·ç£© 1
#ACT
goto @CantRefineWeapon
break

#IF
Checkitemw ·ÉÁú½££¨ÉñÊ¥£© 1
#ACT
goto @CantRefineWeapon
break

#IF
Checkitemw ·ÉÁú½££¨°µºÚ£© 1
#ACT
goto @CantRefineWeapon
break

#IF
Checkitemw ·ÉÁú½££¨»ÃÓ°£© 1
#ACT
goto @CantRefineWeapon
break


#IF
checkweaponmctype 0
checkrefineweapon

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_3

#ACT
break

#IF
checkweaponmctype 1
checkrefineweapon

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_4

#ACT
break

#IF
checkweaponmctype 2
checkrefineweapon

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_5

#ACT
break


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_6

[@CantRefineWeapon]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_7

[@Refine_Dura]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_8

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_9

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_10

#ACT
break

#IF
checkduraw 1
!Small P9 60
#ACT
break

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_11

#IF
checkitem ºÚÌú 5
checkrefineweapon
#ACT
refineWeapon 10000 1 0

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_12

[@Refine_DC]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_13

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_14

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_15

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 1 3
checkrefineweapon
#ACT
RefineWeapon 50000 3 0

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_16

[@Refine_MC]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_17

#ACT
break


#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_18

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_19

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 2 3
checkrefineweapon
#ACT
RefineWeapon 50000 3 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_20

[@Refine_SC]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_21

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_22

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_23

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 3 3
checkrefineweapon
#ACT
RefineWeapon 50000 3 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_24

[@Refine_ALL]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_25

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_26

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_27

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 4 3
checkrefineweapon
#ACT
RefineWeapon 50000 3 1
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_28

[@Refine_Atom]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_29

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_30

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_31

#ACT
break

#IF
checkrefineweapon

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_32

[@Refine_Fire]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_33

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_34

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_35

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 0 5
checkrefineweapon
#ACT
RefineWeapon 50000 4 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_36

[@Refine_Ice]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_37

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_38

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_39

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 0 5
checkrefineweapon
#ACT
RefineWeapon 50000 4 2

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_40

[@Refine_Light]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_41

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_42

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_43

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 0 5
checkrefineweapon
#ACT
RefineWeapon 50000 4 3

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_44

[@Refine_Wind]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_45

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_46

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_47

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 0 5
checkrefineweapon
#ACT
RefineWeapon 50000 4 4

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_48

[@Refine_Holy]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_49

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_50

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_51

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 0 5
checkrefineweapon
#ACT
RefineWeapon 50000 4 5

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_52

[@Refine_Dark]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_53

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_54

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_55

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 0 5
checkrefineweapon
#ACT
RefineWeapon 50000 4 6

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_56

[@Refine_pantom]
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_57

#ACT
break

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_58

#ELSEACT
break

#IF
checkweaponlevel 17

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_59

#ACT
break

#IF
checkitem ºÚÌú 3
checkrefineitem 0 5
checkrefineweapon
#ACT
RefineWeapon 50000 4 7

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponRefine.txt] @Convert_WeaponRefine_60

}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;