From 1e559a83e289ebb1d67e8ade8b3bbdbd755eded0 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 24 一月 2025 11:36:13 +0800
Subject: [PATCH] 1111 【越南】【英语】【BT】【砍树】击杀boss后退出boss状态;
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 1 +
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 527334a..657f255 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -2643,6 +2643,7 @@
DataRecordPack.SendEventPack("AddKillBossCnt", dataDict, curPlayer)
PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_FeastRedPack_KillBoss, 1, [limitIndex])
EventShell.EventRespons_KillBoss(curPlayer, limitIndex)
+ PlayerState.SetBossStateExit(curPlayer)
if isCrossServer:
return
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py
index ad3b313..13e0de7 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py
@@ -1590,6 +1590,13 @@
curPlayer.SetDict(ChConfig.Def_PDict_BossStateTick, tick)
#GameWorld.DebugLog("设置Boss状态tick!tick=%s" % tick, curPlayer.GetPlayerID())
return
+def SetBossStateExit(curPlayer):
+ ## 设置退出boss状态
+ if not IsInBossState(curPlayer):
+ return
+ curPlayer.SetDict(ChConfig.Def_PDict_BossStateTick, 0)
+ PlayerControl.SendPropertyRefresh(curPlayer, ShareDefine.CDBPlayerRefresh_BossState, 0)
+ return
def ProcessAreaExp(curPlayer, tick):
##给场景经验
--
Gitblit v1.8.0