xhlyh00520 发表于 2024-8-27 11:18:10

giveitem失效

这里有效
function login(actor)

    local level = getbaseinfo(actor, ConstCfg.gbase.level)
    setplaydef(actor, VarCfg.N_cur_level, level)
    --个人变量声明
    GameEvent.push(EventCfg.goPlayerVar, actor)
    --第一次登录
    local isnewhuman = getbaseinfo(actor, ConstCfg.gbase.isnewhuman)
    if isnewhuman then
      giveitem(actor,"井中月",1,0,"任务领取")


这里无效

function Task.RequestTalkFinish(actor, idx)
    release_print(11111)
    giveitem(actor,"井中月",1,0,"任务领取")

end

Message.RegisterNetMsg(ssrNetMsgCfg.Task, Task)

return Task



996技术-wang 发表于 2024-8-28 10:32:31

建议在LUA版块提问
页: [1]
查看完整版本: giveitem失效