From d279595ca904135621e793008e43189f028acf71 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 02 十一月 2018 14:34:11 +0800
Subject: [PATCH] 4399 【后端】【1.2.0】气泡框聊天信息相关封包支持附加使用的气泡框ID;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index fe318e1..9184107 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -2562,8 +2562,7 @@
                 GameWorld.DebugLog("    未购买VIP礼包,无法使用该气泡框!needVIPLVGift=%s" % needVIPLVGift, curPlayer.GetPlayerID())
                 return
             
-    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ChatBubbleBoxUseID, useBoxID)
-    SyncChatBubbleBoxState(curPlayer)
+    PlayerControl.SetChatBubbleBox(curPlayer, useBoxID)
     return
 
 def DoActivateChatBubbleBox(curPlayer, boxID):
@@ -2577,12 +2576,10 @@
 
 def SyncChatBubbleBoxState(curPlayer):
     ## 同步聊天气泡框状态
-    useBoxID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ChatBubbleBoxUseID)
     boxState = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ChatBubbleBoxState % 0)
-    if not useBoxID and not boxState:
+    if not boxState:
         return
     boxStatePack = ChPyNetSendPack.tagMCChatBubbleBoxState()
-    boxStatePack.UseBoxID = useBoxID
     boxStatePack.BoxState = boxState
     NetPackCommon.SendFakePack(curPlayer, boxStatePack)
     return

--
Gitblit v1.8.0