| | |
| | | Writer = alee
|
| | | Releaser = alee
|
| | | RegType = 0
|
| | | RegisterPackCount = 3
|
| | | RegisterPackCount = 4
|
| | |
|
| | | PacketCMD_1=0xA8
|
| | | PacketSubCMD_1=0x01
|
| | |
| | | PacketSubCMD_3=0x05
|
| | | PacketCallFunc_3=OnVIPKillNPCLVInfoSwitch
|
| | |
|
| | | PacketCMD_4=0xA8
|
| | | PacketSubCMD_4=0x06
|
| | | PacketCallFunc_4=OnQueryRecharge
|
| | |
|
| | |
|
| | | ;在线奖励
|
| | | [PlayerOnlinePrize]
|
| | | ScriptName = Player\PlayerOnlinePrize.py
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A8 06 查询充值结果 #tagCMQueryRecharge
|
| | |
|
| | | class tagCMQueryRecharge(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xA8
|
| | | self.SubCmd = 0x06
|
| | | return
|
| | |
|
| | | def ReadData(self, stringData, _pos=0, _len=0):
|
| | | self.Clear()
|
| | | memmove(addressof(self), stringData[_pos:], self.GetLength())
|
| | | return _pos + self.GetLength()
|
| | |
|
| | | def Clear(self):
|
| | | self.Cmd = 0xA8
|
| | | self.SubCmd = 0x06
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCMQueryRecharge)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// A8 06 查询充值结果 //tagCMQueryRecharge:
|
| | | Cmd:%s,
|
| | | SubCmd:%s
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCMQueryRecharge=tagCMQueryRecharge()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMQueryRecharge.Cmd,m_NAtagCMQueryRecharge.SubCmd))] = m_NAtagCMQueryRecharge
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A8 05 VIP杀怪等级信息同步开关 #tagCMVIPKillNPCLVInfoSwitch
|
| | |
|
| | | class tagCMVIPKillNPCLVInfoSwitch(Structure):
|
| | |
| | |
|
| | |
|
| | |
|
| | | #===============================================================================
|
| | | # // 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
|
| | |
|