MessageBox(4, "注入成功纯依赖远程不依靠本地v2@神明歌") local function takeItem(wpid) if not ClientCurGame or not ClientCurGame:isInGame() then ShowGameTipsWithoutFilter("#cFF7aad未在房间内") return end local ID = wpid local num = 200 CurMainPlayer:UploadCheckInfo2Host(1, '[{"id":1,"itemid":'..ID..',"itemnum":'..num..',"count":1,"iswarehouse":0,"status":0}]') CurMainPlayer:GetPlayerControl():GetAdShopExtraItemReward(1, ID, num) ShowGameTipsWithoutFilter("#cFF7aad已取物 "..ID.." x"..num) end local function monitorAndHook() while true do if ClientCurGame and type(ClientCurGame.sendChat) == "function" then if not ClientCurGame._linyu_hooked then local originalSendChat = ClientCurGame.sendChat ClientCurGame.sendChat = function(self, msg) if msg:find("^取物") then num = msg:match("^取物(%d+)" ) or 15056 ShowGameTipsWithoutFilter("#cFF7aad神明歌技术") takeItem(num) return end return originalSendChat(self, msg) end ClientCurGame._linyu_hooked = true ShowGameTipsWithoutFilter("#cFF7aad【取物...代码】") end end threadpool:wait(0.5) end end threadpool:work(monitorAndHook)