From f9d8c04e636bbe89458c6f31f6953ed40ae7bd4c Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 10 六月 2019 20:39:16 +0800 Subject: [PATCH] 6501 新增商城任务接口 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py index 46593ab..37390c5 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py @@ -7436,4 +7436,13 @@ def ConditionType_Check_Xbxz(curPlayer, curMission, curActionNode): value = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0) mwID = GameWorld.ToIntDef(curActionNode.GetAttribute("mwid"), 0) - return PlayerMagicWeapon.GetXBXZAwardProgress(curPlayer, mwID) >= value \ No newline at end of file + return PlayerMagicWeapon.GetXBXZAwardProgress(curPlayer, mwID) >= value + +##商城表商品购买记录判断(只适用购买次数不重置的) +# @param None +# @return None <Check_Buyshopitem value="数量" index="商城表唯一ID"/> +def ConditionType_Check_Buyshopitem(curPlayer, curMission, curActionNode): + value = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0) + itemIndex = GameWorld.ToIntDef(curActionNode.GetAttribute("index"), 0) + curDayBuyCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ShopItemDayBuyCnt % itemIndex) + return curDayBuyCnt >= value \ No newline at end of file -- Gitblit v1.8.0