From f0f101d1d778e26a2e3ecd368c90c8f52a7ea011 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 13 六月 2019 11:11:44 +0800
Subject: [PATCH] 7220 【后端】【2.0】灵器开发1.0版(删除绝版属性,原绝版属性转移到灵器属性)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerYinji.py |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 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..320f862 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,32 @@
     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.GetLV() > 100:
+        # 只是为了前期前端战斗的使用
+        return
+    
+    if clientData.Type == 0:
+        AddYinji(curPlayer, clientData.Count)
+    elif clientData.Type == 1:
+        SubYinji(curPlayer, clientData.Count)
+    return
+

--
Gitblit v1.8.0