传奇脱机辅助加密服定时回收脚本案例:
if tonumber(os.time())-tonumber(取标记(6))>120 then --1200秒使用一次修复神水
点击坐标(69,45)
等待(500)
点击("@一键回收元宝",0)
等待(500)
点击("@storage",0)
等待(500)
物品存仓()
等待(500)
按键("esc")
使用("修复神水")
等待(500)
置标记(6,tonumber(os.time()))
end
if (获取地图名()=="崛起之路") then --此地图是打怪地图,如发现地图名字错误请修改
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 获取窗口("包裹")==1 then
按键("f9")
end
设置挂机点("153,183|85,204|50,221|225,91")
丢弃物品()
if (角色("死亡")==1) then
小退()
end
if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序
回收()
else
开始打怪()
end
end