10334 【越南】【英语】【BT】【砍树】境界修改-服务端(杀怪任务进度增加支持A2 25 客户端任务计数 # tagCMClientTaskCount)
| | |
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("CountID", c_int), # 计数ID,客户端与策划约定,可以是NPCID或其他
|
| | | ("Type", c_ubyte), # 1-杀怪
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | |
| | | self.Cmd = 0xA2
|
| | | self.SubCmd = 0x25
|
| | | self.CountID = 0
|
| | | self.Type = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | |
| | | DumpString = '''//A2 25 客户端任务计数 // tagCMClientTaskCount:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | CountID:%d
|
| | | CountID:%d,
|
| | | Type:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.CountID
|
| | | self.CountID,
|
| | | self.Type
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("CountID", c_int), # 计数ID,客户端与策划约定,可以是NPCID或其他
|
| | | ("Type", c_ubyte), # 1-杀怪
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | |
| | | self.Cmd = 0xA2
|
| | | self.SubCmd = 0x25
|
| | | self.CountID = 0
|
| | | self.Type = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | |
| | | DumpString = '''//A2 25 客户端任务计数 // tagCMClientTaskCount:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | CountID:%d
|
| | | CountID:%d,
|
| | | Type:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.CountID
|
| | | self.CountID,
|
| | | self.Type
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
| | | import NPCCommon
|
| | | import PlayerVip
|
| | | import PlayerGoldInvest
|
| | | import PlayerPrestigeSys
|
| | | import GameObj
|
| | |
|
| | | import math
|
| | |
| | | # {
|
| | | # tagHead Head;
|
| | | # DWORD CountID; // 计数ID,客户端与策划约定,可以是NPCID或其他
|
| | | # BYTE Type; // 1-杀怪
|
| | | # };
|
| | | #===============================================================================
|
| | | def ClientTaskCount(index, clientData, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | countType = clientData.Type |
| | | RunQuestEvent(curPlayer, "on_client_by_id", clientData.CountID, Def_RunQuestType_Normal)
|
| | |
|
| | |
|
| | | if countType == 1:
|
| | | PlayerPrestigeSys.AddRealmTaskValue(curPlayer, PlayerPrestigeSys.RealmTaskType_KillNPC, 1)
|
| | | return
|