From 1a4857dba236228a63ea90290be8e95f68052d91 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 24 一月 2025 19:06:27 +0800
Subject: [PATCH] 1111 【越南】【英语】【BT】【砍树】增加功能开启触发任务事件;
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py | 5 +++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameFuncComm.py | 3 +++
2 files changed, 8 insertions(+), 0 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 463faf3..b50e6af 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
@@ -961,6 +961,11 @@
return
#---------------------------------------------------------------------
+def EventResponse_Funcopen(curPlayer, funcID):
+ ## 功能开启触发
+ RunQuestEvent(curPlayer, "funcopen", funcID, Def_RunQuestType_RunAll)
+ return
+
##任务触发器_LVUp 当玩家升级的时候触发
#@param curPlayer 玩家实例
#@return 返回值无意义
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameFuncComm.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameFuncComm.py
index 9602f70..e8e9e66 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameFuncComm.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameFuncComm.py
@@ -53,6 +53,7 @@
import PlayerFaQi
import PlayerGuaji
import PlayerTJG
+import EventShell
# 功能开启需执行的函数{功能ID:执行函数, ...} 函数需返回是否激活成功, 功能开启有需要处理功能逻辑的这里增加函数调用配置即可
@@ -155,6 +156,8 @@
if funcID in FuncOpenLogicDict:
FuncOpenLogicDict[funcID](curPlayer)
+ EventShell.EventResponse_Funcopen(curPlayer, funcID)
+
mailKey = ipyData.GetMailKey()
if mailKey:
PlayerControl.SendMailByKey(mailKey, [curPlayer.GetPlayerID()], [])
--
Gitblit v1.8.0