GG仿XS写法
 
	--版本:2.0
 
	--副特征码数量理论不限制,支持冻结
 
	--by:LiuL丶XQM,反馈群:184546003
 
	--二改留版权,谢谢
 
	--配置↓↓↓勿修改
 
	function split(szFullString, szSeparator) local nFindStartIndex = 1 local nSplitIndex = 1 local nSplitArray = {} while true do local nFindLastIndex = string.find(szFullString, szSeparator, nFindStartIndex) if not nFindLastIndex then nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, string.len(szFullString)) break end nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, nFindLastIndex - 1) nFindStartIndex = nFindLastIndex + string.len(szSeparator) nSplitIndex = nSplitIndex + 1 end return nSplitArray end function xgxc(szpy, qmxg) for x = 1, #(qmxg) do xgpy = szpy + qmxg[x]["offset"] xglx = qmxg[x]["type"] xgsz = qmxg[x]["value"] xgdj = qmxg[x]["freeze"] if xgdj == nil or xgdj == "" then gg.setValues({[1] = {address = xgpy, flags = xglx, value = xgsz}}) else gg.addListItems({[1] = {address = xgpy, flags = xglx, freeze = xgdj, value = xgsz}}) end xgsl = xgsl + 1 xgjg = true end end function xqmnb(qmnb) gg.clearResults() gg.setRanges(qmnb[1]["memory"]) gg.searchNumber(qmnb[3]["value"], qmnb[3]["type"]) if gg.getResultCount() == 0 then gg.toast(qmnb[2]["name"] .. "开启失败") else gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) if gg.getResultCount() == 0 then gg.toast(qmnb[2]["name"] .. "开启失败") else sl = gg.getResults(999999) sz = gg.getResultCount() xgsl = 0 if sz > 999999 then sz = 999999 end for i = 1, sz do pdsz = true for v = 4, #(qmnb) do if pdsz == true then pysz = {} pysz[1] = {} pysz[1].address = sl.address + qmnb[v]["offset"] pysz[1].flags = qmnb[v]["type"] szpy = gg.getValues(pysz) pdpd = qmnb[v]["lv"] .. ";" .. szpy[1].value szpd = split(pdpd, ";") tzszpd = szpd[1] pyszpd = szpd[2] if tzszpd == pyszpd then pdjg = true pdsz = true else pdjg = false pdsz = false end end end if pdjg == true then szpy = sl.address xgxc(szpy, qmxg) end end if xgjg == true then gg.toast(qmnb[2]["name"] .. "开启成功,共修改" .. xgsl .. "条数据") else gg.toast(qmnb[2]["name"] .. "开启失败") end end end end
 
	--配置↑↑↑勿修改,调用方法   xqmnb(qmnb)
 
	 
 
	 
 
	 
 
	function Main()
 
	SN = gg.multiChoice({
 
	"超级范围",
 
	"退出脚本"
 
	}, nil, "这里可以填写你的QQ")
 
	if SN == nil then else
 
	if SN[1] == true then a() end
 
	if SN[2] == true then Exit() end
 
	end XGCK = -1 end
 
	 
 
	 
 
	 
 
	function a()
 
	      qmnb = {
 
	        {["memory"] = gg.REGION_ANONYMOUS},
 
	{["name"] = "Remove Fog"},
 
	{["value"] = 100000, ["type"] = gg.TYPE_FLOAT},
 
	{["antilogger"] = 1000, ["offset"] = 4, ["type"] = gg.TYPE_FLOAT},
 
	{["antilogger"] = 10000, ["offset"] = -28, ["type"] = gg.TYPE_FLOAT},
 
	}
 
	      qmxg = {
 
	        {["value"] = 1000088888888, ["offset"] = -60, ["type"] = gg.TYPE_FLOAT},
 
	}
 
	      xqmnb(qmnb)
 
	  end
 
	 
 
	 
 
	 
 
	function Exit()
 
	os.exit()
 
	end
 
	while true do
 
	  if gg.isVisible(true) then
 
	    XGCK = 1
 
	    gg.setVisible(false)
 
	  end
 
	  gg.clearResults()
 
	  if XGCK == 1 then
 
	    Main()
 
	  end
 
	end
 
	 
 
	That values script loading less then 30 micro seconds how is that possible can anyone explain please