[@main]
#IF
#ACT
OPENMERCHANTBIGDLG 2 78 1 0 100 80 1 366 6 0
#SAY
\ \ \
<Text:֮塿:10:20{FCOLOR=243;FSIZE=13;FNAME=}> \ \
<Text:Ϸе:10:25{FCOLOR=7}><Text:塿:10:25{FCOLOR=146}><Text:ɽΪ:10:25{FCOLOR=7}><Text:֮塿:10:25{FCOLOR=249}>\ \
<Text:--------------------------------------------------------:10:20/FCOLOR=12> \
<Text:Ҫ:15:25{FCOLOR=242}><Text:+50 壬ұ:15:25{FCOLOR=7}><Text:[ף]:15:25{FCOLOR=250}>\ \
<Text:׷ã:15:30{FCOLOR=242}><Text:20000Ԫ + 100ͭǮ:15:30{FCOLOR=250}>  <ItemShow:1977:0:40:10:1> <Text:ʯ|#146#^-^7#1000Ԫ1:50:25/@ף>\ \ 
<Text:--------------------------------------------------------:10:20/FCOLOR=12> \ 
<Text:    :15:35{FCOLOR=7}>  <ITEMBOX:2:2:566:125:228:50:50:90:250#+50 [ף]> 
<Text:֮չʾ    :55:35{FCOLOR=7}>  <ItemShow:1970:0:50:20:1>\ \ 
<Text:--------------------------------------------------------:10:40/FCOLOR=12> \ \
<Text:֮|#254#{+50 [ף]|21}Ϸн^-^70#׷ã20000Ԫ + 100ͭǮ:60:38/@1> 
<Text:֮|#254#{+50 [ף]|21}Ϸн^-^70#׷ã20000Ԫ + 100ͭǮ:170:38/@1> 


[@1]
#IF
NOT EQUAL <$BOXITEM[2].NAME> 
#ACT
MESSAGEBOX []\\ȷ...
break

#IF
CheckUpgradeCount boxitem2 < 50
#ACT
MESSAGEBOX []\\[+50]ſɽ
break

#IF
CHECKGAMEGOLD < 20000
#ACT
MESSAGEBOX []\\Ԫ20000
break

#IF
CHECKGAMEPOINT < 1000000
#ACT
MESSAGEBOX []\\ͭǮ1000000
break

#if
#ACT
GetCustomItemValueEx boxitem2 2 N$ N$1 N$ֵ3 N$2

#if
SMALL N$ֵ3 1
#ACT
MESSAGEBOX []\\ף
BREAK


#IF
#ACT
GAMEGOLD - 20000
GAMEPOINT - 1000000
DelBoxItem 2 1
GIVE ֮ 1
INC U184 1
LINKGIVEITEM
LockUpdateAbil
LockUpdateItem -1
SetCustomItemAbil -1 1 1 11				;1
SetCustomItemAbil -1 1 2 1				;2λ
SetCustomItemAbil -1 1 3 0
SetCustomItemAbil -1 1 4 9
SetCustomItemValueEx -1 1 = 328 70
UpdateAbil
UpdateItem -1

LockUpdateAbil
LockUpdateItem -1
SetCustomItemAbil -1 3 1 11				;1
SetCustomItemAbil -1 3 2 3				;2λ
SetCustomItemAbil -1 3 3 0
SetCustomItemAbil -1 3 4 12
SetCustomItemValueEx -1 3 = 330 20
UpdateAbil
UpdateItem -1
clearLinkItem

[@ף]
#IF
CHECKGAMEGOLD > 999
#ACT
GAMEGOLD - 1000
GiveStateItem ףʯ 1 1 0 0 1 1 1
sendmsg 6 ɹ[ףʯ]
BREAK
#elseact
messagebox Ԫ...
BREAK



