xdh
2019-05-28 ea1b7e5229ebbae2340b5616c796f2a2b00a123f
6805 【后端】【2.0】副本前端化(代码优化)
3个文件已修改
16 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_Guard.py 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_SealDemon.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/自定义场景说明.txt 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_SealDemon.py
@@ -576,7 +576,7 @@
    GameWorld.DebugLog('封魔坛 å®¢æˆ·ç«¯å‰¯æœ¬å‘送结束mapID=%s,lineID=%s,dataList=%s' % (mapID,lineID,dataList), curPlayer.GetPlayerID())
    rank, hurt = dataList[:2]
    prizeItemList = GiveSealDemonAward(curPlayer, lineID, rank, False, True, [curPlayer.GetPosX(), curPlayer.GetPosY(), True])
    if rank == 1:
    if rank == 1 and prizeItemList:
        bossID = CurFBLineBOSSID(lineID)
        NPCCommon.GameServer_KillGameWorldBoss(bossID, curPlayer.GetName(), hurt, False)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/×Ô¶¨Ò峡¾°ËµÃ÷.txt
@@ -10,6 +10,8 @@
缥缈仙草园        32050        0
VIPBoss            31240        å¯¹åº”功能线路ID
跨服PVP前期        0            0
守护副本        31250            0
前期封魔坛        52020            å¯¹åº”功能线路ID
---------------------------------
【开发说明】