| | |
| | | import IpyGameDataPY
|
| | | import NPCCommon
|
| | | import EventReport
|
| | | import EventShell
|
| | | import PassiveBuffEffMng
|
| | | import PlayerFamilyRedPacket
|
| | | import GameFuncComm
|
| | |
| | | return
|
| | | record = record|(1 << vipLV)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_VipAwardRecord, record)
|
| | |
|
| | | EventShell.EventResponse_BuyVIPItem(curPlayer, vipLV)
|
| | | |
| | | GameWorld.DebugLog("vip礼包-%s" % itemList)
|
| | | for itemid, cnt, isBind in itemList:
|
| | | ItemControler.GivePlayerItem(curPlayer, int(itemid), int(cnt), 0, [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere],
|
| | | event=["BuyVIPGift", False, {"VIPLV":vipLV}])
|
| | | # else:
|
| | | # __AwardToPlayerByMail(curPlayer, itemList)
|
| | | |
| | | ItemControler.NotifyGiveAwardInfo(curPlayer, itemList, "BuyVIPGift")
|
| | | openuiid = IpyGameDataPY.GetFuncEvalCfg('VIPPanel', 1, {}).get(vipLV, 0)
|
| | | PlayerControl.WorldNotify(0, 'BuyVIPGift', [curPlayer.GetName(), vipLV, itemList[0][0], openuiid])
|
| | | Sycn_VIPAwardRecord(curPlayer)
|
| | | return
|
| | |
|
| | | #发邮件
|
| | | def __AwardToPlayerByMail(curPlayer, mailItemInfoList):
|
| | | MailMessage = GetMailMessage()
|
| | | content = ShareDefine.Def_MailFormat % (MailMessage[0], '')
|
| | | getDays = MailMessage[1]
|
| | | PlayerControl.SendMail('', content, getDays, [curPlayer.GetPlayerID()], mailItemInfoList) |
| | |
|
| | | ##VIP登录处理
|
| | | # @param curPlayer
|
| | |
| | | # @param curPlayer 玩家
|
| | | # @return None
|
| | | def OnChangeVIPLv(curPlayer, vipLV):
|
| | | #vip等级改变触发任务
|
| | | EventShell.EventResponse_OnVipLvUp(curPlayer, vipLV)
|
| | | |
| | | CheckVIPDienstgrad(curPlayer)
|
| | |
|
| | | #删除VIP体验卡物品
|