From 48fe7ceb396576b1d87745c426921586b9eb721d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 22 十月 2025 14:49:48 +0800
Subject: [PATCH] 16 卡牌服务端(删除分包下载奖励)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 52 -----------------
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py | 66 ----------------------
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py | 5 -
3 files changed, 1 insertions(+), 122 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index 50c71a6..ce3d397 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -3374,9 +3374,6 @@
Def_PDict_IsAddReviveTired = "IsAddReviveTired" # 死亡是否增加复活疲劳
-Def_PDict_DownloadAwardState = "DownloadAwardState" # 分包包下载奖励状态 0-未领 >0-已领奖励编号
-Def_PDict_DownloadPatchAward = "DownloadPatchAward" # 更新包下载奖励状态 0-未领 >0-已领奖励编号
-
Def_PDict_ChestsOpenCount = "ChestsOpenCount_%s" # 宝箱已开启次数, 参数(宝箱ID), 只有有开启次数额外奖励的才会记录
Def_PDict_DropCountToday = "DropCountToday_%s" # 今日物品已掉落次数,参数(物品ID)
@@ -4889,7 +4886,7 @@
Def_RewardType_BossReborn, # BOSS复活12
Def_RewardType_FCRecharge, # 仙界盛典充值大礼13
Def_RewardType_FCParty, # 仙界盛典全民来嗨14
-Def_RewardType_DownLoad, # 分包下载奖励15
+Def_RewardType_15, # 分包下载奖励15
Def_RewardType_WishingWell, # 许愿池奖励16
Def_RewardType_OpenFunc, # 功能开启奖励17
Def_RewardType_TotalRecharge, # 累计充值奖励18
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index 1c75235..7f5f0e1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -7430,58 +7430,6 @@
#------------------------------------------------------
-# A3 19 分包下载奖励记录 #tagMCPackDownloadRecord
-
-class tagMCPackDownloadRecord(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("Record", c_ubyte), #0-未领取 1-已领取
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA3
- self.SubCmd = 0x19
- return
-
- def ReadData(self, stringData, _pos=0, _len=0):
- self.Clear()
- memmove(addressof(self), stringData[_pos:], self.GetLength())
- return _pos + self.GetLength()
-
- def Clear(self):
- self.Cmd = 0xA3
- self.SubCmd = 0x19
- self.Record = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCPackDownloadRecord)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A3 19 分包下载奖励记录 //tagMCPackDownloadRecord:
- Cmd:%s,
- SubCmd:%s,
- Record:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.Record
- )
- return DumpString
-
-
-m_NAtagMCPackDownloadRecord=tagMCPackDownloadRecord()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCPackDownloadRecord.Cmd,m_NAtagMCPackDownloadRecord.SubCmd))] = m_NAtagMCPackDownloadRecord
-
-
-#------------------------------------------------------
#A3 0B 玩家等级奖励领取记录信息 #tagMCPlayerLVAwardGetRecord
class tagMCPlayerLVAwardGetRecord(Structure):
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index be2576c..72b8a12 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -504,9 +504,6 @@
#玩家扩展信息
__SyncPlayerInfoEx(curPlayer)
- #补丁包下载奖励
- GiveDownloadPatchAward(curPlayer)
-
#PK模式
#SyncPKModel(curPlayer)
@@ -654,8 +651,6 @@
PlayerActSingleRecharge.OnPlayerLogin(curPlayer)
# 转盘活动
PlayerActTurntable.OnPlayerLogin(curPlayer)
- # 分支下载奖励记录通知
- SyncPackDownloadAward(curPlayer)
# 登录触发功能开启(老号处理)
GameFuncComm.DoFuncOpenLogic(curPlayer)
# 神兽
@@ -3285,9 +3280,6 @@
# 领取boss复活活动奖励
elif rewardType == ChConfig.Def_RewardType_BossReborn:
PlayerBossReborn.GetBossRebornActionAward(curPlayer, dataEx)
- # 领取分包下载奖励
- elif rewardType == ChConfig.Def_RewardType_DownLoad:
- GetDownloadAward(curPlayer, dataEx)
# 领取许愿池奖励
elif rewardType == ChConfig.Def_RewardType_WishingWell:
PlayerWishingWell.DoGetWishingAward(curPlayer)
@@ -3970,64 +3962,6 @@
sendPack.MoveType = moveType
# NotifyAll 做过滤或者数量处理
PlayerControl.PyNotifyAll(curPlayer, sendPack, False, 0)
- return
-
-def GiveDownloadPatchAward(curPlayer):
- ## 发放下载补丁包奖励
- playerID = curPlayer.GetPlayerID()
- patchAwardNum = IpyGameDataPY.GetFuncCfg('DownReward', 4)
- curAwardNum = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DownloadPatchAward)
- if curAwardNum == patchAwardNum:
- GameWorld.DebugLog("已发放下载补丁包奖励! curAwardNum(%s) == patchAwardNum(%s)" % (curAwardNum, patchAwardNum), playerID)
- return
-
- awardItemList = IpyGameDataPY.GetFuncEvalCfg('DownReward', 3)
- if not awardItemList:
- return
-
- PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_DownloadPatchAward, patchAwardNum)
- GameWorld.DebugLog("发放补丁包下载奖励: curAwardNum=%s,patchAwardNum=%s" % (curAwardNum, patchAwardNum), playerID)
- PlayerControl.SendMailByKey("DownloadPatchAward", [playerID], awardItemList)
- return
-
-def GetDownloadAward(curPlayer, dataEx):
- ##分包下载奖励 dataEx 0直接领取 1发邮件
- playerID = curPlayer.GetPlayerID()
- downloadAwardNum = IpyGameDataPY.GetFuncCfg('DownReward', 5)
- curAwardNum = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DownloadAwardState)
- if curAwardNum == downloadAwardNum:
- GameWorld.DebugLog("已领取分包奖励! curAwardNum(%s) == downloadAwardNum(%s)" % (curAwardNum, downloadAwardNum), playerID)
- return
-
- awardItemList = IpyGameDataPY.GetFuncEvalCfg('DownReward', 1)
- if not awardItemList:
- return
-
- # 检查背包
- if dataEx == 0:
- needSpace = len(awardItemList)
- packSpace = ItemCommon.GetItemPackSpace(curPlayer, IPY_GameWorld.rptItem, needSpace)
- if needSpace > packSpace:
- PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_998371")
- return
-
- PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_DownloadAwardState, downloadAwardNum)
- GameWorld.DebugLog("领取分包下载奖励: curAwardNum=%s,downloadAwardNum=%s" % (curAwardNum, downloadAwardNum), playerID)
- if dataEx == 1:
- PlayerControl.SendMailByKey('SubpackageDownload', [curPlayer.GetID()], awardItemList)
- else:
- for itemID, itemCnt, isBind in awardItemList:
- ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem])
- SyncPackDownloadAward(curPlayer)
- return
-
-def SyncPackDownloadAward(curPlayer):
- #分包下载奖励记录通知
- downloadAwardNum = IpyGameDataPY.GetFuncCfg('DownReward', 5)
- sendPack = ChPyNetSendPack.tagMCPackDownloadRecord()
- sendPack.Clear()
- sendPack.Record = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DownloadAwardState) == downloadAwardNum
- NetPackCommon.SendFakePack(curPlayer, sendPack)
return
def NotifyPlayerMove(curPlayer, posX, posY, npcID=0):
--
Gitblit v1.8.0