From aa951c5c5578194dc5076b2afb8d8e68c4af6f3f Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 04 九月 2018 17:33:48 +0800
Subject: [PATCH] fix:3260 【后端】支持戮仙武器满足仙宝寻主解锁条件

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
index c11de89..149425f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
@@ -631,9 +631,10 @@
         
         skillIDList = upIpyData.GetSkillID()
         if skillIDList:
+            sysMark = upIpyData.GetSysMark() or 'MountUpLv'
             for skillID in skillIDList:
                 __GiveSkill(curPlayer, skillID, tick)
-                PlayerControl.WorldNotify(0, 'MountUpLv', [playerName, horseID, updClassLV, skillID])
+                PlayerControl.WorldNotify(0, sysMark, [playerName, horseID, updClassLV, skillID])
         if not skillIDList and updClassLV == maxLV:
             PlayerControl.WorldNotify(0, 'MountUpLvMax', [playerName, horseID])
         
@@ -641,7 +642,7 @@
         PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_HorseAllLV, 1, [horseID, updClassLV])
         
         EventShell.EventRespons_HorseLV(curPlayer, updClassLV)
-        
+        EventShell.EventRespons_HorseUp(curPlayer)
         
     addLV = updClassLV - horseLV
     if addLV:
@@ -682,6 +683,7 @@
     #EventReport.WriteEvent_custom_mission_log(curPlayer, ChConfig.CME_Class_Horse, ChConfig.CME_Log_End, 1, cmeInfoEx=str(updateClassLV))
     sumLV = GetHorseSumLV(curPlayer)
     PlayerMagicWeapon.SetMWPrivilegeData(curPlayer, ChConfig.MWPrivilege_Horse, sumLV)
+
     # 刷属性,更新排行榜
     RefreshHorseAttr(curPlayer)
     # 玩家马匹进阶
@@ -820,7 +822,8 @@
     ItemCommon.ReduceItem(curPlayer, itemPack, itemList, needItemCnt, False, ChConfig.ItemDel_Horse)
     #设置初始等级
     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_Horser_LV % horseID, ipyData.GetInitLV(), ChConfig.Def_PDictType_Horse)
-    
+    for _ in xrange(ipyData.GetInitLV()):
+        EventShell.EventRespons_HorseUp(curPlayer)
     # 记录开服活动马匹阶级
     sumLV = GetHorseSumLV(curPlayer)
     OpenServerCampaign.UpdOpenServerCampaignRecordData(curPlayer, ShareDefine.Def_Campaign_Type_HorseLV, sumLV)
@@ -850,7 +853,8 @@
 
     # 刷属性,更新排行榜
     RefreshHorseAttr(curPlayer)
-    PlayerControl.WorldNotify(0, 'GetMount', [curPlayer.GetName(), ipyData.GetItemID()])
+    sysMark = ipyData.GetUnlockSys() or 'GetMount'
+    PlayerControl.WorldNotify(0, sysMark, [curPlayer.GetName(), ipyData.GetItemID()])
 #    
 #    HorseSkinNotifyDict = ReadChConfig.GetEvalChConfig("HorseSkinNotify")
 #    if horseSkinID in HorseSkinNotifyDict:

--
Gitblit v1.8.0