在QF文件(比如 QFunction-0.lua)里添加定时器触发函数 ontimer1001。 lua Copy code function ontimer1001(actor) -- 检查是否在皇宫 if getbaseinfo(actor, 60) ~= 1 then setofftimer(actor, 1001) -- 不在皇宫,移除定时器 return end -- 在皇宫,累计时间 local s

🤖 回答引擎: 后端Lua | 🕒 时间: 2026-05-20 11:33:42 | 👁️ 阅读: 7
← 返回问答库