From 4522a07fe53f63a2ff97701ee6a166e80e329181 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 19 二月 2019 12:01:09 +0800
Subject: [PATCH] 6249 【后端】【2.0】拍卖行(拍卖物品表、拍卖记录表定义)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 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 8ddd788..ba315c8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py
@@ -36,6 +36,7 @@
import PlayerFamilyRedPacket
import GameFuncComm
import PlayerTeam
+import ChPlayer
import time
#---------------------------------------------------------------------
@@ -215,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)
@@ -605,3 +628,19 @@
+#===============================================================================
+# // A8 06 查询充值结果 #tagCMQueryRecharge
+#
+# struct tagCMQueryRecharge
+# {
+# tagHead Head;
+# };
+#===============================================================================
+def OnQueryRecharge(index, packData, tick):
+ curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
+ if tick - curPlayer.GetDictByKey("QRtick") < 10000:
+ return
+ curPlayer.SetDict("QRtick", tick)
+ curPlayer.SendDBQueryRecharge()
+ return
+
--
Gitblit v1.8.0