From a7d7e5fc4c17ab455ce3a5118fb0c529241454f1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 20 一月 2021 11:07:34 +0800
Subject: [PATCH] 8701 【主干】【后端】活动相关的充值界面显示优化(跨服充值排行活动支持分);
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerYinji.py | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerYinji.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerYinji.py
index fcbeb24..85d9dbe 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerYinji.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerYinji.py
@@ -58,4 +58,30 @@
curPlayer.SetDict(Def_LastYinji_Tick, GameWorld.GetGameWorld().GetTick())
pack = ChPyNetSendPack.tagMCYinjiStartTime()
- NetPackCommon.SendFakePack(curPlayer, pack)
\ No newline at end of file
+ NetPackCommon.SendFakePack(curPlayer, pack)
+
+
+def OnLoadMap(curPlayer):
+ PlayerControl.SetYinjiCnt(curPlayer, 0)
+ return
+
+#===============================================================================
+# // B4 0D 战斗印记 #tagCMYinji
+#
+# struct tagCMYinji
+# {
+# tagHead Head;
+# BYTE Count;
+# BYTE Type; // 0 加,1减
+# };
+#===============================================================================
+def OnYinji(index, clientData, tick):
+ curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
+ if curPlayer.GetSightLevel() == 0:
+ return
+ if clientData.Type == 0:
+ AddYinji(curPlayer, clientData.Count)
+ elif clientData.Type == 1:
+ SubYinji(curPlayer, clientData.Count)
+ return
+
--
Gitblit v1.8.0