From 8a8329e10d9003867939df1e55bc93e84ebed55f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 22 九月 2019 18:33:52 +0800
Subject: [PATCH] 8282 [主干]跑环任务,每环都要物品灵石(跑环支持直接给灵石)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py | 15 ++++++++++++---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestManager.py | 3 +++
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestManager.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestManager.py
index 1dd4708..7544626 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestManager.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestManager.py
@@ -514,6 +514,7 @@
self.FamilyHornor = 0 #家族荣誉
self.PetExp = 0 # 宠物经验
self.Prestige = 0 # 威望奖励
+ self.GoldPaper = 0 # 绑玉/灵石
#---------------------------------------------------------------------
## 每日任务奖励数据类集合
@@ -1275,6 +1276,7 @@
minLV = GameWorld.ToIntDef(curRunAroundRewardNode.GetAttribute("minlv"), 0)
maxLV = GameWorld.ToIntDef(curRunAroundRewardNode.GetAttribute("maxlv"), 0)
familyHornor = GameWorld.ToIntDef(curRunAroundRewardNode.GetAttribute("familyhornor"), 0)
+ goldPaper = GameWorld.ToIntDef(curRunAroundRewardNode.GetAttribute("goldpaper"), 0)
#继承每日奖励,参考设置
dayEventRewardData = RunAroundRewardData()
dayEventRewardData.Exp = Exp
@@ -1282,6 +1284,7 @@
dayEventRewardData.Money = Money
dayEventRewardData.Item = Item
dayEventRewardData.PlayerFamilyHornor = familyHornor
+ dayEventRewardData.GoldPaper = goldPaper
allRunAround.Rewards[(minLV, maxLV)] = dayEventRewardData
if minLV < allRunAround.MinLV:
allRunAround.MinLV = minLV
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 c15a569..b33a408 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
@@ -94,6 +94,7 @@
Def_Run_Around_Reward_Exp = "run_around_exp" #跑环任务的奖励
Def_Run_Around_Reward_ExpPoint = "run_around_exp_point" #跑环任务的奖励
Def_Run_Around_Reward_Money = "run_around_money" #跑环任务的给钱
+Def_Run_Around_Reward_GoldPaper = "run_around_gold_paper" #跑环任务的给绑玉
Def_Run_Around_Reward_FamilyHornor = "run_around_familyhornor" #跑环任务的仙盟贡献奖励
Def_Run_Around_Reward_Multiple = "run_around_multiple" #跑环任务的奖励翻倍数
@@ -5326,13 +5327,14 @@
rewardList = __GetRunAroundReward(curPlayer, curMission)
if rewardList:
- curExp, curMoney, curFamilyHornor, itemID, itemCount = rewardList
+ curExp, curMoney, curFamilyHornor, itemID, itemCount, goldPaper = rewardList
else:
- curExp, curMoney, curFamilyHornor, itemID, itemCount = 0, 0, 0, 0
+ curExp, curMoney, curFamilyHornor, itemID, itemCount, goldPaper = 0, 0, 0, 0, 0
curMission.SetProperty(Def_Run_Around_Reward_Exp, curExp % ChConfig.Def_PerPointValue)
curMission.SetProperty(Def_Run_Around_Reward_ExpPoint, curExp / ChConfig.Def_PerPointValue)
curMission.SetProperty(Def_Run_Around_Reward_Money, curMoney)
+ curMission.SetProperty(Def_Run_Around_Reward_GoldPaper, goldPaper)
curMission.SetProperty(Def_Day_Event_Reward_Item_Id, itemID)
curMission.SetProperty(Def_Day_Event_Reward_Item_Count, itemCount)
@@ -5366,6 +5368,7 @@
curExp = eval(IpyGameDataPY.GetFuncCfg('RunTaskExp'))
curExp += curLVRunAroundReward.AddExp
curMoney = baseMoney
+ curGoldPaper = curLVRunAroundReward.GoldPaper
curFamilyHornor = curLVRunAroundReward.PlayerFamilyHornor
itemInfo = curLVRunAroundReward.Item
if itemInfo:
@@ -5373,7 +5376,7 @@
else:
itemID, itemCount = 0, 0
- return (curExp, curMoney, curFamilyHornor, itemID, itemCount)
+ return (curExp, curMoney, curFamilyHornor, itemID, itemCount, curGoldPaper)
#---------------------------------------------------------------------
##给予跑环奖励
@@ -5401,6 +5404,12 @@
addDataDict = {ChConfig.Def_Give_Reason_SonKey:"Run"}
PlayerControl.GiveMoney(curPlayer, runAroundReward.MoneyType, money, ChConfig.Def_GiveMoney_Mission, addDataDict, False)
moneyDict[runAroundReward.MoneyType] = money
+ goldPaper = curMission.GetProperty(Def_Run_Around_Reward_GoldPaper)
+ if goldPaper:
+ moneyType = IPY_GameWorld.TYPE_Price_Gold_Paper
+ addDataDict = {ChConfig.Def_Give_Reason_SonKey:"Run"}
+ PlayerControl.GiveMoney(curPlayer, moneyType, goldPaper, ChConfig.Def_GiveMoney_Mission, addDataDict)
+ moneyDict[moneyType] = goldPaper
familyHornor = curMission.GetProperty(Def_Run_Around_Reward_FamilyHornor)
if familyHornor:
PlayerFamily.AddPlayerFamilyActiveValue(curPlayer, familyHornor, True, ShareDefine.Def_AddFAVReason_DoFamilyMisson, True)
--
Gitblit v1.8.0