From c41b83ce17fe0623a6392ecb8b4bcfd35ed98770 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期四, 20 六月 2019 17:36:47 +0800 Subject: [PATCH] 7394 【2.0】【后端】雷罚BOSS --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 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 c741bfe..89e8191 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py @@ -34,6 +34,9 @@ import EventShell import PassiveBuffEffMng import PlayerFamilyRedPacket +import GameFuncComm +import PlayerTeam +import ChPlayer import time #--------------------------------------------------------------------- @@ -192,8 +195,8 @@ EventShell.EventResponse_BuyVIPItem(curPlayer, vipLV) GameWorld.DebugLog("vip礼包-%s" % itemList) for itemid, cnt, isBind in itemList: - ItemControler.GivePlayerItem(curPlayer, int(itemid), int(cnt), isBind, - [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere], True, showSysInfo=True, event=["buyVIPGift", False, {"VIPLV":vipLV}]) + ItemControler.GivePlayerItem(curPlayer, int(itemid), int(cnt), 0, [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere], + event=["buyVIPGift", False, {"VIPLV":vipLV}]) # else: # __AwardToPlayerByMail(curPlayer, itemList) openuiid = IpyGameDataPY.GetFuncEvalCfg('VIPPanel', 1, {}).get(vipLV, 0) @@ -294,6 +297,11 @@ redPacketID = IpyGameDataPY.GetFuncEvalCfg('VIPRedPackAward', 1, {}).get(vipLV, 0) if redPacketID: PlayerFamilyRedPacket.CreatRedPacketByID(curPlayer, redPacketID) + + GameFuncComm.DoFuncOpenLogic(curPlayer) + + if not curPlayer.GetTeam(): + PlayerTeam.RefreshTeamVIPBuff_OnNoTeam(curPlayer, GameWorld.GetGameWorld().GetTick()) return #通知玩家购买礼包纪录 @@ -598,3 +606,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