[@开始挂机]
{
#or
isonmap 3
#Act
sendmsg 9 当前地图禁止挂机
break
#IF
Equal <$CLIENTFLAG> 1
#act
StartAutoPlayGame
MOV S$挂机 <Button|x=-60|y=-450|color=251|mimg=private\main\Skill\1900012709.png|size=16|nimg=private\main\Skill\1900012709.png|pimg=private\main\Skill\1900012709.png|link=@停止挂机>
DELBUTTON 104 1
ADDBUTTON 104 1 <$STR(S$挂机)>
#IF
Equal <$CLIENTFLAG> 2
#act
StartAutoPlayGame
MOV S$挂机 <Button|x=-127|y=-374|color=251|mimg=private\main\Skill\1900012709.png|size=16|nimg=private\main\Skill\1900012709.png|pimg=private\main\Skill\1900012709.png|link=@停止挂机>
DELBUTTON 104 1
ADDBUTTON 104 1 <$STR(S$挂机)>
[@停止挂机]
#IF
Equal <$CLIENTFLAG> 1
#act
StopAutoPlayGame
MOV S$挂机 <Button|x=-60|y=-450|color=251|mimg=private\main\Skill\1900012708.png|size=16|nimg=private\main\Skill\1900012708.png|pimg=private\main\Skill\1900012708.png|link=@开始挂机>
DELBUTTON 104 1
ADDBUTTON 104 1 <$STR(S$挂机)>
#IF
Equal <$CLIENTFLAG> 2
#act
StopAutoPlayGame
MOV S$挂机 <Button|x=-127|y=-374|color=251|mimg=private\main\Skill\1900012708.png|size=16|nimg=private\main\Skill\1900012708.png|pimg=private\main\Skill\1900012708.png|link=@开始挂机>
DELBUTTON 104 1
ADDBUTTON 104 1 <$STR(S$挂机)>
[@StartAutoPlayGame]
#if
#act
SENDMSG 7 开始挂机
[@StopAutoPlayGame]
#IF
#act
SENDMSG 7 关闭挂机
#IF
Equal <$CLIENTFLAG> 1
#act
MOV S$挂机 <Button|x=-60|y=-450|color=251|mimg=private\main\Skill\1900012708.png|size=16|nimg=private\main\Skill\1900012708.png|pimg=private\main\Skill\1900012708.png|link=@开始挂机>
DELBUTTON 104 1
ADDBUTTON 104 1 <$STR(S$挂机)>
#IF
Equal <$CLIENTFLAG> 2
#act
MOV S$挂机 <Button|x=-127|y=-374|color=251|mimg=private\main\Skill\1900012708.png|size=16|nimg=private\main\Skill\1900012708.png|pimg=private\main\Skill\1900012708.png|link=@开始挂机>
DELBUTTON 104 1
ADDBUTTON 104 1 <$STR(S$挂机)>
}