if 获取窗口("NPC对话框2")==1 then
if string.find(获取NPC对话框内容(),"点击右侧图片")~= nil then
if 代答_G盾专用("1178300835|06C47389E2AD95C2",200,0)== "1" then
点击("@GDIMAGECHECK",1)
else
点击("@GDIMAGEUPDATA",1)
end
return
else
按键("esc")
end
end
function 回收() --回收子程序
if 获取窗口("包裹")==0 then
按键("f9")
等待(500)
end
点击坐标(337,528)
等待(500)
点击("@一键回收元宝1",0)
等待(500)
点击("@一键回收元宝1",0)
等待(500)
点击("@一键回收元宝1",0)
等待(500)
点击("@一键回收元宝1",0)
等待(500)
点击("@一键回收元宝1",0)
等待(500)
点击("@一键回收元宝1",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 --修复神水小于1开始执行购买
点击商城()
等待(500)
点击坐标(304,195)
等待(500)
点击坐标(440,414)
等待(500)
点击坐标(555,427)
等待(500)
按键("enter")
等待(200)
点击商城()
end
if 是否存在物品("盟重传送石")<1 then --药物小于1开始执行购买
点击商城()
等待(500)
点击坐标(320,140)
等待(500)
点击坐标(451,409)
等待(500)
点击坐标(564,421)
等待(500)
按键("enter")
等待(200)
点击商城()
end
if 检测耐久()==1 then --检测耐久不足5%修复
使用("修复神水") --物品名称自己改
end
if 边走边打2("29,81|11,49|15,14|47,18|77,17|80,74|52,56|37,40")==1 then
使用物品("盟重传送石")
置标记(1,0)
重置坐标()
等待(500)
end
丢弃物品()
if (角色("死亡")==1) then
小退()
end
if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序
回收()
end
end
if (获取地图名()=="上古之地") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
if 是否存在物品("修复神水")<1 then --修复神水小于1开始执行购买
点击商城()
等待(500)
点击坐标(320,201)
等待(500)
点击坐标(447,411)
等待(500)
点击坐标(558,421)
等待(500)
按键("enter")
等待(200)
点击商城()
end
if 是否存在物品("盟重传送石")<1 then --药物小于1开始执行购买
点击商城()
等待(500)
点击坐标(319,195)
等待(500)
点击坐标(441,409)
等待(500)
点击坐标(561,422)
等待(500)
按键("enter")
等待(200)
点击商城()
end
if 检测耐久()==1 then --检测耐久不足5%修复
使用("修复神水") --物品名称自己改
end
if 边走边打2("89,172|48,134|76,115|34,78|40,41|90,32|130,68|172,49|146,102|97,132|90,69|67,84|74,59")==1 then
使用物品("盟重传送石")
置标记(1,1)
重置坐标()
等待(500)
end
丢弃物品()
if (角色("死亡")==1) then
小退()
end
if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序
回收()
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 寻路(328,355,2)==1 then --寻路到此处开始对话
对话坐标(328,357) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@Wyjr3x",0)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
elseif 取标记(1)==1 then
if 寻路(329,351,2)==1 then --寻路到此处开始对话
对话坐标(331,357) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@Wyjr3x",0)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
end
end