From f00d18cdfa6c3abdd69ef090dcb176d67b235fa5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 18 一月 2025 11:40:25 +0800
Subject: [PATCH] 1111 【越南】【英语】【BT】【砍树】增加判断坐骑是否满级任务接口
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py | 6 ++++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py | 11 +++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
index d18a4dd..f0d1a88 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -7047,6 +7047,12 @@
horseLV = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
return PlayerHorse.GetHorseSumLV(curPlayer) >= horseLV
+##坐骑是否满级
+# @param None
+# @return None <Horselvfull />
+def ConditionType_Horselvfull(curPlayer, curMission, curActionNode):
+ return PlayerHorse.IsHorseLVFull(curPlayer)
+
##是否已购买VIP礼包
# @param None
# @return None <Buyvipitem value="viplv"/>
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 f1ad1d1..bc7a597 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
@@ -844,6 +844,17 @@
## 坐骑总等级
return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorserLV)
+def IsHorseLVFull(curPlayer):
+ ## 坐骑是否满级
+ horseLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorserLV)
+ horseIpyData = IpyGameDataPY.GetIpyGameData("HorseLVUp", horseLV)
+ if not horseIpyData:
+ return False
+ needEatCount = horseIpyData.GetNeedEatCount()
+ if not needEatCount:
+ return True
+ return False
+
#============================骑宠觉醒=============================
#// A5 29 骑宠觉醒 #tagCMHorsePetAwake
#
--
Gitblit v1.8.0