| | |
| | | Sync_PlayerCharmInfo(curPlayer)
|
| | | return
|
| | |
|
| | | def OnMixServerFirstLogin(curPlayer):
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | charmValueRecMgr = PyDataManager.GetDBPyCharmValueRecManager()
|
| | | if playerID not in charmValueRecMgr.charmTotalDict:
|
| | | return
|
| | | recTypeValueDict = charmValueRecMgr.charmTotalDict.get(playerID, {})
|
| | | charmTotal = recTypeValueDict.get(CharmValueRecType_Total, 0)
|
| | | charmWeek = recTypeValueDict.get(CharmValueRecType_Week, 0)
|
| | | charmDay = recTypeValueDict.get(CharmValueRecType_Day, 0)
|
| | | GameWorld.Log("合服首登同步魅力榜单: charmTotal=%s,charmWeek=%s,charmDay=%s" % (charmTotal, charmWeek, charmDay), playerID)
|
| | | PlayerBillboard.UpdatePlayerBillboardEx(curPlayer, playerID, ShareDefine.Def_BT_CharmTotal, charmTotal)
|
| | | PlayerBillboard.UpdatePlayerBillboardEx(curPlayer, playerID, ShareDefine.Def_BT_CharmWeek, charmWeek)
|
| | | PlayerBillboard.UpdatePlayerBillboardEx(curPlayer, playerID, ShareDefine.Def_BT_CharmDay, charmDay)
|
| | | return
|
| | |
|
| | | def GetPlayerCharmOfferSortList(playerID, recType):
|
| | | ## 获取排序后的玩家魅力贡献榜
|
| | |
|
| | |
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|
| | | return
|
| | |
|
| | | #// B3 19 提升魅力等级 #tagCGCharmLVUp
|
| | | #
|
| | | #struct tagCGCharmLVUp
|
| | | #{
|
| | | # tagHead Head;
|
| | | #};
|
| | | def OnCharmLVUp(index, clientData, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) |
| | | playerID = curPlayer.GetPlayerID()
|
| | | |
| | | totalCharm = 0
|
| | | charmValueRecMgr = PyDataManager.GetDBPyCharmValueRecManager()
|
| | | if playerID in charmValueRecMgr.charmTotalDict:
|
| | | recTypeValueDict = charmValueRecMgr.charmTotalDict.get(playerID, {})
|
| | | totalCharm = recTypeValueDict.get(CharmValueRecType_Total, 0)
|
| | | |
| | | PlayerControl.MapServer_QueryPlayer_DoLogic(curPlayer, "Charm", ["CharmLVUp", totalCharm], curPlayer.GetID())
|
| | | return
|
| | |
|
| | | def GMClearCharm():
|
| | | ## GM清空魅力
|