10334 【越南】【英语】【BT】【砍树】境界修改-服务端(初始境界改为1)
3个文件已修改
14 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/RealmLVUP.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py
@@ -113,7 +113,7 @@
        
    GameWorld.DebugLog("GM处理境界开启功能: needRealmLV=%s" % needRealmLV, curPlayer.GetPlayerID())
    if needRealmLV:
        curPlayer.SetOfficialRank(needRealmLV - 1)
        curPlayer.SetOfficialRank(max(1, needRealmLV - 1))
        PlayerPrestigeSys.DoRealmLVUpLogic(curPlayer)
        
    GameWorld.DebugLog("GM处理任务开启功能: needMissionIDList=%s" % needMissionIDList, curPlayer.GetPlayerID())
@@ -158,7 +158,7 @@
    ## GM关闭功能
    if not closeFuncID:
        curPlayer.SetLV(1)
        curPlayer.SetOfficialRank(0)
        curPlayer.SetOfficialRank(1)
        ipyDataMgr = IpyGameDataPY.IPY_Data()
        for i in xrange(ipyDataMgr.GetTreasureCount()):
            ipyData = ipyDataMgr.GetTreasureByIndex(i)
@@ -191,7 +191,7 @@
        
    limitRealmLV = ipyData.GetLimiRealmLV()
    if limitRealmLV and curPlayer.GetOfficialRank() >= limitRealmLV:
        curPlayer.SetOfficialRank(max(0, limitRealmLV - 1))
        curPlayer.SetOfficialRank(max(1, limitRealmLV - 1))
        
    limitMagicWeaponID = ipyData.GetLimitMagicWeapon()
    if limitMagicWeaponID:
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/RealmLVUP.py
@@ -43,7 +43,7 @@
    value = cmdList[0]
    if value == 0:
        reVersionState = cmdList[1] if len(cmdList) > 1 else 0
        curPlayer.SetOfficialRank(0)
        curPlayer.SetOfficialRank(1)
        curPlayer.SetFreePoint(0)
        GameWorld.DebugAnswer(curPlayer, "重置境界!")
        GameWorld.DebugAnswer(curPlayer, "重置灵根点!")
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
@@ -66,6 +66,8 @@
    SyncRealmFBState(curPlayer, isAll=True)
    UpdateRealmExp(curPlayer, False)
    NotifyRealmExpInfo(curPlayer)
    if not curPlayer.GetOfficialRank():
        curPlayer.SetOfficialRank(1)
    return
def DoRealmVersionStateLogic(curPlayer):
@@ -76,14 +78,14 @@
        return
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RealmVersionState, 1)
    realmLV = curPlayer.GetOfficialRank()
    if not realmLV:
    if realmLV <= 1:
        # 新号不处理
        return
    playerID = curPlayer.GetPlayerID()
    GameWorld.Log("======================== 执行境界版本变更重置逻辑 =======================", playerID)
    
    # 重置境界
    curPlayer.SetOfficialRank(0)
    curPlayer.SetOfficialRank(1)
    
    # 返还境界丹
    returnItemID = IpyGameDataPY.GetFuncCfg("RealmLvUP", 1)