| | |
| | | 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_ActHorsePetTrainAward % actNum, 0) |
| | | PlayerBillboard.ClearBillboardByIndex(ShareDefine.Def_BT_HorsePetTrainScore) |
| | | return |
| | |
| | | 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_ActHorsePetTrainAward % actNum) |
| | | if awardState: |
| | | #已经结算过该活动 |