From 9c7acc7f02e130a8b742ec21579fdf5e6640d3cc Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 16 十一月 2018 15:18:59 +0800
Subject: [PATCH] 2683 支持召唤兽-灵类型可继承主人为NPC的完整属性
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py
index 4647897..2e764df 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py
@@ -35,6 +35,8 @@
import PassiveBuffEffMng
import PlayerFamilyRedPacket
import GameFuncComm
+import PlayerTeam
+import ChPlayer
import time
#---------------------------------------------------------------------
@@ -214,6 +216,28 @@
# @return None
def DoOnLogin(curPlayer, tick):
#记录登陆时间
+
+ # VIP礼包聊天气泡框
+ if not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_ChatBubbleBox):
+ GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_ChatBubbleBox, 1)
+ ipyDataMgr = IpyGameDataPY.IPY_Data()
+ for i in xrange(ipyDataMgr.GetChatBubbleBoxCount()):
+ ipyData = ipyDataMgr.GetChatBubbleBoxByIndex(i)
+ needVIPLVGift = ipyData.GetNeedVIPLVGift()
+ if not needVIPLVGift:
+ continue
+ record = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_VipAwardRecord)
+ hasBuy = record & pow(2, needVIPLVGift)
+ if not hasBuy:
+ continue
+ boxID = ipyData.GetBoxID()
+ ChPlayer.DoActivateChatBubbleBox(curPlayer, boxID)
+ drDict = {"PlayerID":curPlayer.GetPlayerID(),"AccID":curPlayer.GetAccID(), "needVIPLVGift":needVIPLVGift, "BoxID":boxID}
+ DataRecordPack.SendEventPack("VIPGiftActChatBubbleBox", drDict, curPlayer)
+ GameWorld.Log("老号激活VIP礼包聊天气泡框: boxID=%s,needVIPLVGift=%s" % (boxID, needVIPLVGift), curPlayer.GetPlayerID())
+ else:
+ GameWorld.DebugLog("已经激活过老号VIP气泡框")
+
Sycn_VIPMsg(curPlayer)
Sycn_VIPAwardRecord(curPlayer)
Sycn_VIPTime(curPlayer, True)
@@ -297,6 +321,9 @@
PlayerFamilyRedPacket.CreatRedPacketByID(curPlayer, redPacketID)
GameFuncComm.DoFuncOpenLogic(curPlayer)
+
+ if not curPlayer.GetTeam():
+ PlayerTeam.RefreshTeamVIPBuff_OnNoTeam(curPlayer, GameWorld.GetGameWorld().GetTick())
return
#通知玩家购买礼包纪录
--
Gitblit v1.8.0