hxp
2020-12-10 0901407e7f5e4fedb781ef4ea416dfca4fc8ef53
8643 【BT】【主干】新增任务接口增加个人BOSS次数
1个文件已修改
15 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -5720,6 +5720,21 @@
    return
#---------------------------------------------------------------------
##增加进入副本次数
# @param curPlayer 玩家实例
# @param curMission 任务实例
# @param curActionNode节点信息
# @return 返回值无意义
# @remarks <Add_Fbcnt mapid = "地图ID"  count = "次数" />
def DoType_Add_Fbcnt(curPlayer, curMission, curActionNode):
    ## 这边是任务直接赠送的,相当于给赠送道具,这里默认直接转化为道具使用后增加的次数
    mapID = int(curActionNode.GetAttribute("mapid"))
    count = GameWorld.ToIntDef(curActionNode.GetAttribute("count"), 1)
    itemAddCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID, itemAddCnt + count)
    FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID)
    return
##进入单人副本
# @param curPlayer 玩家实例
# @param curMission 任务实例