传奇脱机辅助过W10系统自动进图挂机:
if tonumber(os.time())-tonumber(取标记(66))>1200 then --1200秒使用一次修复神水
if 是否存在物品("修复神水")<1 then --修复神水小于1开始执行购买
点击商城()
等待(500)
点击坐标(775,288)
等待(500)
点击坐标(654,420)
等待(500)
按键("enter")
等待(200)
点击商城()
end
使用("修复神水")
等待(500)
置标记(66,tonumber(os.time()))
end
if 是否存在物品("回城石")<1 then --药物小于1开始执行购买
点击商城()
等待(500)
点击坐标(412,102)
等待(500)
点击坐标(465,155)
等待(500)
点击坐标(654,421)
等待(500)
按键("enter")
等待(200)
点击坐标(654,421)
等待(500)
按键("enter")
等待(200)
点击商城()
end
if (获取地图名()=="世界神主称号地图(秘元)") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
if 边走边打("82,24|106,38|69,43|86,52|83,38|53,91|29,109|33,76|15,91|42,84")==1 then
使用物品("回城石")
置标记(1,0)
重置坐标()
等待(500)
end
丢弃物品()
end
if (获取地图名()=="狂暴地图⑿") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
if 边走边打("75,15|76,38|75,59|61,78|30,80|19,73|29,55|39,39|50,26|64,36|57,53|51,65|34,66|52,49")==1 then
使用物品("回城石")
置标记(1,4)
重置坐标()
等待(500)
end
丢弃物品()
end
if (获取地图名()=="捐献地图⑿") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
if 边走边打("87,23|65,26|84,45|68,55|54,38|47,60|72,40")==1 then
使用物品("回城石")
置标记(1,3)
重置坐标()
等待(500)
end
丢弃物品()
end
if (获取地图名()=="BOSS地图⑿") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
if 边走边打("20,59|55,29|120,48|129,109|142,143|103,134|40,124|41,85|82,88|101,108")==1 then
使用物品("回城石")
置标记(1,2)
重置坐标()
等待(500)
end
丢弃物品()
end
if (获取地图名()=="天问VIP地图") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
if 边走边打("49,29|65,51|40,64|15,48|27,38|43,38|31,62|47,55|35,51")==1 then
使用物品("回城石")
置标记(1,1)
重置坐标()
等待(500)
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
移除NPC(172,178)
if 寻路(171,177,4)==1 then --寻路到此处开始对话
对话坐标(172,178) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@传送0",0)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
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
移除NPC(163,178)
if 寻路(159,181,2)==1 then --寻路到此处开始对话
对话坐标(163,178) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@专属1",0)
置标记(1,1)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
elseif 取标记(1)==1 then
移除NPC(160,178)
if 寻路(157,182,2)==1 then --寻路到此处开始对话
对话坐标(160,178) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@专属1",0)
置标记(1,2)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
elseif 取标记(1)==2 then
移除NPC(157,178)
if 寻路(155,181,2)==1 then --寻路到此处开始对话
对话坐标(157,178) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@专属1",0)
置标记(1,3)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
elseif 取标记(1)==3 then
移除NPC(154,178)
if 寻路(156,180,2)==1 then --寻路到此处开始对话
对话坐标(154,178) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@专属1",0)
置标记(1,4)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
elseif 取标记(1)==4 then
移除NPC(151,178)
if 寻路(154,181,2)==1 then --寻路到此处开始对话
对话坐标(151,178) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@称号1",0)
置标记(1,0)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
end
end