9705 【后端】【越南】【主干】【BT7】通过后台查询本服VIP信息
| | |
| | | PlayerControl.SetCrossMapID(curPlayer, packValue, False)
|
| | |
|
| | | elif packType == IPY_GameServer.CDBPlayerRefresh_ExAttr9:
|
| | | PlayerControl.SetVIPExpireTime(curPlayer, packValue)
|
| | | curPlayer.SetExAttr9(packValue)
|
| | | #PlayerControl.SetVIPExpireTime(curPlayer, packValue)
|
| | |
|
| | | elif packType == IPY_GameServer.CDBPlayerRefresh_ExAttr10:
|
| | | PlayerControl.SetChatBubbleBox(curPlayer, packValue)
|
| | |
| | | def GetFBFuncLineID(curPlayer): return curPlayer.GetExAttr3()
|
| | |
|
| | | ##VIP到期时间
|
| | | def GetVIPExpireTime(curPlayer): return curPlayer.GetExAttr9()
|
| | | def SetVIPExpireTime(curPlayer, expireTime): return curPlayer.SetExAttr9(expireTime)
|
| | | def GetVIPExpireTime(curPlayer): return 0
|
| | | def SetVIPExpireTime(curPlayer, expireTime): return
|
| | | def GetValidVIPLV(curPlayer):
|
| | | # @return: 返回当前有效的VIP等级
|
| | | # vipTime = GetVIPExpireTime(curPlayer)
|
| | |
| | | if not vipLV:
|
| | | curPlayer.SetChangeCoinPointTotal(0)
|
| | | curPlayer.SetVIPLv(0)
|
| | | PlayerControl.SetVIPLVUpTime(curPlayer, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_VipExp, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_VipAwardRecord, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_VipBuyRecord, 0)
|
| | |
| | | return
|
| | |
|
| | | curPlayer.SetVIPLv(vipLV)
|
| | | PlayerControl.SetVIPLVUpTime(curPlayer, int(time.time()))
|
| | |
|
| | | vipExp = cmdList[1] if len(cmdList) > 1 else None
|
| | | if vipExp != None:
|
| | |
| | | return
|
| | |
|
| | | ##VIP到期时间, 需要同步GameServer
|
| | | def GetVIPExpireTime(curPlayer): return curPlayer.GetExAttr9()
|
| | | def SetVIPExpireTime(curPlayer, expireTime): return curPlayer.SetExAttr9(expireTime, False, True)
|
| | | def GetVIPExpireTime(curPlayer): return 0
|
| | | def SetVIPExpireTime(curPlayer, expireTime): return
|
| | |
|
| | | ##最近一次提升VIP等级时间
|
| | | def GetVIPLVUpTime(curPlayer): return curPlayer.GetExAttr9()
|
| | | def SetVIPLVUpTime(curPlayer, lvUpTime): return curPlayer.SetExAttr9(lvUpTime, False, True)
|
| | |
|
| | | ##聊天气泡框
|
| | | def GetChatBubbleBox(curPlayer): return curPlayer.GetExAttr10()
|
| | |
| | | return
|
| | | while vipLV in vipExpDict and vipExp >= vipExpDict[vipLV]:
|
| | | curPlayer.SetVIPLv(vipLV)
|
| | | PlayerControl.SetVIPLVUpTime(curPlayer, int(time.time()))
|
| | | GameWorld.ChangeTimeNumToStr(timeNum, timeFormat)
|
| | | OnChangeVIPLv(curPlayer, vipLV) ##当VIP等级变更,触发的方法写在这里
|
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_VIPLV, 1, [vipLV])
|
| | | vipLV += 1
|