hxp
2019-07-08 981c670ae8cf648f28be73b868b38aac2a7bfec1
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)