--- 無心测试用的gm命令 --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by 無心道(15388152619). --- DateTime: 2024/11/12 17:08 --- function gm_add_item(actor, rewards) local rewardsMap = string.toIntIntMap(rewards, "#", "|") -- 添加奖励到背包 additemmaptobag(actor, rewardsMap) info(actor, "gm 添加道具", actor, rewards) end