| | |
| | | Def_Effect_ItemGiveWeekPartyPoint = 245 #使用道具给予七日巡礼积分
|
| | | Def_Effect_ItemGiveWeekPartyPoint1 = 246 #使用道具给予节日巡礼积分
|
| | | Def_Effect_AddRealmExpRate = 251 #增加聚灵效率
|
| | | Def_Effect_TouchMission = 252 #触发任务
|
| | | #----以下未使用或代码依然存在的---
|
| | | Def_Effect_ItemGiveGongXun = 1920 #使用道具给予功勋
|
| | | Def_Effect_ItemGiveRuneJH = 1925 #使用道具给予符印精华
|
| | |
| | | #灵根重置
|
| | | RunQuestEvent(curPlayer, "linggenreset", 'linggenreset', Def_RunQuestType_Normal)
|
| | | return
|
| | |
|
| | | def EventRespons_UseMissionItem(curPlayer, missionID):
|
| | | # 使用物品触发任务
|
| | | RunQuestEvent(curPlayer, "usemissionitem", missionID, Def_RunQuestType_RunAll)
|
| | | return
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | #================================================================================
|
| | |
| | | ChConfig.Def_Effect_ItemGiveWeekPartyPoint:"Item_WeekPartyPoint", # 增加活动巡礼积分
|
| | | ChConfig.Def_Effect_ItemGiveWeekPartyPoint1:"Item_WeekPartyPoint", # 增加活动巡礼积分
|
| | | ChConfig.Def_Effect_AddRealmExpRate:"Item_AddRealmExpRate", # 增加聚灵效率
|
| | | #ChConfig.Def_Effect_AddPrestige:"Item_AddPrestige", # 给人物威望
|
| | | ChConfig.Def_Effect_TouchMission:"Item_TouchMission", # 触发任务接口
|
| | | #ChConfig.Def_Effect_FamilyImpeach:"Item_FamilyImpeach", # 弹劾符
|
| | | #ChConfig.Def_Effect_ClothesCoatSkin:"Item_ClothesCoatSkin", #激活时装皮肤
|
| | | #ChConfig.Def_Effect_AddOfficialExp:"Item_AddOfficialExp", # 增加爵位经验
|
New file |
| | |
| | | #!/usr/bin/python
|
| | | # -*- coding: GBK -*-
|
| | | #-------------------------------------------------------------------------------
|
| | | #
|
| | | ##@package UseItem.Item_TouchMission
|
| | | #
|
| | | # @todo:触发任务接口
|
| | | # @author xdh
|
| | | # @date 2019-05-29
|
| | | # @version 1.0
|
| | | #
|
| | | # 详细描述: 触发任务接口
|
| | | #
|
| | | #-------------------------------------------------------------------------------
|
| | | #"""Version = 2019-05-29 10:00"""
|
| | | #-------------------------------------------------------------------------------
|
| | | import EventShell
|
| | | import ItemCommon
|
| | | import ChConfig
|
| | |
|
| | | def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
|
| | | ##批量使用物品
|
| | | curEff = curRoleItem.GetEffectByIndex(0)
|
| | | missionID = curEff.GetEffectValue(0)
|
| | | if not missionID:
|
| | | return
|
| | | EventShell.EventRespons_UseMissionItem(curPlayer, missionID)
|
| | | ItemCommon.DelItem(curPlayer, curRoleItem, 1, True, ChConfig.ItemDel_Unknown, {}, True)
|
| | | return True, 1
|
| | |
|