6805 【后端】【2.0】副本前端化(代码优化)
| | |
| | |
|
| | | 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)
|
| | |
| | | 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)
|
| | |
|
| | |
| | | ç¼¥ç¼ä»èå 32050 0
|
| | | VIPBoss 31240 对åºåè½çº¿è·¯ID
|
| | | è·¨æPVPåæ 0 0
|
| | | 宿¤å¯æ¬ 31250 0
|
| | | åæå°éå 52020 对åºåè½çº¿è·¯ID
|
| | | ---------------------------------
|
| | |
|
| | | ãå¼å说æã
|