ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActLianqi.py
@@ -20,8 +20,7 @@
import IpyGameDataPY
import NetPackCommon
import ChPyNetSendPack
import CrossRealmPlayer
import PlayerZhanling
#import PlayerZhanling
import ItemControler
import ItemCommon
import GameWorld
@@ -56,7 +55,7 @@
    
    playerID = curPlayer.GetPlayerID()
    
    actInfo = CrossRealmPlayer.GetPlayerCrossActInfo(curPlayer, ShareDefine.CrossActName_Lianqi)
    actInfo = {}#CrossRealmPlayer.GetPlayerCrossActInfo(curPlayer, ShareDefine.CrossActName_Lianqi)
    cfgID = actInfo.get(ShareDefine.ActKey_CfgID, 0)
    actID = actInfo.get(ShareDefine.ActKey_ID, 0)
    state = actInfo.get(ShareDefine.ActKey_State, 0)
@@ -68,7 +67,7 @@
        GameWorld.DebugLog("跨服炼器活动ID不变,不处理!cfgID=%s,actID=%s" % (cfgID, actID), playerID)  
        return
    GameWorld.DebugLog("跨服炼器活动重置! cfgID=%s,actID=%s,playerActID=%s,state=%s" % (cfgID, actID, playerActID, state), playerID)
    PlayerZhanling.ResetZhanling(curPlayer, PlayerZhanling.ZhanlingType_Lianqi)
    #PlayerZhanling.ResetZhanling(curPlayer, PlayerZhanling.ZhanlingType_Lianqi)
    
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CA_LianqiID, actID)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LianqiScore, 0)
@@ -90,8 +89,8 @@
        ReStartGame(curPlayer, isNotify=False)
        Sync_CrossActLianqiActionInfo(curPlayer)
        Sync_LianqiPlayerInfo(curPlayer)
    else:
        CrossRealmPlayer.NotifyCrossActEnd(curPlayer, ShareDefine.CrossActName_Lianqi)
    #else:
    #    CrossRealmPlayer.NotifyCrossActEnd(curPlayer, ShareDefine.CrossActName_Lianqi)
        
    return True
@@ -179,7 +178,7 @@
    OPValue3 = clientData.OPValue3
    
    if OPType not in [4]:
        actInfo = CrossRealmPlayer.GetPlayerCrossActInfo(curPlayer, ShareDefine.CrossActName_Lianqi)
        actInfo = {}#CrossRealmPlayer.GetPlayerCrossActInfo(curPlayer, ShareDefine.CrossActName_Lianqi)
        if not actInfo:
            GameWorld.DebugLog("非炼器活动中,无法操作! OPType=%s" % OPType, playerID)
            return
@@ -463,7 +462,7 @@
    curScore = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_LianqiScore)
    GameWorld.DebugLog("炼器活动积分增加: curScore=%s,addScore=%s,actLV=%s" % (curScore, addScore, actLV), curPlayer.GetPlayerID())
    SetLianqiScore(curPlayer, curScore + addScore, actLV)
    PlayerZhanling.AddZhanlingValue(curPlayer, PlayerZhanling.ZhanlingType_Lianqi, addScore)
    #PlayerZhanling.AddZhanlingValue(curPlayer, PlayerZhanling.ZhanlingType_Lianqi, addScore)
    return
def SetLianqiScore(curPlayer, setScore, actLV=0):
@@ -560,7 +559,7 @@
def Sync_CrossActLianqiActionInfo(curPlayer):
    ## 通知活动信息
    actInfo = CrossRealmPlayer.GetPlayerCrossActInfo(curPlayer, ShareDefine.CrossActName_Lianqi)
    actInfo = {}#CrossRealmPlayer.GetPlayerCrossActInfo(curPlayer, ShareDefine.CrossActName_Lianqi)
    if not actInfo:
        return