#!/usr/bin/python # -*- coding: GBK -*- #--------------------------------------------------------------------- # #--------------------------------------------------------------------- ##@package PlayerVip # @todo: Íæ¼ÒVIPÂß¼­ # # @author: sgj # @date 2017-10-24 # @version 1.0 # # @note: # #--------------------------------------------------------------------- #"""Version = 2017-10-23 16:40""" #--------------------------------------------------------------------- import GameWorld #=============================================================================== # // 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