文本与代码预览
[反].txt
txt · 2.9 KB
local Tab_1 = {
"校服",
"相机",
"宝物等级[1;10]",
"冷却时间(0则默认)[0;20]",
"触发次数(0则默认)[0;20]",
"自动聚能",
"撞墙聚能",
"跳跃聚能",
"下滑聚能",
"全部恢复"
}
local Tab_2
local Tab_3 = {
"checkbox",
"checkbox",
"number",
"number",
"number",
"checkbox",
"checkbox",
"checkbox",
"checkbox",
"checkbox"
}
local Prom = gg.prompt(Tab_1, Tab_2, Tab_3)
if not Prom then
return
else
for key, value in pairs(Prom) do
if (key == 1 and value == true) then
Value_1 = 31
gg.alert("您选择了校服")
elseif (key == 2 and value == true) then
Value_1 = 32
gg.alert("您选择了相机")
elseif (key == 3) then
Value_2 = value
gg.alert("您宝物等级为" .. value)
elseif (key == 4) then
if value == "0" then
gg.alert("冷却时间默认")
else
ms.ss(Value_1 * 100 + Value_2, 4, 32)
ms.py(1, 0x4, 4)
ms.py(1, -0x4, 4)
ms.py(1, 0x18, 4)
ms.py(1, 0x24, 4)
ms.py(1, 0x38, 4)
ms.py(1, 0x80, 4)
ms.edit(0, 0xA8, 16)
ms.edit(0, 0x98, 16)
ms.edit(value, 0x94, 16)
gg.alert("您冷却时间为" .. value)
end
elseif (key == 5) then
if value == "0" then
gg.alert("触发次数默认")
else
ms.ss(Value_1 * 100 + Value_2, 4, 32)
ms.py(1, 0x4, 4)
ms.py(1, -0x4, 4)
ms.py(1, 0x18, 4)
ms.py(1, 0x24, 4)
ms.py(1, 0x38, 4)
ms.py(1, 0x80, 4)
ms.edit(0, 0x74, 16)
ms.edit(0, 0x64, 16)
ms.edit(value, 0x60, 16)
gg.alert("您触发次数为" .. value)
end
elseif (key == 6 and value == true) then
ms.ss(Value_1 * 100 + Value_2, 4, 32)
ms.py(1, 0x4, 4)
ms.py(1, -0x4, 4)
ms.py(1, 0x18, 4)
ms.py(1, 0x24, 4)
ms.py(1, 0x38, 4)
ms.py(1, 0x80, 4)
ms.edit(0, 0x5C, 16)
ms.edit(0, 0x50, 16)
ms.edit(2, 0x4C, 4)
gg.alert("自动聚能")
elseif (key == 7 and value == true) then
ms.ss(Value_1 * 100 + Value_2, 4, 32)
ms.py(1, 0x4, 4)
ms.py(1, -0x4, 4)
ms.py(1, 0x18, 4)
ms.py(1, 0x24, 4)
ms.py(1, 0x38, 4)
ms.py(1, 0x80, 4)
ms.edit(0, 0x5C, 16)
ms.edit(0, 0x50, 16)
ms.edit(6, 0x4C, 4)
gg.alert("撞墙聚能")
elseif (key == 8 and value == true) then
ms.ss(Value_1 * 100 + Value_2, 4, 32)
ms.py(1, 0x4, 4)
ms.py(1, -0x4, 4)
ms.py(1, 0x18, 4)
ms.py(1, 0x24, 4)
ms.py(1, 0x38, 4)
ms.py(1, 0x80, 4)
ms.edit(0, 0x5C, 16)
ms.edit(0, 0x50, 16)
ms.edit(4, 0x4C, 4)
gg.alert("跳跃聚能")
elseif (key == 9 and value == true) then
ms.ss(Value_1 * 100 + Value_2, 4, 32)
ms.py(1, 0x4, 4)
ms.py(1, -0x4, 4)
ms.py(1, 0x18, 4)
ms.py(1, 0x24, 4)
ms.py(1, 0x38, 4)
ms.py(1, 0x80, 4)
ms.edit(0, 0x5C, 16)
ms.edit(0, 0x50, 16)
ms.edit(5, 0x4C, 4)
gg.alert("下滑聚能")
elseif (key == 10 and value == true) then
ms.ss(Value_1 * 100 + Value_2, 4, 32)
ms.py(1, 0x4, 4)
ms.py(1, -0x4, 4)
ms.py(1, 0x18, 4)
ms.py(1, 0x24, 4)
ms.py(1, 0x38, 4)
ms.py(1, 0x80, 4)
ms.edit(0, 0xA8, 16)
ms.edit(0, 0x98, 16)
ms.edit(20, 0x94, 16)
ms.ss(Value_1 * 100 + Value_2, 4, 32)
ms.py(1, 0x4, 4)
ms.py(1, -0x4, 4)
ms.py(1, 0x18, 4)
ms.py(1, 0x24, 4)
ms.py(1, 0x38, 4)
ms.py(1, 0x80, 4)
ms.edit(0, 0x74, 16)
ms.edit(0, 0x64, 16)
ms.edit(20, 0x60, 16)
gg.alert("恢复全部参数")
end
end
end