6501 【后端】【2.0】仙盟任务(诛仙塔接口)
| | |
| | | RunQuestEvent(curPlayer, "on_trialtowercnt", cnt, Def_RunQuestType_Normal)
|
| | | return
|
| | |
|
| | | ## 通关诛仙塔第X层
|
| | | # @param curPlayer 玩家实例
|
| | | # @param eventName |
| | | # @return None
|
| | | def EventRespons_ZhuXianTowerPass(curPlayer, cnt):
|
| | | RunQuestEvent(curPlayer, "zhuxiantowerpass", cnt, Def_RunQuestType_Normal)
|
| | | return
|
| | |
|
| | | ##护送X次美女
|
| | | # @param curPlayer 玩家实例
|
| | | # @param eventName 事件名
|
| | |
| | | maxPassLV = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_TrialTower_PassLV) # 历史最大过关数
|
| | | return QuestRunnerValue.GetEval(conditionType, maxPassLV, conditionValue)
|
| | |
|
| | | ##通关诛仙塔第X层
|
| | | # @param curPlayer 玩家实例
|
| | | # @param curMission 任务实例
|
| | | # @param curConditionNode 节点信息
|
| | | # @return 返回值, 是否判断成功
|
| | | # @remarks <Check_Zhuxiantower type="类型" value="值"/> |
| | | def ConditionType_Check_Zhuxiantower(curPlayer, curMission, curConditionNode):
|
| | | conditionValue = GameWorld.ToIntDef(curConditionNode.GetAttribute("value"), 0)
|
| | | conditionType = curConditionNode.GetAttribute("type")
|
| | | maxPassLV = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ZhuXianTowerPassLV) # 历史最大过关数
|
| | | return QuestRunnerValue.GetEval(conditionType, maxPassLV, conditionValue)
|
| | |
|
| | | def ConditionType_Get_Player_Coin(curPlayer, curMission, curConditionNode):
|
| | | # 判断玩家已充值点券数
|
| | | # <Get_Player_Coin type="great" value="0"/> 充值点券大于0代表已经首充过
|
| | |
| | | import GameWorldProcess
|
| | | import PlayerBillboard
|
| | | import EventReport
|
| | | import EventShell
|
| | |
|
| | | import random
|
| | | import math
|
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ZhuXianTowerCostTime, costSeconds)
|
| | | #更新诛仙塔排行榜
|
| | | PlayerBillboard.UpdateZhuXianTowerBillboard(curPlayer)
|
| | | EventShell.EventRespons_ZhuXianTowerPass(curPlayer, passlv)
|
| | | GameWorld.DebugLog(' 更新诛仙塔已通关数 %s' % passlv)
|
| | | return
|
| | |
|
| | |
| | | prizeDict = {FBCommon.Over_costTime:costTime, FBCommon.Over_itemInfo:FBCommon.GetJsonItemList(prizeItemList),
|
| | | FBCommon.Over_grade:curStar}
|
| | | __SendZhuXianTowerOverInfo(curPlayer, fbLevel, True if prizeItemList else False, prizeDict)
|
| | | |
| | | #任务
|
| | | #EventShell.EventRespons_ZhuXianTowerCnt(curPlayer, fbLevel)
|
| | | |
| | |
|
| | | SyncZhuXianLevelInfo(curPlayer) # 同步最新关卡信息
|
| | | __SetFBToFreeTime(tick)
|
| | | #每日任务
|