| | |
| | | return
|
| | |
|
| | | mapID = curPlayer.GetMapID()
|
| | | |
| | | activityLineID = 0 # 活动线, 默认1线
|
| | | activityMapLineDict = IpyGameDataPY.GetFuncEvalCfg("MapLine", 2, {})
|
| | | if mapID in activityMapLineDict:
|
| | | activityLineID = max(0, activityMapLineDict[mapID] - 1)
|
| | | |
| | | mapLineDict = IpyGameDataPY.GetFuncEvalCfg("MapLine", 1)
|
| | | if mapID in mapLineDict and changLineID >= mapLineDict[mapID]:
|
| | | if changLineID != activityLineID and mapID in mapLineDict and changLineID >= mapLineDict[mapID]:
|
| | | GameWorld.ErrLog("该地图没有开放此线路,无法手动切换!mapID=%s,changLineID=%s,maxLine=%s"
|
| | | % (mapID, changLineID, mapLineDict[mapID]), curPlayer.GetID())
|
| | | return
|
| | |
| | | rebornTime = GetRebronTime(curPlayer, playerRebornType)
|
| | | #冷却时间到了
|
| | | if not CanRebornByTimeOver(curPlayer, rebornTime):
|
| | | PlayerControl.NotifyCode(curPlayer, 'RebornCD')
|
| | | return False
|
| | |
|
| | | isFBReborn = False
|
| | |
| | | # 请求GameServer目标地图NPC信息
|
| | | sendMsg = "%s" % str([tagMapID, tagLineID, npcIDList])
|
| | | curPlayer.GameServer_QueryPlayerByID(ChConfig.queryType_NPCCnt, 0,
|
| | | 'NPCCntInfo', sendMsg, len(sendMsg))
|
| | | 'NPCCnt', sendMsg, len(sendMsg))
|
| | | return
|
| | |
|
| | |
|