1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/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