[@ͼһ]
{
#if
#act
movr N$ͼһ۸ <$str(N$ͼһ)> <$str(N$ͼһ)>
movr N$ͼ۸ <$str(N$ͼ)> <$str(N$ͼ)>
movr N$ͼ۸ <$str(N$ͼ)> <$str(N$ͼ)>
movr N$ͼĵ۸ <$str(N$ͼĵ)> <$str(N$ͼĵ)>
TakeBagItem "<$str(S$ͼһб)>" 46 0 <$str(N$ͼһ۸)> 0 0 N$ͼһ 0
TakeBagItem "<$str(S$ͼб)>" 46 0 <$str(N$ͼ۸)> 0 0 N$ͼ 0
TakeBagItem "<$str(S$ͼб)>" 46 0 <$str(N$ͼ۸)> 0 0 N$ͼ 0
TakeBagItem "<$str(S$ͼĵб)>" 46 0 <$str(N$ͼĵ۸)> 0 0 N$ͼĵ 0
}

[@߼һ]
{

#if
check [7] 1
#act
mov S$Ʒ ""
mov S$Ʒб <$str(S$б)>
goto @մ

#if
check [54] 1
#act
mov S$Ʒ ""
mov S$Ʒб <$str(S$б)>
goto @մ

#if
check [8] 1
#act
mov S$Ʒ ""
mov S$Ʒб <$str(S$б)>
goto @մ

#if
check [55] 1
#act
mov S$Ʒ ""
mov S$Ʒб <$str(S$б)>
goto @մ

#if
check [9] 1
#act
mov S$Ʒ ""
mov S$Ʒб <$str(S$б)>
goto @մ

#if
check [56] 1
#act
mov S$Ʒ ""
mov S$Ʒб <$str(S$б)>
goto @մ

[@մ]

#IF
#ACT
mov N$Ʒ۸ <$str(N$<$str(S$Ʒ)><$str(S$ջ)>)>
mov N$Ʒ־ 0

#IF
EQUAL N$յ־ 1
#ACT
; debug
sendmsg 6 [debug]: Ʒ: <$str(S$Ʒ)>, ջ: <$str(S$ջ)>, Ʒ۸: <$str(N$Ʒ۸)>
;sendmsg 6 [debug]: Ʒб: <$str(S$Ʒб)>

; һշָ۸ʯ򲻻᷵ؽ
#if
check [51] 1
#act
TakeBagItem "<$str(S$Ʒб)>" 46 0 <$str(N$Ʒ۸)> 0 0 N$Ʒ 0
#elseact
TakeBagItem "<$str(S$Ʒб)>" 46 0 0 0 0 N$Ʒ 0

; Ʒ0Żᴥ
#if
LARGE N$Ʒ 0
check [52] 1
#act
MUL N$Ʒ۸ N$Ʒ
CREDITPOINT + <$str(N$Ʒ۸)>
mov N$Ʒ־ 1
mov N$ﵱǰ <$CREDITPOINT>

; Ʒ0Żᴥʯ
#if
LARGE N$Ʒ 0
check [53] 1
#act
MUL N$Ʒ۸ N$Ʒ
GAMEDIAMOND + <$str(N$Ʒ۸)>
mov N$Ʒ־ 1
mov N$ﵱǰ <$GAMEDIAMOND>

; ӡ־
#if
equal N$Ʒ־ 1
#act
SENDMSG 7 ʾ<$str(N$Ʒ)><$str(S$Ʒ)>ѱգ<$str(N$Ʒ۸)><$str(S$ջ)>ǰ<$str(S$ջ)><$str(N$ﵱǰ)>

}
