q763660086  2024-7-10 13:40:35 | 已受理|
2 166

80

回帖

6369

金币

3497

积分

积分
3497
发表于 2024-7-10 13:40:35 | 显示全部楼层 |阅读模式

马上注册,下载996引擎,与更多游戏开发者交流。

您需要 登录 才可以下载或查看,没有账号?注册

×
function playlevelup(player)
    --先判断是否穿戴加等级装备
    -- if  then

        local level = getconst(player,"<$level>")
        release_print("当前等级为:"..level)
        if tonumber(level) <200 then
            setplaydef(player,VarCfg["U玩家等级"],level)
        elseif tonumber(level)==200 then
            changeexp(player,"=",0,false)
            setplaydef(player,VarCfg["U玩家等级"],level)
        end
    -- end

end


如果             setplaydef(player,VarCfg["U玩家等级"],level)
           changeexp(player,"=",0,false)

这样写的时候 经验是设置不上去的。可以试一下!! 第二段代码等于无效了


最后回复时间:2024-07-11 20:29:39官方回复了此贴
回复

使用道具 举报

9610

回帖

1万

金币

1万

积分

积分
15311
发表于 2024-7-11 20:29:39 | 显示全部楼层
加延时呢
回复

使用道具 举报

80

回帖

6369

金币

3497

积分

积分
3497
 楼主| 发表于 2024-7-15 15:30:12 | 显示全部楼层

没试呢 一会我试试去
回复

使用道具 举报