From 5e7cc365741cc616236d501e7a57a6255e8662d1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 13 一月 2025 15:53:10 +0800
Subject: [PATCH] 10334 【越南】【英语】【BT】【砍树】境界修改-服务端(杀怪任务进度增加支持A2 25 客户端任务计数 # tagCMClientTaskCount)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 8 ++++++--
ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py | 8 ++++++--
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py | 8 ++++++--
3 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py
index 77073f5..c8eb3c2 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py
@@ -7890,6 +7890,7 @@
("Cmd", c_ubyte),
("SubCmd", c_ubyte),
("CountID", c_int), # 计数ID,客户端与策划约定,可以是NPCID或其他
+ ("Type", c_ubyte), # 1-杀怪
]
def __init__(self):
@@ -7907,6 +7908,7 @@
self.Cmd = 0xA2
self.SubCmd = 0x25
self.CountID = 0
+ self.Type = 0
return
def GetLength(self):
@@ -7919,12 +7921,14 @@
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
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
index 77073f5..c8eb3c2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -7890,6 +7890,7 @@
("Cmd", c_ubyte),
("SubCmd", c_ubyte),
("CountID", c_int), # 计数ID,客户端与策划约定,可以是NPCID或其他
+ ("Type", c_ubyte), # 1-杀怪
]
def __init__(self):
@@ -7907,6 +7908,7 @@
self.Cmd = 0xA2
self.SubCmd = 0x25
self.CountID = 0
+ self.Type = 0
return
def GetLength(self):
@@ -7919,12 +7921,14 @@
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
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
index e533a6f..47aea33 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
@@ -107,6 +107,7 @@
import NPCCommon
import PlayerVip
import PlayerGoldInvest
+import PlayerPrestigeSys
import GameObj
import math
@@ -5198,10 +5199,13 @@
# {
# 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
--
Gitblit v1.8.0