From d5e9bbcf96cf98d767ba073774b1ee287569659d Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 24 十一月 2018 18:20:13 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode
---
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