xdh
2019-05-29 1956f1507b2ea484795937551633ceea2f1fc0f4
6501 新增活跃度任务接口
3个文件已修改
30 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
@@ -1971,6 +1971,11 @@
    RunQuestEvent(curPlayer, "activityaward", awardIndex, Def_RunQuestType_Normal)
    return
def EventRespons_AddActivityValue(curPlayer):
    # 增加活跃度
    RunQuestEvent(curPlayer, "addactivity", "addactivity", Def_RunQuestType_Normal)
    return
def EventRespons_HorsePetBoss(curPlayer):
    #参加骑宠BOSS
    RunQuestEvent(curPlayer, "horsepetboss", 'horsepetboss', Def_RunQuestType_Normal)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -7329,4 +7329,25 @@
def ConditionType_Godweaponlv(curPlayer, curMission, curActionNode):
    lv = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
    weapontype = GameWorld.ToIntDef(curActionNode.GetAttribute("weapontype"), 0)
    return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GodWeaponLV % weapontype) >= lv
    return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GodWeaponLV % weapontype) >= lv
##设置今日活跃度
# @param curPlayer 玩家实例
# @param curMission 任务实例
# @param curActionNode节点信息
# @return 返回值无意义
# @remarks <Set_Dayactivity key=""/>
def DoType_Set_Dayactivity(curPlayer, curMission, curActionNode):
    key = curActionNode.GetAttribute("key")
    questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
    if questID != 0:
        curMission = curPlayer.FindMission(questID)
    curMission.SetProperty(key, curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Activity_TotalPoint, 0))
    return
##今日活跃度判断
# @param None
# @return None <Check_Dayactivity value="活跃度"/>
def ConditionType_Check_Dayactivity(curPlayer, curMission, curActionNode):
    value = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
    return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Activity_TotalPoint, 0) >= value
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py
@@ -247,7 +247,7 @@
        __SetPDictValue(curPlayer, ChConfig.Def_PDict_Activity_TotalPoint, curTotalPoint + addValue)
        AddCanCostActivityPoint(curPlayer, addValue)
        SyncDailyActivityInfo(curPlayer)
        EventShell.EventRespons_AddActivityValue(curPlayer)
        GameWorld.DebugLog("增加活跃度任务次数,activityNum=%s,addPbCnt=%s,addValue=%s, multiple=%s, addExtraPoint=%s,curExtraPoint=%s"  
                           % (activityNum, addPbCnt, addValue, multiple, addExtraPoint, curExtraPoint), curPlayer.GetPlayerID())
    return