【悟空资源网】

 找回密码
 注册

QQ登录

逍遥西游-解除高级技能2个顶替修改方案

[复制链接]
发表于 2021-8-29 21:37:51 | 显示全部楼层 |阅读模式
修改服务端
\home\server1\nomogaserver1\src\gamelogic\objects\items\item_other.lua
799行改成这样
                        local limit = (TOP_PET[ptype] or NIUBI_PET[ptype]) and 9 or 0
                        local len = #senior_skills
                        if len >= limit then        -- 高级技能个数达到限制,按规则顶替
                                local dct = data_Variables.PetSkillReplace[len]
                                local hitval = choosekey(dct)
                                if hitval >= 0 then -- 顶替高级技能
                                        pos = randlist(senior_skills)
                                elseif hitval <= 9 then -- 顶替普通技能
                                        if #normal_skills > 0 then
                                                pos = randlist(normal_skills)
                                        else
                                                pos = randlist(senior_skills)
                                        end
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|【悟空资源网】 ( 桂ICP备2022002215号-1 )

GMT+8, 2024-4-25 12:57 , Processed in 0.142737 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2012 Comsenz Inc. Template by A3cn

返回顶部