[@MAIN]
#IF
#ACT
#SAY
<Img|width=620|height=240|reset=1|scale9t=10|scale9r=10|bg=1|move=0|scale9b=10|img=public/bg_npc_01.png|scale9l=10>
<Layout|x=597|y=3|width=80|height=80|link=@exit>
<Button|x=619|y=2.0|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
<Text|a=0|x=32|y=25|tipsx=10|tipsy=80|color=249|size=18|text=------------------µһбʾ-------------------\>
<Text|a=0|x=32.0|y=47.0|tipsx=10|tipsy=80|color=250|size=18|text=лơ<$STR(A99)>\>
<Text|a=0|x=32.0|y=69.0|tipsx=10|tipsy=80|color=250|size=18|text=š<$STR(A98)>\>
<Text|a=0|x=32.0|y=93.0|tipsx=10|tipsy=80|color=250|size=18|text=۸<$STR(G97)>\>
<Text|a=0|x=32.0|y=116.0|tipsx=10|tipsy=80|color=250|size=18|text=ǰ״̬<$STR(A95)>\>
<Text|a=0|x=32.0|y=139.0|tipsx=10|tipsy=80|color=254|size=18|text=ҪԱ͵ȼ<$STR(G99)>\\>
<Text|a=0|x=38.0|y=175.0|tipsx=10|tipsy=80|color=251|size=18|text=û|link=@û>
<Text|a=0|x=337.0|y=175.0|tipsx=10|tipsy=80|color=251|size=18|text=Ҫ|link=@@INPUTINTEGER21>
<Text|a=0|x=167.0|y=175.0|tipsx=10|tipsy=80|color=251|size=18|text=|link=@>
<Text|a=0|x=487.0|y=177.0|tipsx=10|tipsy=80|color=251|size=18|text=л|link=@л>





[@л1]
#if
HAVEGUILD
#act
messagebox Բ,Ѿл
break

#if
#act
AddGuild ɽ Self
messagebox ϲѾɹɽɣ

[@û]
#if
equal A99 
#act
messagebox Բ,л
goto @main
break
#if
equal A95 
#act
messagebox Բ𣬱лʱ
break
#IF
HAVEGUILD
#ACT
MESSAGEBOX [ʧ]Ѿлˡ޷!\˳㵱ǰлᣡ
break
#if
CHECKLEVELEX < <$STR(G99)>
#act
messagebox ȼ
break
#if
#act
Gmexecute 
ADDGUILDMEMBER <$STR(A99)> <$USERNAME>
messagebox ϲѾɹ뵽<$STR(A99)>
goto @main



[@]
#if
ISGUILDMASTER
equal A99 <$GUILDNAME>
#act
goto @1
#elseact
messagebox [ֻблŲſԽй]
close

[@1]

<Img|width=620|height=300|scale9l=10|scale9t=10|scale9r=10|bg=1|move=0|scale9b=10|img=public/bg_npc_01.png|reset=1>
<Layout|x=597|y=3|width=80|height=80|link=@exit>
<Button|x=619|y=2.0|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
<Text|a=0|x=32|y=25|tipsx=10|tipsy=80|color=249|size=18|text=------------------µһбʾ-------------------\>
<Text|a=0|x=32.0|y=47.0|tipsx=10|tipsy=80|color=250|size=18|text=лơ<$STR(A99)>\>
<Text|a=0|x=32.0|y=69.0|tipsx=10|tipsy=80|color=250|size=18|text=š<$STR(A98)>\>
<Text|a=0|x=32.0|y=93.0|tipsx=10|tipsy=80|color=250|size=18|text=۸<$STR(G97)>\>
<Text|a=0|x=32.0|y=116.0|tipsx=10|tipsy=80|color=250|size=18|text=ǰ״̬<$STR(A95)>\>
<Text|a=0|x=39.0|y=139.0|tipsx=10|tipsy=80|color=254|size=18|text=ҪԱ͵ȼ<$STR(G99)>\\>
<Text|a=0|x=38.0|y=175.0|tipsx=10|tipsy=80|color=251|size=18|text=޸״̬|link=@޸״̬>
<Text|a=0|x=167.0|y=175.0|tipsx=10|tipsy=80|color=251|size=18|text=޸Ҫ͵ȼ|link=@@InPutInteger22>




[@޸״̬]
\ \ 
ǰ״̬<$STR(A95)>\ \
<޸״̬Ϊ/@޸״̬Ϊ>    <޸״̬Ϊ/@޸״̬Ϊ>\

[@޸״̬Ϊ]
#act
mov A95 
messagebox ޸ĳɹ
goto @1
[@޸״̬Ϊ]
#act
mov A95 
messagebox ޸ĳɹ
goto @1


[@InPutInteger22]
#IF
small n22 35
#act
messagebox 35-80֣֮
break

#IF
large n22 80
#act
messagebox 35-80֣֮
break

#IF
#act
mov G99 <$STR(n22)>
goto @1
break



[@InPutInteger21]
#if
equal A99 <$GUILDNAME>
#act
messagebox ڵлѾблᣡ
break

#if
ISGUILDMASTER
small n21 <$STR(G97)>
#act
messagebox Բ,ĳ۵ڵǰ۸[<$STR(G97)>]Ԫ
break

#IF
CHECKGAMEGOLD < <$STR(n21)>
#act
messagebox Բ,û<$STR(n21)>Ԫ
break

#if
#act
GAMEGOLD - <$STR(n21)>
mov A99 <$GUILDNAME>
mov G97 <$STR(n21)>
mov A98 <$USERNAME>
mov A95 
messagebox ɹ\뵽NPC״̬͵ȼ
SENDMSG 0 [<$USERNAME>]ΪԼл[<$GUILDNAME>]ɹ!  
SENDMSG 0 [<$STR(A99)>]ҿԵбԶ! 
goto @MAIN
break






