| | |
| | | import PlayerExpandPackCfgMgr
|
| | | import EventReport
|
| | | import PlayerCoat
|
| | | import PlayerSuccess
|
| | | import PlayerGatherSoul
|
| | | import PlayerArrestTask
|
| | | import PlayerRune
|
| | | import IpyGameDataPY
|
| | |
| | | def EventRespons_MagicWeaponLV(curPlayer, mwID, lv):
|
| | | # 法宝解锁进度
|
| | | RunQuestEvent(curPlayer, "magicweaponlv", '%s_%s'%(mwID, lv), Def_RunQuestType_RunAll)
|
| | | return
|
| | |
|
| | | def EventRespons_MagicWeaponFBPassLV(curPlayer, mwID, lv):
|
| | | # 魔族法宝关卡进度
|
| | | RunQuestEvent(curPlayer, "mwfbpasslv", '%s_%s'%(mwID, lv), Def_RunQuestType_Normal)
|
| | | return
|
| | |
|
| | | def EventRespons_SuccessFinish(curPlayer, succID):
|
| | |
| | | # @remarks 自定义函数, 读数据库任务删除表, 删除任务
|
| | | def __DoLogic_DeleteMission(curPlayer, curMission):
|
| | | missionID = curMission.GetMissionID()
|
| | | |
| | | GameWorld.Log("__DoLogic_DeleteMission---%s"%missionID)
|
| | | delMissionData = GameWorld.GetGameData().GetMissionDeleteByID(missionID)
|
| | | #任务删除表中无此任务
|
| | | if not delMissionData:
|
| | |
| | | # 符印交换
|
| | | if PlayerRune.SwitchRune(curPlayer, pack_SrcBackpack, pack_DesBackPack, pack_SrcIndex, pack_DestIndex):
|
| | | return
|
| | | |
| | | # 聚魂交换
|
| | | if PlayerGatherSoul.SwitchGatherSoul(curPlayer, pack_SrcBackpack, pack_DesBackPack, pack_SrcIndex, pack_DestIndex):
|
| | | return
|
| | |
|
| | | #ʱװ
|
| | | if PlayerCoat.SwitchCoat(curPlayer, pack_SrcBackpack, pack_DesBackPack, pack_SrcIndex, pack_DestIndex):
|