| | |
| | |
|
| | | return
|
| | |
|
| | | def DoFBOnNPCKill_Player(curNPC, curPlayer, tick):
|
| | | ## 副本内NPC杀人
|
| | | do_FBLogic_ID = __GetFBLogic_MapID(GameWorld.GetMap().GetMapID())
|
| | | |
| | | callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "DoFBOnNPCKill_Player"))
|
| | | |
| | | if callFunc:
|
| | | #GameWorld.Log("副本逻辑不可使用 GameLogic_%d"%(mapID))
|
| | | return callFunc(curNPC, curPlayer, tick)
|
| | | return
|
| | | #---------------------------------------------------------------------
|
| | | ## 任务专用,触发事件(副本内攻击人)
|
| | | # @param curPlayer 攻击者
|
| | |
| | | callFunc(tick)
|
| | | return
|
| | |
|
| | | ## 开始采集
|
| | | # @param curPlayer 当前玩家
|
| | | # @param curNPC 当前NPC
|
| | | # @return None or False
|
| | | # @remarks 函数详细说明.
|
| | | def OnBeginCollect(curPlayer, curNPC):
|
| | | do_FBLogic_ID = __GetFBLogic_MapID(GameWorld.GetMap().GetMapID())
|
| | | callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnBeginCollect"))
|
| | | if callFunc:
|
| | | callFunc(curPlayer, curNPC)
|
| | | return
|
| | |
|
| | | ## 收集中(家族战副本中的棋和塔)
|
| | | # @param curPlayer 当前玩家
|
| | | # @param tick 当前时间
|
| | |
| | | # @param tick 当前时间
|
| | | # @return None or False
|
| | | # @remarks 函数详细说明.
|
| | | def OnCollectOK(curPlayer, tick):
|
| | | def OnCollectOK(curPlayer, npcID, tick):
|
| | | do_FBLogic_ID = __GetFBLogic_MapID(GameWorld.GetMap().GetMapID())
|
| | |
|
| | | callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnCollectOK"))
|
| | |
| | | return False
|
| | |
|
| | | #执行副本逻辑
|
| | | callFunc(curPlayer, tick)
|
| | | callFunc(curPlayer, npcID, tick)
|
| | | return
|
| | |
|
| | | ## 玩家离开副本
|
| | |
| | | # @param mapID 玩家
|
| | | # @param tick 当前时间
|
| | | # @return None-未找到,线路id - 0~N
|
| | | def GetFBLineMaxPlayerCount(mapID):
|
| | | def GetFBLineMaxPlayerCount(mapID, lineID):
|
| | |
|
| | | do_FBLogic_ID = __GetFBLogic_MapID(mapID)
|
| | |
|
| | | callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "GetFBLineMaxPlayerCount"))
|
| | |
|
| | | if callFunc:
|
| | | return callFunc()
|
| | | return callFunc(lineID)
|
| | |
|
| | | return 0
|
| | |
|
| | |
| | |
|
| | | return callFunc(curPlayer, tick)
|
| | |
|
| | | def OnPlayerLVUp(curPlayer):
|
| | | ## 玩家升级
|
| | | do_FBLogic_ID = __GetFBLogic_MapID(GameWorld.GetMap().GetMapID())
|
| | | callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnPlayerLVUp"))
|
| | | if callFunc == None:
|
| | | return False
|
| | | return callFunc(curPlayer)
|
| | | |