xdh
2019-05-07 e6e63a11ed1850aa0cc4af84b5df795c8c874b14
6501 【后端】【2.0】仙盟任务(诛仙塔接口)
3个文件已修改
27 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
@@ -1682,6 +1682,14 @@
    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 事件名
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -2572,6 +2572,18 @@
    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代表已经首充过
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py
@@ -33,6 +33,7 @@
import GameWorldProcess
import PlayerBillboard
import EventReport
import EventShell
import random
import math
@@ -104,6 +105,7 @@
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ZhuXianTowerCostTime, costSeconds)
    #更新诛仙塔排行榜
    PlayerBillboard.UpdateZhuXianTowerBillboard(curPlayer)
    EventShell.EventRespons_ZhuXianTowerPass(curPlayer, passlv)
    GameWorld.DebugLog(' 更新诛仙塔已通关数 %s' % passlv)
    return
@@ -437,10 +439,7 @@
    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)
    #每日任务