From 14c1220f82e00ffea6f2759e8ff11d99606220bb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 14 十月 2021 14:48:11 +0800
Subject: [PATCH] 9300 【BT5】【主干】【后端】新增:法器进阶
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_Guard.py | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_Guard.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_Guard.py
index a5743b2..3321d6a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_Guard.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_Guard.py
@@ -40,16 +40,22 @@
def OnClientEndFB(curPlayer, mapID, lineID, dataList):
#客户端副本发送结束
+ if PlayerControl.GetCustomMapID(curPlayer) != mapID:
+ return
+ hasEnter = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False,
+ [mapID])
+ if hasEnter:
+ return
+ GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, 1, False, [mapID])
itemID, giveExp = FBCommon.GetFBLineReward(mapID, 0)
- #
overDict = {}
- ItemControler.GivePlayerItem(curPlayer, itemID, 1, 0, [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere])
+ ItemControler.GivePlayerItemOrMail(curPlayer, [[itemID, 1, 0]])
if giveExp:
PlayerControl.PlayerControl(curPlayer).AddExp(giveExp)
overDict[FBCommon.Over_exp] = giveExp
if itemID:
overDict[FBCommon.Over_itemInfo] = FBCommon.GetJsonItemList([itemID])
- GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, 1, False, [mapID])
+
FBCommon.NotifyFBOver(curPlayer,mapID,lineID,1,overDict)
EventShell.EventRespons_FBEvent(curPlayer, "guardfbpass")
PlayerControl.SetCustomMap(curPlayer, 0, 0)
--
Gitblit v1.8.0