| | |
| | | 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)
|
| | |
| | | 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
|
| | |
| | | __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
|