hxp
2023-11-06 ce6373a4c8a6b213478a42605a67d091aa23b19d
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py
@@ -34,6 +34,8 @@
import ItemControler
import PlayerActivity
import PlayerTongTianLing
import ChPyNetSendPack
import NetPackCommon
#---战盟副本---
FBPlayerDict_TagPlayerID = 'XMYH_TagPlayerID%s'  # 邀请传功目标玩家ID
@@ -52,6 +54,10 @@
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FamilySitExpRound, 0)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FamilySitTotalExp, 0)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FamilySitTotalExpPoint, 0)
    return
def OnFBPlayerOnLogin(curPlayer):
    SyncFamilySitInfo(curPlayer)
    return
##开启副本
@@ -443,6 +449,7 @@
# @return 无意义
def DoExitFB(curPlayer, tick):
    global g_familyMapPlayerIDDict
    SyncFamilySitInfo(curPlayer)
    lineID = GameWorld.GetGameWorld().GetLineID()
    playerID = curPlayer.GetID()
    if playerID in g_familyMapPlayerIDDict.get(lineID, []):
@@ -476,3 +483,13 @@
        PlayerControl.GiveMoney(curPlayer, ShareDefine.TYPE_Price_FamilyActivity, addFamilyActivity)
        GameWorld.DebugLog("增加本仙盟成员答题活跃令, playerID=%s,addFamilyActivity=%s" % (curPlayer.GetPlayerID(), addFamilyActivity))
    return
def SyncFamilySitInfo(curPlayer):
    clientPack = ChPyNetSendPack.tagMCFamilySitInfo()
    clientPack.Clear()
    clientPack.ExpRound = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FamilySitExpRound)
    clientPack.Exp = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FamilySitTotalExp)
    clientPack.ExpPoint = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FamilySitTotalExpPoint)
    NetPackCommon.SendFakePack(curPlayer, clientPack)
    return