xdh
2019-05-27 7c71770e8ec838ae268e12c9c37cb4e13f7e6d70
6501 修改任务接口
1个文件已修改
14 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -7205,12 +7205,12 @@
# @return None <Classlvpluslv classLV="" plusLV="" value="cnt"/>
def ConditionType_Classlvpluslv(curPlayer, curMission, curActionNode):
    classLV = GameWorld.ToIntDef(curActionNode.GetAttribute("classLV"), 0)
    if not classLV:
        return
    classLVList = [classLV] if classLV else xrange(1, IpyGameDataPY.GetFuncCfg('EquipMaxClasslv') + 1)
    needPlusLV = GameWorld.ToIntDef(curActionNode.GetAttribute("plusLV"), 0)
    totalCnt = 0
    equipPlaceList = ChConfig.Pack_EquipPart_CanPlusStar[IPY_GameWorld.rptEquip]
    for equipPlace in equipPlaceList:
        for classLV in classLVList:
        ipyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap', classLV, equipPlace)
        if not ipyData:
            continue
@@ -7235,10 +7235,10 @@
##已镶嵌X等级宝石数量
# @param None
# @return None <Equiptotalstone value="cnt" stoneLV=""/>
# @return None <Equipstonecnt value="cnt" stoneLV=""/>
def ConditionType_Equipstonecnt(curPlayer, curMission, curActionNode):
    totalCnt = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
    stoneLV = GameWorld.ToIntDef(curActionNode.GetAttribute("lv"), 0)
    stoneLV = GameWorld.ToIntDef(curActionNode.GetAttribute("stoneLV"), 0)
    return Operate_EquipStone.GetStoneCntByLV(curPlayer, stoneLV) >= totalCnt
##设置已镶嵌X等级宝石数量
@@ -7246,11 +7246,11 @@
# @param curMission 任务实例
# @param curActionNode节点信息
# @return 返回值无意义
# @remarks <Set_Equiptotalstone key="" stoneLV="[]"/>
def DoType_Set_Equiptotalstone(curPlayer, curMission, curActionNode):
# @remarks <Set_Equipstonecnt key="" stoneLV="宝石等级"/>
def DoType_Set_Equipstonecnt(curPlayer, curMission, curActionNode):
    key = curActionNode.GetAttribute("key")
    questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
    stoneLV = GameWorld.ToIntDef(curActionNode.GetAttribute("lv"), 1)
    stoneLV = GameWorld.ToIntDef(curActionNode.GetAttribute("stoneLV"), 1)
    if questID != 0:
        curMission = curPlayer.FindMission(questID)
    curMission.SetProperty(key, Operate_EquipStone.GetStoneCntByLV(curPlayer, stoneLV))