function 回收() --回收子程序
if 获取窗口("包裹")==0 then
按键("f9")
等待(500)
end
点击坐标(351,555)
等待(500)
点击("DItemBagButton3",0)
等待(500)
点击("@一键回收元宝",0)
等待(500)
end
if (获取地图名()=="崎岖石墓") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
丢弃物品()
if (角色("死亡")==1) then
小退()
end
if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序
回收()
end
if 取标记(6)==11 then
if 边走边打(56,43,5)==1 then
置标记(6,12)
end
elseif 取标记(6)==12 then
if 边走边打(117,77,5)==1 then
置标记(6,13)
end
elseif 取标记(6)==13 then
if 边走边打(161,141,5)==1 then
置标记(6,14)
end
elseif 取标记(6)==14 then
if 边走边打(89,138,5)==1 then
置标记(6,15)
end
elseif 取标记(6)==15 then
if 边走边打(105,93,5)==1 then
置标记(6,16)
end
elseif 取标记(6)==16 then
if 边走边打(60,133,5)==1 then
置标记(6,17)
end
elseif 取标记(6)==17 then
if 边走边打(50,46,3)==1 then
使用物品("盟重传送石")
置标记(1,0)
置标记(6,0)
等待(500)
end
else
置标记(6,11)
end
end
if (获取地图名()=="魔界地狱") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
丢弃物品()
if (角色("死亡")==1) then
小退()
end
if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序
回收()
end
if 取标记(4)==11 then
if 边走边打(15,58,5)==1 then
置标记(4,12)
end
elseif 取标记(4)==12 then
if 边走边打(88,62,5)==1 then
置标记(4,13)
end
elseif 取标记(4)==13 then
if 边走边打(15,28,5)==1 then
置标记(4,14)
end
elseif 取标记(4)==14 then
if 边走边打(85,26,3)==1 then
使用物品("盟重传送石")
置标记(1,2)
置标记(4,0)
等待(500)
end
else
置标记(4,11)
end
end
if (获取地图名()=="终极之地") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
丢弃物品()
if (角色("死亡")==1) then
小退()
end
if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序
回收()
end
if 取标记(5)==11 then
if 边走边打(77,21,5)==1 then
置标记(5,12)
end
elseif 取标记(5)==12 then
if 边走边打(48,27,5)==1 then
置标记(5,13)
end
elseif 取标记(5)==13 then
if 边走边打(31,50,5)==1 then
置标记(5,14)
end
elseif 取标记(5)==14 then
if 边走边打(29,83,5)==1 then
置标记(5,15)
end
elseif 取标记(5)==15 then
if 边走边打(58,75,5)==1 then
置标记(5,16)
end
elseif 取标记(5)==16 then
if 边走边打(77,59,5)==1 then
置标记(5,17)
end
elseif 取标记(5)==17 then
if 边走边打(79,37,5)==1 then
置标记(5,18)
end
elseif 取标记(5)==18 then
if 边走边打(58,53,3)==1 then
使用物品("盟重传送石")
置标记(1,1)
置标记(5,0)
等待(500)
end
else
置标记(5,11)
end
end
if (获取地图名()=="盟重省") then --此地图进图,如发现地图名字错误请修改
血量=角色("当前HP")
最大血量=角色("最大HP")
血量百分比=(血量/最大血量)*100
if 检测复活()==1 then --判断可不删除
按键("呵呵")
return
end
if 获取窗口("包裹")==1 then
按键("f9")
end
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 血量百分比<90 then --血量低于90%不进图
按键("呵呵")
return
end
if 取标记(1)==0 then
if 寻路(333,338,2)==1 then --寻路到此处开始对话
对话坐标(334,340) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@终极之地",0)
置标记(1,1)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
elseif 取标记(1)==1 then
if 寻路(333,338,2)==1 then --寻路到此处开始对话
对话坐标(331,340) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@魔界地狱",0)
置标记(1,2)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
elseif 取标记(1)==2 then
if 寻路(333,338,2)==1 then --寻路到此处开始对话
对话坐标(328,340) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@崎岖石墓",0)
置标记(1,0)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
end
end