新闻动态   news
搜索   Search
你的位置:首页 > 新闻动态 > 官方新闻

gom助手脚本分享之蜈蚣洞挂机脚本

2017/1/4 0:48:35      点击:

        今天我们来分享一个gom助手复古脚本,蜈蚣洞挂机脚本。蜈蚣洞是大家挂机中的热门地图,因此免费提供官方挂机脚本模版给大家,使用中有任何问题欢迎联系。



--盟重省-蜈蚣

local g_hpname="超级金创药"
local g_hpnum=10
local g_mpname="超级魔法药"
local g_mpnum=5
local g_hcname="地牢逃脱卷"
local g_hcnum=1
local g_sjbname="随机传送卷包"
local g_sjbnum=1
local g_sjname="随机传送卷"
local g_sjnum=2
local g_hsfname="护身符(大)"
local g_hsfnum=4

function 回城()
	--存仓模块
	local bsave=是否需要存()
	if bsave then
		移动到范围2("3",325,324,5)
		等待(1500)
		坐标对话(325,324)
		等待(1500)
		选择("@talkwith")
		等待(1500)
		选择("@Gwh")
		等待(1500)
		移动到范围2("0145",9,12,5)
		等待(1500)
		坐标对话(9,12)
		等待(1500)
		选择("@storage")
		等待(1500)
		存()
	end
	--卖武器 修武器
	bsold=是否需要卖(5,6)
	local brepair1=是否需要修理(50,1)
	if bsold or brepair1 then
		local mapid=获取地图id()
		if mapid=="3" then
			移动到范围2("3",325,324,5)
			等待(1500)
			坐标对话(325,324)
			等待(1500)
			选择("@talkwith")
			等待(1500)
			选择("@Gwe")
			等待(1500)
		end
		移动到范围2("0159",5,9,5)
		等待(1500)
		if bsold then
			坐标对话(5,9)
			等待(1500)
			选择("@sell")
			等待(1500)
			卖(5,6)
		end
		if brepair1 then
			坐标对话(5,9)
			等待(1500)
			选择("@repair")
			等待(1500)
			修理(1)
		end
	end
	--卖衣服
	bsold=是否需要卖(10,11)
	local brepair0=是否需要修理(50,0) --衣服
	if bsold or brepair0 then
		移动到范围2("0149",23,20,5)
		等待(1500)
		if bsold then
			坐标对话(23,20)
			等待(1500)
			选择("@sell")
			等待(1500)
			卖(10,11)
		end
		if brepair0 then
			坐标对话(23,20)
			等待(1500)
			选择("@repair")
			等待(1500)
			if brepair0 then
				修理(0)
			end
		end
	end
	--头盔
	bsold=是否需要卖(15)
	local brepair4=是否需要修理(50,4) --头盔
	if bsold or brepair4 then
		移动到范围2("0149",8,5,5)
		等待(1500)
		if bsold then
			坐标对话(8,5)
			等待(1500)
			选择("@sell")
			等待(1500)
			卖(15)
		end
		if brepair4 then
			坐标对话(8,5)
			等待(1500)
			选择("@repair")
			等待(1500)
			if brepair4 then
				修理(4)
			end
		end
	end
	--卖戒指
	local bsold=是否需要卖(22,23)
	local brepair7=是否需要修理(50,7) --右戒指
	local brepair8=是否需要修理(50,8) --左戒指
	if bsold or brepair7 or brepair8 then
		移动到范围2("0158",11,16,5)
		等待(1500)
		if bsold then
			坐标对话(11,16)
			等待(1500)
			选择("@sell")
			等待(1500)
			卖(22,23)
		end
		if brepair7 or brepair8 then
			坐标对话(11,16)
			等待(1500)
			选择("@repair")
			等待(1500)
			if brepair7 then
				修理(7)
			end
			if brepair8 then
				修理(8)
			end
		end
	end
	--卖手镯
	local bsold=是否需要卖(24,26)
	local brepair5=是否需要修理(50,5) --右手镯
	local brepair6=是否需要修理(50,6) --左手镯
	if bsold or brepair5 or brepair6 then
		移动到范围2("0158",16,11,5)
		等待(1500)
		if bsold then
			坐标对话(16,11)
			等待(1500)
			选择("@sell")
			等待(1500)
			卖(24,26)
		end
		if brepair5 or brepair6 then
			坐标对话(16,11)
			等待(1500)
			选择("@repair")
			等待(1500)
			if brepair5 then
				修理(5)
			end
			if brepair6 then
				修理(6)
			end
		end
	end
	--项链
	local bsold=是否需要卖(19,20,21)
	local brepair3=是否需要修理(50,3) --项链
	if bsold or brepair3 then
		移动到范围2("0158",4,21,5)
		等待(1500)
		if bsold then
			坐标对话(4,21)
			等待(1500)
			选择("@sell")
			等待(1500)
			卖(19,20,21)
		end
		if brepair3 then
			坐标对话(4,21)
			等待(1500)
			选择("@repair")
			等待(1500)
			if brepair3 then
				修理(3)
			end
		end
	end
	--买卷轴
	local hcnum=获取物品数量(g_hcname)
	local sjbnum=获取物品数量(g_sjbname)
	local sjnum=获取物品数量(g_sjname)
	local hsfnum=获取物品数量(g_hsfname)
	local buyhc=(hcnum