From c2ea18fd93c7b954f36a9b578c55a6065af2f863 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 28 九月 2018 14:01:42 +0800
Subject: [PATCH] 3623 子 任务修改 / 【后端】新增任务接口

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py       |   42 ++++++++++++++++++++++++++++++++++++++++++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py               |    4 +++-
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipPlus.py |    2 ++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py                 |   10 ++++++++++
 4 files changed, 57 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
index ba4c805..a90e2d1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
@@ -1857,6 +1857,16 @@
     #捐献仙盟装备
     RunQuestEvent(curPlayer, "storedonate", "storedonate", Def_RunQuestType_Normal)
     return
+
+def EventRespons_EquipPlus(curPlayer):
+    #强化等级变化
+    RunQuestEvent(curPlayer, "equipplus", "equipplus", Def_RunQuestType_Normal)
+    return
+
+def EventRespons_EquipStar(curPlayer):
+    #装备总星级变化
+    RunQuestEvent(curPlayer, "equipstar", "equipstar", Def_RunQuestType_Normal)
+    return
 #---------------------------------------------------------------------
 
 #================================================================================
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipPlus.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipPlus.py
index 8ce23da..ce36fbd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipPlus.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipPlus.py
@@ -31,6 +31,7 @@
 import GameWorld
 import ChConfig
 import ChEquip
+import EventShell
 #-------------------------------------------------------------------------------------------
 
 #===============================================================================
@@ -99,6 +100,7 @@
         DoLogic_OnEquipPartStarLVChange(curPlayer, packType)
         # 增加强化成就
         PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_EquipPlus, 1)
+        EventShell.EventRespons_EquipPlus(curPlayer)
     return
 
      
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 27113b2..b17f56f 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
@@ -6070,6 +6070,34 @@
         curMission = curPlayer.FindMission(questID)
     curMission.SetProperty(key, PlayerHorse.GetHorseSumLV(curPlayer))
     return
+
+##设置强化总等级
+# @param curPlayer 玩家实例
+# @param curMission 任务实例
+# @param curActionNode节点信息
+# @return 返回值无意义
+# @remarks <Set_Totalpluslv key="" />
+def DoType_Set_Totalpluslv(curPlayer, curMission, curActionNode):
+    key = curActionNode.GetAttribute("key")
+    questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
+    if questID != 0:
+        curMission = curPlayer.FindMission(questID)
+    curMission.SetProperty(key, ChEquip.GetTotalPlusLV(curPlayer, False))
+    return
+
+##设置装备总星级
+# @param curPlayer 玩家实例
+# @param curMission 任务实例
+# @param curActionNode节点信息
+# @return 返回值无意义
+# @remarks <Set_Equiptotalstar key="" />
+def DoType_Set_Equiptotalstar(curPlayer, curMission, curActionNode):
+    key = curActionNode.GetAttribute("key")
+    questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
+    if questID != 0:
+        curMission = curPlayer.FindMission(questID)
+    curMission.SetProperty(key, ChEquip.GetTotalEquipStars(curPlayer))
+    return
 #---------------------------------------------------------------------
 ##DoType_调度器
 # @param curPlayer 玩家实例
@@ -7203,6 +7231,20 @@
     totalcnt = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
     return PlayerMagicWeapon.GetMWActiveCntTotal(curPlayer) >= totalcnt
 
+##总强化等级
+# @param None
+# @return None <Totalpluslv value="cnt"/>
+def ConditionType_Totalpluslv(curPlayer, curMission, curActionNode):
+    totalcnt = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
+    return ChEquip.GetTotalPlusLV(curPlayer, False) >= totalcnt
+
+##装备总星级
+# @param None
+# @return None <Equiptotalstar value="cnt"/>
+def ConditionType_Equiptotalstar(curPlayer, curMission, curActionNode):
+    totalcnt = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
+    return ChEquip.GetTotalEquipStars(curPlayer) >= totalcnt
+
 ##激活法宝,确认与成就逻辑后使用
 # @param None
 # @return None <Active_Magicweapon id="法宝ID"/>
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
index 69947bd..f34a7fb 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
@@ -33,6 +33,7 @@
 import Operate_EquipStone
 import Operate_EquipSuitCompose
 import IpyGameDataPY
+import EventShell
 
 #---------------------------------------------------------------------
 ## 放不下主角背包放入万能背包的逻辑, curGiveItem 要先 SetCount
@@ -893,7 +894,7 @@
             Operate_EquipStone.DoMoveEquipStone(curPlayer, packEquipIndex)
             #套装降级处理
             Operate_EquipSuitCompose.CheckEquipSuitReduce(curPlayer, packEquipIndex)
-            
+            EventShell.EventRespons_EquipStar(curPlayer)
         self.RefreshStartEquipCount()
         return packEquipIndex if result else -1
     
@@ -990,6 +991,7 @@
         self.RefreshStartEquipCount()
         #套装降级处理
         Operate_EquipSuitCompose.CheckEquipSuitReduce(curPlayer, equipIndex)
+        EventShell.EventRespons_EquipStar(curPlayer)
 #===============================================================================
 #        #destItemPlace = 卸下物品的位置        
 #        destItemPlace = curPack.GetAt(packIndex)

--
Gitblit v1.8.0