ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActGubao.py
@@ -28,8 +28,14 @@
import CrossRealmMsg
import GameWorld
def OnActStart(actNum):
def OnActStart(actNum, ipyData):
    ## 活动开启
    if not ipyData:
        return
    personalTemplateID = ipyData.GetPersonalTemplateID()
    if not personalTemplateID:
        GameWorld.DebugLog("古宝养成活动没有榜单奖励,不处理OnActStart! actNum=%s" % (actNum))
        return
    PlayerDBGSEvent.SetDBGSTrig_ByKey(PlayerDBGSEvent.Def_ActGubaoAward % actNum, 0)
    PlayerBillboard.ClearBillboardByIndex(ShareDefine.Def_BT_GubaoScore)
    return
@@ -54,6 +60,10 @@
    if not ipyData:
        return
    cfgID = ipyData.GetCfgID()
    personalTemplateID = ipyData.GetPersonalTemplateID()
    if not personalTemplateID:
        GameWorld.DebugLog("古宝养成活动没有榜单奖励,不结算榜单奖励! actNum=%s" % (actNum))
        return
    awardState = PlayerDBGSEvent.GetDBGSTrig_ByKey(PlayerDBGSEvent.Def_ActGubaoAward % actNum)
    if awardState:
        #已经结算过该活动