当前位置:首页>最新公告

复古传奇道士挂机蜈蚣洞脚本

发布时间:2020年12月16日09:39

本传奇脚本适合170 176等大部分复古传奇及合击版本道士蜈蚣洞挂机,支持自动进图,买药,回城商店卖垃圾,脚本看起来复杂,但是修改起来比较简单。

蜈蚣洞脚本适合七星辅助A版本及A增强等黑色界面辅助,可以全部实现自动化,无需手动操作,挂机效率高。

脚本代码如下


--盟重省-蜈蚣

执行脚本("meta.lua")


local g_hpname="超级金创药"

local g_hpnum=1

local g_mpname="超级魔法药"

local g_mpnum=2

local g_hcname="回城卷"

local g_hcnum=1

local g_sjbname="随机传送卷包"

local g_sjbnum=0

local g_sjname="随机传送卷"

local g_sjnum=2

local g_hsfname="护身符(大)"

local g_hsfnum=1

local g_hdname="黄色药粉(大量)"

local g_hdnum=0

local g_ldname="灰色药粉(大量)"

local g_ldnum=0


function 出发()

移动到范围2("D601",205,234,2)

等待(1500)

return 挂机()

end


function 安全区处理()

--存仓模块

local bsave=是否需要存()

if bsave then

移动到范围2("3",325,325,8)

等待(1000)

坐标对话(325,325)

等待(1000)

选择("@talkwith")

等待(1000)

选择("@Gwh")

等待(1000)

移动到范围2("0145",9,12,8)

等待(1000)

坐标对话(9,12)

等待(1000)

选择("@storage")

等待(1000)

存()

end

--卖武器 修武器

bsold=是否需要卖(5,6)

local brepair1=是否需要修理(90,1)

if bsold or brepair1 then

local mapid=获取地图id()

if mapid=="3" then

移动到范围2("3",325,325,8)

等待(1000)

坐标对话(325,325)

等待(1000)

选择("@talkwith")

等待(1000)

选择("@Gwe")

等待(1000)

end

移动到范围2("0159",5,9,8)

等待(1000)

if bsold then

坐标对话(5,9)

等待(1000)

选择("@sell")

等待(1000)

卖(5,6)

end

if brepair1 then

坐标对话(5,9)

等待(1000)

选择("@s_repair")

等待(1000)

修理(1)

end

end

--卖衣服

local bsold=是否需要卖(10,11)

local brepair0=是否需要修理(60,0) --衣服

if bsold or brepair0 then

移动到范围2("0149",23,20,8)

等待(1000)

if bsold then

坐标对话(23,20)

等待(1000)

选择("@sell")

等待(1000)

卖(10,11)

end

if brepair0 then

坐标对话(23,20)

等待(1000)

选择("@s_repair")

等待(1000)

if brepair0 then

修理(0)

end

end

end

--头盔

local bsold=是否需要卖(15)

local brepair2=是否需要修理(80,2) --头盔

if bsold or brepair2 then

移动到范围2("0149",8,5,8)

等待(1000)

if bsold then

坐标对话(8,5)

等待(1000)

选择("@sell")

等待(1000)

卖(15)

end

if brepair2 then

坐标对话(8,5)

等待(1000)

选择("@s_repair")

等待(1000)

if brepair2 then

修理(2)

end

end

end

--卖戒指

local bsold=是否需要卖(22,23)

local brepair7=是否需要修理(90,7) --右戒指

local brepair8=是否需要修理(90,8) --左戒指

if bsold or brepair7 or brepair8 then

移动到范围2("0158",11,16,8)

等待(1000)

if bsold then

坐标对话(11,16)

等待(1000)

选择("@sell")

等待(1000)

卖(22,23)

end

if brepair7 or brepair8 then

坐标对话(11,16)

等待(1000)

选择("@s_repair")

等待(1000)

if brepair7 then

修理(7)

end

if brepair8 then

修理(8)

end

end

end

--卖手镯

local bsold=是否需要卖(24,26)

local brepair5=是否需要修理(90,5) --右手镯

local brepair6=是否需要修理(90,6) --左手镯

if bsold or brepair5 or brepair6 then

移动到范围2("0158",16,11,8)

等待(1000)

if bsold then

坐标对话(16,11)

等待(1000)

选择("@sell")

等待(1000)

卖(24,26)

end

if brepair5 or brepair6 then

坐标对话(16,11)

等待(1000)

选择("@s_repair")

等待(1000)

if brepair5 then

修理(5)

end

if brepair6 then

修理(6)

end

end

end

--项链

local bsold=是否需要卖(19,20,21)

local brepair3=是否需要修理(90,3) --项链

if bsold or brepair3 then

移动到范围2("0158",4,21,8)

等待(1000)

if bsold then

坐标对话(4,21)

等待(1000)

选择("@sell")

等待(1000)

卖(19,20,21)

end

if brepair3 then

坐标对话(4,21)

等待(1000)

选择("@s_repair")

等待(1000)

if brepair3 then

修理(3)

end

end

end

--买杂物

local hcnum=获取物品数量(g_hcname)

local buyhc=(hcnum<g_hcnum)

local sjnum=获取物品数量(g_sjname)

local buysj=(sjnum<g_sjnum)

if buyhc or buysj then

移动到范围2("3",346,334,8)

等待(1000)

坐标对话(346,334)

等待(1000)

选择("@buy")

等待(1000)

买(g_hcname,g_hcnum-hcnum,1000)

买(g_sjname,g_sjnum-sjnum,1000)

end

--买符毒

local hsfnum = g_hsfnum - 获取物品数量(g_hsfname)

local hdnum = g_hdnum - 获取物品数量(g_hdname)

local ldnum = g_ldnum - 获取物品数量(g_ldname)

if hsfnum > 0 then

移动到范围2("3",346,334,8)

等待(1000)

坐标对话(346,334)

等待(1000)

选择("@buy")

等待(1000)

for i=1, hsfnum do

买装备(g_hsfname)

等待(1000)

end

end

if hdnum > 0 then

移动到范围2("3",346,334,8)

等待(1000)

坐标对话(346,334)

等待(1000)

选择("@buy")

等待(1000)

for i=1, hdnum do

买装备(g_hdname)

等待(1000)

end

end

if ldnum > 0 then

移动到范围2("3",346,334,8)

等待(1000)

坐标对话(346,334)

等待(1000)

选择("@buy")

等待(1000)

for i=1, ldnum do

买装备(g_ldname)

等待(1000)

end

end

--买药

local hpnum=获取物品数量(g_hpname)

local mpnum=获取物品数量(g_mpname)

local buyhp=(hpnum<g_hpnum)

local buymp=(mpnum<g_mpnum)

if buyhp or buymp then

移动到范围2("3",361,335,8)

等待(1000)

坐标对话(361,335)

等待(1000)

选择("@buy")

等待(1000)

买(g_hpname,g_hpnum-hpnum,1000)

买(g_mpname,g_mpnum-mpnum,1000)

end

return 出发()

end


function 挂机()

开始挂机()

使用物品(g_hcname)

等待(1000)

return 安全区处理()

end


do

--挂机路线

设置来回挂机路线()

添加挂机路线点2("D601",200,213,3)

添加挂机路线点2("D601",185,112,3)

添加挂机路线点2("D601",162,66,3)

添加挂机路线点2("D603",71,97,3)

添加挂机路线点2("D603",31,198,3)

添加挂机路线点2("D604",142,140,3)

添加挂机路线点2("D604",150,41,3)

添加挂机路线点2("D612",27,25,3)

添加挂机路线点2("D612",14,184,3)

添加挂机路线点2("D614",60,80,3)

添加挂机路线点2("D614",15,30,3)

添加挂机路线点2("D615",51,82,3)

添加挂机路线点2("D615",87,79,3)

添加挂机路线点2("D618",19,92,3)

添加挂机路线点2("D618",73,23,3)

添加挂机路线点2("D617",81,15,3)

添加挂机路线点2("D617",51,45,3)

添加挂机路线点2("D616",84,22,3)

添加挂机路线点2("D616",20,23,3)

添加挂机路线点2("D612",269,239,3)

添加挂机路线点2("D612",214,58,3)

添加挂机路线点2("D605",48,128,3)

添加挂机路线点2("D605",47,28,3)

添加挂机路线点2("D603",31,197,3)

添加挂机路线点2("D603",111,134,3)

添加挂机路线点2("D603",171,72,3)

添加挂机路线点2("D602",181,38,3)

添加挂机路线点2("D602",161,182,3)

添加挂机路线点2("D602",75,166,3)

添加挂机路线点2("D602",92,109,3)

添加挂机路线点2("D601",43,25,3)

添加挂机路线点2("D601",18,166,3)

--开始

local mapid=获取地图id()

if string.sub(mapid,1,2)=="D6" then

挂机()

else

安全区处理()

end

end



最后修改时间: 2023年06月24日17:25