| | |
| | | maxCnt = FBCommon.GetEnterFBMaxCnt(curPlayer, mapID)
|
| | | if enterCnt + 2 > maxCnt:
|
| | | return False
|
| | | if lineID in newbielineList:
|
| | | hasEnter = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False,
|
| | | [ChConfig.Def_FBMapID_SealDemon])
|
| | | if hasEnter:
|
| | | GameWorld.DebugLog(" 已进入过该新手线路 %s" % lineID)
|
| | | return False
|
| | | return True
|
| | |
|
| | |
|
| | |
| | | #for _ in xrange(addCnt):
|
| | | jsonItemList, totalExp, totalMoney = NPCCommon.GiveKillNPCDropPrize(curPlayer, ChConfig.Def_FBMapID_SealDemon, {bossID:addCnt},
|
| | | mailTypeKey="SealDemonMail", isMail=isMail, prizeMultiple=prizeMultiple,
|
| | | dropItemMapInfo=dropItemMapInfo)
|
| | | dropItemMapInfo=dropItemMapInfo,isVirtualDrop=isClientSend)
|
| | | for jsonItem in jsonItemList:
|
| | | if 'UserData' in jsonItem:
|
| | | equipList.append(jsonItem)
|
| | |
| | | if rank == 1:
|
| | | bossID = CurFBLineBOSSID(lineID)
|
| | | NPCCommon.GameServer_KillGameWorldBoss(bossID, curPlayer.GetName(), hurt, False)
|
| | | |
| | | if not prizeItemList:
|
| | | leaveTick = FBCommon.GetFBLineStepTime(mapID, lineID) * 1000
|
| | | GameWorld.Log("没有奖励,直接通知前端结算!mapID=%s,lineID=%s" % (mapID, lineID), curPlayer.GetPlayerID())
|
| | | curPlayer.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTick, True)
|
| | | overDict = {FBCommon.Over_rank:rank, FBCommon.Over_itemInfo:prizeItemList}
|
| | | FBCommon.NotifyFBOver(curPlayer, ChConfig.Def_FBMapID_SealDemon, lineID, 1, overDict)
|
| | | return
|
| | | |
| | | gameFB = GameWorld.GetGameFB()
|
| | | tick = GameWorld.GetGameWorld().GetTick()
|
| | | gameFB.SetGameFBDict(FBDict_IsOver, tick)
|
| | | gameFB.SetPlayerGameFBDict(curPlayer.GetPlayerID(), FBPlayerDict_Rank, rank)
|
| | | curPlayer.Sync_TimeTick(ChConfig.tttPickupItem, 0, ChConfig.Def_FBPickupItemTime, True)
|
| | | return
|
| | |
|
| | | #GameWorld.Log("通知前端结算!mapID=%s,lineID=%s" % (mapID, lineID), curPlayer.GetPlayerID())
|
| | | overDict = {FBCommon.Over_rank:rank, FBCommon.Over_itemInfo:prizeItemList}
|
| | | FBCommon.NotifyFBOver(curPlayer, mapID, lineID, 1, overDict)
|
| | | PlayerControl.SetCustomMap(curPlayer, 0, 0)
|
| | | return
|
| | | |
| | |
|
| | | def GetBossRemainHPPer(copyMapID, funcLineID, tick):
|
| | | bossID = CurFBLineBOSSID(funcLineID)
|
| | |
| | | packData.OldDouble = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FMTOldDouble)
|
| | | NetPackCommon.SendFakePack(curPlayer, packData)
|
| | | return
|
| | |
|