传奇GK荣耀辅助冰雪之城回收验证
发布时间:2019-08-28 16:32:00 点击:
今天我们分享的一个最新的传奇脱机挂,GK荣耀辅助的冰雪之城回收验证例子,通过验证例子大家可以了解到一些常见的脚本函数和命令,并且荣耀的脚本语法全面兼容LUA语法,大家在遇到验证码的时候可以根据自身情况灵活编写。
function 对话框验证()
for x = 1, 2 do
if 窗口是否存在("对话框") then
local 对话框内容 = 获取对话框内容()
if string.find(对话框内容, "回收所有打勾的物品") then
return true
else
if string.find(对话框内容, "有几个【验证专用】") then
local 物品数量 = tostring(获取验证物品数量("验证专用"))
if 对话框点击选项打开窗口("输入框", "查看背包里有几个【验证专用】/@@inputinteger4(输入信息:)", "") then
随机延时(1000, 1500)
输入数字(物品数量)
随机延时(1000, 1500)
键盘("按键", "enter")
随机延时(1000, 1500)
end
elseif string.find(对话框内容, "【验证专用武器】") then
local 最大攻击 = tostring(获取包裹装备属性("验证专用武器", "最大攻击"))
if 对话框点击选项打开窗口("输入框", "请输入背包中验证专用武器附加的攻击点数/@@inputinteger4(输入信息:)", "") then
随机延时(1000, 1500)
输入数字(最大攻击)
随机延时(1000, 1500)
键盘("按键", "enter")
随机延时(1000, 1500)
end
elseif string.find(对话框内容, "上图是什么") then
local table = {
{ ["img"] = "", ["ans"] = "公鸡/@chun21公鸡"},
{ ["img"] = "", ["ans"] = "电脑/@chun21电脑"},
{ ["img"] = "", ["ans"] = "椅子/@chun21椅子"},
{ ["img"] = "", ["ans"] = "鲨鱼/@chun21鲨鱼"},
{ ["img"] = "", ["ans"] = "飞机/@chun21飞机"},
{ ["img"] = "", ["ans"] = "轮船/@chun21轮船"},
{ ["img"] = "", ["ans"] = "汽车/@chun21汽车"},
{ ["img"] = "", ["ans"] = "火车/@chun21火车"},
{ ["img"] = "", ["ans"] = "乌龟/@chun21乌龟"},
{ ["img"] = "", ["ans"] = "毛驴/@chun21毛驴"},
{ ["img"] = "", ["ans"] = "坦克/@chun21坦克"},
{ ["img"] = "", ["ans"] = "手机/@chun21手机"},
}
for i = 1, #table do
if string.find(对话框内容, table[i]["img"]) then
对话框点击选项(table[i]["ans"])
随机延时(1000, 1500)
break
end
end
elseif string.find(对话框内容, "点相同图") then
local table = {
{ ["img"] = "", ["ans"] = "Img:211:0:0:0/@feng21乌龟"}, --乌龟
{ ["img"] = "", ["ans"] = "Img:212:0:0:0/@feng21毛驴"}, --毛驴
{ ["img"] = "", ["ans"] = "Img:213:0:0:0/@feng21公鸡"}, --公鸡
{ ["img"] = "", ["ans"] = "Img:214:0:0:0/@feng21飞机"}, --飞机
{ ["img"] = "", ["ans"] = "Img:215:0:0:0/@feng21汽车"}, --汽车
{ ["img"] = "", ["ans"] = "Img:216:0:0:0/@feng21椅子"}, --椅子
}
for i = 1, #table do
if string.find(对话框内容, table[i]["img"]) then
对话框点击选项(table[i]["ans"])
随机延时(1000, 1500)
break
end
end
elseif string.find(对话框内容, "【验证技能】") then
local 技能等级 = tostring(获取角色技能等级("验证技能"))
if 对话框点击选项打开窗口("输入框", "输入F11【验证技能】的等级/@@inputinteger3(输入1-15的数字:)", "") then
随机延时(1000, 1500)
输入数字(技能等级)
随机延时(1000, 1500)
键盘("按键", "enter")
随机延时(1000, 1500)
end
elseif string.find(对话框内容, "请点击【") then
local 答案 = 取出中间文本(对话框内容, "(", ")")
local table = {
{ ["que"] = "技能书", ["ans"] = "Img:0:1:0:0/@chun21技能书"},
{ ["que"] = "红药", ["ans"] = "Img:28:1:0:0/@chun21红药"},
{ ["que"] = "武器", ["ans"] = "Img:72:1:0:0/@chun21武器"},
{ ["que"] = "金砖", ["ans"] = "Img:121:1:0:0/@chun21金砖"},
{ ["que"] = "回城卷", ["ans"] = "Img:402:1:0:0/@chun21回城卷"},
{ ["que"] = "苹果", ["ans"] = "Img:426:1:0:0/@chun21苹果"},
{ ["que"] = "蛋糕", ["ans"] = "Img:1001:1:0:0/@chun21蛋糕"},
{ ["que"] = "棒棒糖", ["ans"] = "Img:847:1:0:0/@chun21棒棒糖"},
{ ["que"] = "鲜花", ["ans"] = "Img:1338:1:0:0/@chun21鲜花"},
{ ["que"] = "元宝", ["ans"] = "Img:2155:1:0:0/@chun21元宝"},
}
for i = 1, #table do
if 答案 == table[i]["que"] then
对话框点击选项(table[i]["ans"])
随机延时(1000, 1500)
break
end
end
elseif string.find(对话框内容, "点上面没有的图") then
local 图片文本 = 取出中间文本(对话框内容, "<", "点上面没有的图")
local table = {
{ ["img"] = "Img:211:0:0:0", ["ans"] = "Img:211:0:0:0/@feng211乌龟"}, --乌龟
{ ["img"] = "Img:212:0:0:0", ["ans"] = "Img:212:0:0:0/@feng211毛驴"}, --毛驴
{ ["img"] = "Img:213:0:0:0", ["ans"] = "Img:213:0:0:0/@feng211公鸡"}, --公鸡
{ ["img"] = "Img:214:0:0:0", ["ans"] = "Img:214:0:0:0/@feng211飞机"}, --飞机
{ ["img"] = "Img:215:0:0:0", ["ans"] = "Img:215:0:0:0/@feng211汽车"}, --汽车
{ ["img"] = "Img:216:0:0:0", ["ans"] = "Img:216:0:0:0/@feng211椅子"}, --椅子
}
for i = 1, #table do
if not string.find(图片文本, table[i]["img"]) then
对话框点击选项(table[i]["ans"])
随机延时(1000, 1500)
break
end
end
else
关闭窗口("对话框")
return false
end
end
else
return false
end
end
return false
end
--
关闭所有窗口()
local 开始时间 = 取启动时间()
while 取启动时间() - 开始时间 <= 20 * 1000 do
if 对话框验证() then
对话框点击选项("【一件回收所有打勾的物品】/@一键回收勾选物品")
随机延时(1000, 1500)
关闭所有窗口()
break
else
使用物品("一键回收")
随机延时(1000, 1500)
end
end
--上面提供了一些例子,至于其它接口,可以到录制脚本编辑器去查看
--
上一篇:通杀版G盾和GK传奇挂机脚本模版分享 下一篇:传奇脱机挂哪个最好呢?