EndIf 
Goto 打坐回复
Rem 判断MP值
IfColor MpSit BaseMpY GetColorMp 2
    Goto 选定怪物
EndIf 
Rem 打坐回复
//----SitDown打坐
KeyPress SitDown,1
Delay 1000
Rem 检查HP回复程度
IfColor HpUp BaseHpY GetColorHp 2
    Goto 检查MP回复程度
EndIf 
Rem 检查偷袭
IfColor BaseNpcstartX BaseNpcY GetColorNpc 2
    Delay 200
    KeyPress PickThings,1
    Delay 300
    //----第二组合技能攻击
    KeyPress KeyKillTwo,1
    Goto 判断怪物死亡
EndIf 
Delay 1000
Goto 检查HP回复程度
Rem 检查MP回复程度
IfColor MpUp BaseMpY GetColorMp 2
    Goto 回复全满
EndIf 
Delay 1000
Goto 检查偷袭
Rem 回复全满
KeyPress PickThings,1
Rem 选定怪物
If KillType=1
    KeyPress 9,1
EndIf 
//----选定怪时,有网络延迟,充分利用这个时间再捡一次物品PickThings
If PickTimes>=1
    KeyPress PickThings,1
EndIf 
Delay 1000
IfColor BaseNpcEndX BaseNpcY GetColorNpc 2
    Goto 开始攻击
EndIf 
Goto 选定怪物
Rem 开始攻击
If PickTimes>=3 AND KillType=1
    Delay 200
    KeyPress PickThings,1
    Delay 1200
EndIf 
If DateDiff("n",STime,now)>=StateTime
    Delay 100
    KeyPress HaveState,1
    STime=now
    Delay 1000
EndIf 
KeyPress KeyKillMain,1
KillTime1=now
KillTime2=now
Rem 判断怪物死亡
Delay 800
//----血值太低吃药Eat_Hp
IfColor HpEat BaseHpY GetColorHp 2
Else 
    KeyPress Eat_Hp,1
    Delay 200
EndIf 
//----法值太低吃药Eat_Mp
IfColor MpEat BaseMpY GetColorMp 2
Else 
    KeyPress Eat_Mp,1
    Delay 200
EndIf 
//----防发呆系统
//----当攻击一个怪的时间超过KTime2秒,且怪的血值依然满时
If DateDiff("s",KillTime2,now)>=KTime2
    IfColor BaseNpcEndX BaseNpcY GetColorNpc 2
        //----回到选定怪物,重选.
        Goto 选定怪物
    EndIf 
EndIf 
//----当攻击一个怪的时间超过KTime1秒
If datediff("s",KillTime1,now)>=KTime1
    Delay 200
    //----普通攻击CommonKill
    KeyPress CommonKill,1
    KillTime1=now
EndIf 
//----以下为判断怪物死亡
IfColor BaseNpcStartX BaseNpcY GetColorNpc 2
    Goto 判断怪物死亡
EndIf 
Rem 捡物品
Delay 100
If PickTimes>=2 AND KillType=1
    KeyPress PickThings,1
    Delay 800
EndIf