5424 【后端】【1.4】跨服竞技场开发(历史赛季信息增加记录赛季积分)
| | |
| | | ("SeasonID", c_ushort), # 赛季ID
|
| | | ("Order", c_ushort), # 名次
|
| | | ("DanLV", c_ubyte), # 段位
|
| | | ("Score", c_int), # 积分
|
| | | ("AwardLV", c_ubyte), # 赛季结算奖励等级,比如王者法宝的属性取该等级对应属性
|
| | | ]
|
| | |
|
| | |
| | | self.SeasonID = 0
|
| | | self.Order = 0
|
| | | self.DanLV = 0
|
| | | self.Score = 0
|
| | | self.AwardLV = 0
|
| | | return
|
| | |
|
| | |
| | | SeasonID:%d,
|
| | | Order:%d,
|
| | | DanLV:%d,
|
| | | Score:%d,
|
| | | AwardLV:%d
|
| | | '''\
|
| | | %(
|
| | | self.SeasonID,
|
| | | self.Order,
|
| | | self.DanLV,
|
| | | self.Score,
|
| | | self.AwardLV
|
| | | )
|
| | | return DumpString
|
| | |
| | | Def_PDict_CrossPK_ZoneID = "CrossPK_ZoneID" # 玩家上次参与的赛区ID
|
| | | Def_PDict_CrossPK_SeasonID = "CrossPK_SeasonID" # 玩家上次参与的赛季ID
|
| | | Def_PDict_CrossPK_SeasonDanLV = "CrossPK_SeasonDanLV_%s" # 历史赛季段位,参数,赛季ID
|
| | | Def_PDict_CrossPK_SeasonScore = "CrossPK_SeasonScore_%s" # 历史赛季积分,参数,赛季ID
|
| | | Def_PDict_CrossPK_SeasonOrder = "CrossPK_SeasonOrder_%s" # 历史赛季名次,参数,赛季ID
|
| | | Def_PDict_CrossPK_SeasonAwardLV = "CrossPK_SeasonAwardLV_%s" # 历史赛季奖励等级(一般是段位等级,排行奖励的在最高段位等级基础上增加),参数,赛季ID
|
| | |
|
| | |
| | | ("SeasonID", c_ushort), # 赛季ID
|
| | | ("Order", c_ushort), # 名次
|
| | | ("DanLV", c_ubyte), # 段位
|
| | | ("Score", c_int), # 积分
|
| | | ("AwardLV", c_ubyte), # 赛季结算奖励等级,比如王者法宝的属性取该等级对应属性
|
| | | ]
|
| | |
|
| | |
| | | self.SeasonID = 0
|
| | | self.Order = 0
|
| | | self.DanLV = 0
|
| | | self.Score = 0
|
| | | self.AwardLV = 0
|
| | | return
|
| | |
|
| | |
| | | SeasonID:%d,
|
| | | Order:%d,
|
| | | DanLV:%d,
|
| | | Score:%d,
|
| | | AwardLV:%d
|
| | | '''\
|
| | | %(
|
| | | self.SeasonID,
|
| | | self.Order,
|
| | | self.DanLV,
|
| | | self.Score,
|
| | | self.AwardLV
|
| | | )
|
| | | return DumpString
|
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_SeasonID, 0)
|
| | | for i in xrange(1, 20):
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_SeasonDanLV % i, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_SeasonScore % i, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_SeasonOrder % i, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_SeasonAwardLV % i, 0)
|
| | |
|
| | |
| | | seasonID, setType, value = msgList
|
| | | setTypeDict = {0:[ChConfig.Def_PDict_CrossPK_SeasonDanLV, "段位"],
|
| | | 1:[ChConfig.Def_PDict_CrossPK_SeasonOrder, "名次"],
|
| | | 2:[ChConfig.Def_PDict_CrossPK_SeasonAwardLV, "奖励等级"],
|
| | | 2:[ChConfig.Def_PDict_CrossPK_SeasonScore, "积分"],
|
| | | 3:[ChConfig.Def_PDict_CrossPK_SeasonAwardLV, "奖励等级"],
|
| | | }
|
| | | if setType not in setTypeDict:
|
| | | __PrintHelp(curPlayer)
|
| | |
| | | GameWorld.DebugAnswer(curPlayer, "类型:0-积分,1-过天积分,2-段位,3-PK次数,4-胜利次数,5-连胜次数")
|
| | | GameWorld.DebugAnswer(curPlayer, "6-今日PK次数,7-今日胜利次数,8-今日购买次数")
|
| | | GameWorld.DebugAnswer(curPlayer, "设置历史记录: SetCrossPK 赛季ID 类型 数值")
|
| | | GameWorld.DebugAnswer(curPlayer, "类型:0-段位,1-名次,2-奖励等级")
|
| | | GameWorld.DebugAnswer(curPlayer, "类型:0-段位,1-名次,2-积分,3-奖励等级")
|
| | | return
|
| | |
|
| | |
|
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_ZoneID, zoneID)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_SeasonID, seasonID)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_SeasonDanLV % seasonID, danLV)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_SeasonScore % seasonID, pkScore)
|
| | |
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_TotalScore, pkScore)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_DanLV, danLV)
|
| | |
| | | seasonInfo = ChPyNetSendPack.tagMCCrossRealmPKPlayerHisSeason()
|
| | | seasonInfo.SeasonID = seasonID
|
| | | seasonInfo.DanLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_SeasonDanLV % seasonID)
|
| | | seasonInfo.Score = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_SeasonScore % seasonID)
|
| | | seasonInfo.Order = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_SeasonOrder % seasonID)
|
| | | seasonInfo.AwardLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_SeasonAwardLV % seasonID)
|
| | | hisSeasonInfo.SeasonList.append(seasonInfo)
|