注册会员会员登录

通杀系列GK挂机辅助GEE等脚本分享

发布时间:2021-08-16 17:17:00 点击:

  今天带来的是常用的通杀系列(包含GK等版本)的传奇挂机脚本,虽然版本不一样,但是脚本语法是通用的。通杀系列相对来说脚本比较繁琐,简单的脚本可以通过脚本编辑器来自动生成,复杂的则需要手动编写了。虽然目前大部分的传奇脱机挂的脚本语法都采用LUA引擎,但是或多或少都有点区别,要实现同样的功能,有的辅助简单的三两行代码就可以轻松解决,有的则需要更复杂的代码。所以具体的还是要靠大家的使用习惯,没有最好的挂,只有最适合自己的挂。

function 回收() --回收子程序

点击坐标(396,57)

等待(500)

点击坐标(68,86)

等待(500)

点击坐标(80,87)

等待(500)

点击坐标(80,87)

等待(500)

end

-------------------------

if (获取地图名()=="魔龙禁地") then --此地图是打怪地图,如发现地图名字错误请修改

if 获取窗口("NPC对话框")==1 then

按键("esc")

end

if 获取窗口("对话框")==1 then

按键("enter")

end

if 获取窗口("包裹")==1 then

按键("f9")

end

设置挂机点("89,82|25,20|39,65|65,43")

丢弃物品()

if (角色("死亡")==1) then

小退()

end

if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序

回收()

else

开始打怪()

end

end

---------------------------------------挂机地图1

if (获取地图名()=="雪域冰宫") then --此地图是打怪地图,如发现地图名字错误请修改

if 获取窗口("NPC对话框")==1 then

按键("esc")

end

if 获取窗口("对话框")==1 then

按键("enter")

end

if 获取窗口("包裹")==1 then

按键("f9")

end

设置挂机点("89,82|25,20|39,65|65,43|92,76|23,17|19,56|81,19|65,66")

丢弃物品()

if (角色("死亡")==1) then

小退()

end

if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序

回收()

else

开始打怪()

end

end

---------------------------------------挂机地图2

if (获取地图名()=="深渊龙穴") then --此地图是打怪地图,如发现地图名字错误请修改

if 获取窗口("NPC对话框")==1 then

按键("esc")

end

if 获取窗口("对话框")==1 then

按键("enter")

end

if 获取窗口("包裹")==1 then

按键("f9")

end

设置挂机点("80,21|21,25|81,84|27,80|51,52")

丢弃物品()

if (角色("死亡")==1) then

小退()

end

if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序

回收()

else

开始打怪()

end

end

---------------------------------------挂机地图3

if (获取地图名()=="轩辕暗阁") then --此地图是打怪地图,如发现地图名字错误请修改

if 获取窗口("NPC对话框")==1 then

按键("esc")

end

if 获取窗口("对话框")==1 then

按键("enter")

end

if 获取窗口("包裹")==1 then

按键("f9")

end

设置挂机点("80,22|27,23|14,71|77,67|52,58")

丢弃物品()

if (角色("死亡")==1) then

小退()

end

if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序

回收()

else

开始打怪()

end

end

---------------------------------------挂机地图4

if (获取地图名()=="狐狸山庄") then --此地图是打怪地图,如发现地图名字错误请修改

if 获取窗口("NPC对话框")==1 then

按键("esc")

end

if 获取窗口("对话框")==1 then

按键("enter")

end

if 获取窗口("包裹")==1 then

按键("f9")

end

设置挂机点("78,28|27,73|75,70|50,27|56,52")

丢弃物品()

if (角色("死亡")==1) then

小退()

end

if (取背包空位()<2) then --检测包裹内空位少于2格执行回收子程序

回收()

else

开始打怪()

end

end

------------------------------------------------------挂机地图5

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%不进图

按键("esc")

return

end

math.randomseed(tostring(os.time()): reverse():sub(1,6))  --毫秒级随机库

随机进入=math.random(0,4) --随机0-4 表示随机5个地图

if 随机进入==0 then --0进入挂机地图1

if 寻路(337,346,2)==1 then  --寻路到此处开始对话

对话坐标(342,353)  --对话的NPC坐标

等待(800)

if 获取窗口("NPC对话框")==1 then

点击("@进入1",0)

等待(500)

if 获取窗口("对话框")==1 then

按键("enter")

等待(500)

end

end

end

elseif 随机进入==1 then --1进入挂机地图2

if 寻路(339,350,2)==1 then  --寻路到此处开始对话

对话坐标(340,352)  --对话的NPC坐标

等待(800)

if 获取窗口("NPC对话框")==1 then

点击("@进入1",0)

等待(500)

if 获取窗口("对话框")==1 then

按键("enter")

等待(500)

end

end

end 

elseif 随机进入==2 then --2进入挂机地图3

if 寻路(339,350,2)==1 then  --寻路到此处开始对话

对话坐标(338,352)  --对话的NPC坐标

等待(800)

if 获取窗口("NPC对话框")==1 then

点击("@进入1",0)

等待(500)

if 获取窗口("对话框")==1 then

按键("enter")

等待(500)

end

end

end

elseif 随机进入==3 then --3进入挂机地图4

if 寻路(339,350,2)==1 then  --寻路到此处开始对话

对话坐标(336,352)  --对话的NPC坐标

等待(800)

if 获取窗口("NPC对话框")==1 then

点击("@进入1",0)

等待(500)

if 获取窗口("对话框")==1 then

按键("enter")

等待(500)

end

end

end

elseif 随机进入==4 then --4进入挂机地图5

if 寻路(339,350,2)==1 then  --寻路到此处开始对话

对话坐标(334,352)  --对话的NPC坐标

等待(800)

if 获取窗口("NPC对话框")==1 then

点击("@进入1",0)

等待(500)

if 获取窗口("对话框")==1 then

按键("enter")

等待(500)

end

end

end

end

end

    文章评论
    内容:
     
    天骥脱机辅助,助你驰骋传奇沙场。
    本站提供的软件仅供测试和学习交流之用,并且只针对于传奇SF,不涉及任何官方游戏以及所授权的游戏版本。
    请勿用于任何非法用途。如有侵权,请及时告知,我们将之移除!特此声明!
    Powered by Mir2tj!