From 46c9d7d80fb93f053bd64acd1fa94ee3dc181bf3 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 11 二月 2020 13:41:51 +0800
Subject: [PATCH] 8377 新增任务接口(上架橙装、购买橙装、货币变更、更新货币;活跃放置各状态接口)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py
index 826a031..c4f93df 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py
@@ -323,6 +323,10 @@
             return
         updPoint = curPoint + addValue
     __SetPDictValue(curPlayer, ChConfig.Def_PDict_ActivityCanCostTotalPoint, updPoint)
+    
+    costPoint = IpyGameDataPY.GetFuncCfg("ActivityPlace", 2) # 单次放置消耗的活跃点数
+    if updPoint >= costPoint:
+        EventShell.EventRespons_ActivityPlace(curPlayer, "canstart", True)
     return
 
 def CostActivityPoint(curPlayer, costPoint, isOnlyCheck=False):
@@ -692,6 +696,8 @@
         PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ActivityPlaceExpCount, 0)
         GameWorld.DebugLog("    没有剩余次数,更新启动时间: %s" % curTime)
         
+    EventShell.EventRespons_ActivityPlace(curPlayer, "start")
+    
     Sync_ActivityPlaceInfo(curPlayer)
     return
 
@@ -881,6 +887,8 @@
     if isQuick:
         PlayerControl.NotifyCode(curPlayer, "ActivityPlaceQuickFinishOK")
         
+    EventShell.EventRespons_ActivityPlace(curPlayer, "cangetreward")
+    
     Sync_ActivityPlaceInfo(curPlayer)
     return
 
@@ -910,6 +918,8 @@
     GameWorld.DebugLog("领取活跃放置奖励: rewardItemCount=%s,rewardItemList=%s" % (rewardItemCount, rewardItemList))
     ItemControler.GivePlayerItemOrMail(curPlayer, rewardItemList)
     
+    EventShell.EventRespons_ActivityPlace(curPlayer, "getreward")
+    
     Sync_ActivityPlaceInfo(curPlayer)
     return
 

--
Gitblit v1.8.0