6373 【后端】【2.0】删除无用功能代码、封包、配置(旧商城系统)
7个文件已修改
1个文件已删除
743 ■■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/PyNetPack.ini 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script.ini 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuperMarket.py 549 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py
@@ -7423,66 +7423,6 @@
#------------------------------------------------------
# A5 32 购买商城物品 #tagCMBuyStoreItem
class  tagCMBuyStoreItem(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("Type", c_ubyte),    #1钻石,2绑定钻石,3银子,4银票
                  ("ItemID", c_int),    #物品ID
                  ("BuyCount", c_ushort),    #购买数量
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xA5
        self.SubCmd = 0x32
        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 = 0xA5
        self.SubCmd = 0x32
        self.Type = 0
        self.ItemID = 0
        self.BuyCount = 0
        return
    def GetLength(self):
        return sizeof(tagCMBuyStoreItem)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A5 32 购买商城物品 //tagCMBuyStoreItem:
                                Cmd:%s,
                                SubCmd:%s,
                                Type:%d,
                                ItemID:%d,
                                BuyCount:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.Type,
                                self.ItemID,
                                self.BuyCount
                                )
        return DumpString
m_NAtagCMBuyStoreItem=tagCMBuyStoreItem()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMBuyStoreItem.Cmd,m_NAtagCMBuyStoreItem.SubCmd))] = m_NAtagCMBuyStoreItem
#------------------------------------------------------
#A5 01 坐骑激活 #tagPlayerActivateHorse
class  tagPlayerActivateHorse(Structure):
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/PyNetPack.ini
@@ -453,18 +453,6 @@
PacketSubCMD_1 = 0x30
PacketCallFunc_1 = OnPlayerBuySomething
;商城物品购买
[PlayerSuperMarket]
ScriptName = Player\PlayerSuperMarket.py
Writer = xcc
Releaser = xcc
RegType = 0
RegisterPackCount = 1
PacketCMD_1 = 0xA5
PacketSubCMD_1 = 0x32
PacketCallFunc_1 = OnBuyStoreItem
;签到
[PlayerSignDay]
ScriptName = Player\PlayerSignDay.py
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script.ini
@@ -1114,18 +1114,6 @@
PacketSubCMD_2=0x1
PacketCallFunc_2=OnPlayerSetTruckMode
;精力系统
[PlayerEnergySys]
ScriptName = Player\PlayerEnergySys.py
Writer = panwei
Releaser = panwei
RegType = 0
RegisterPackCount = 1
PacketCMD_1=0x3
PacketSubCMD_1=0x2C
PacketCallFunc_1=FightAssistantSystem
;家族争霸赛
[PlayerFamilyBattle]
ScriptName = Player\PlayerFamilyBattle.py
@@ -1137,34 +1125,6 @@
PacketCMD_1=0xF
PacketSubCMD_1=0x14
PacketCallFunc_1=EnrollFamilyVS
;商城相关
[PlayerSuperMarket]
ScriptName = Player\PlayerSuperMarket.py
Writer = Alee
Releaser = Alee
RegType = 0
RegisterPackCount = 5
PacketCMD_1=0x3
PacketSubCMD_1=0x17
PacketCallFunc_1=WatchStoreItem
PacketCMD_2=0x3
PacketSubCMD_2=0x18
PacketCallFunc_2=BuyStoreItem
PacketCMD_3=0x1
PacketSubCMD_3=0xF
PacketCallFunc_3=GetCoinReq
PacketCMD_4=0x1
PacketSubCMD_4=0x10
PacketCallFunc_4=CoinChangeReq
PacketCMD_5=0x7
PacketSubCMD_5=0x3E
PacketCallFunc_5=GetGuaranteeGift
;晶魄系统
[PlayerFineSoul]
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -802,8 +802,6 @@
Def_PlayerTotalMoney_Silver = 2000000000
#流向记录变更最小金币值(小于该值的暂不记录, 仅限金币)
Def_DRRecord_Min_Silver = 500000
#大额度交易记录
Def_LargeTrade_Gold = 50 * 1000
Def_LargeTrade_Silver = 1000 * 1000
#初始化装备背包格子数
Def_PackCnt_Equip = 130
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -7423,66 +7423,6 @@
#------------------------------------------------------
# A5 32 购买商城物品 #tagCMBuyStoreItem
class  tagCMBuyStoreItem(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("Type", c_ubyte),    #1钻石,2绑定钻石,3银子,4银票
                  ("ItemID", c_int),    #物品ID
                  ("BuyCount", c_ushort),    #购买数量
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xA5
        self.SubCmd = 0x32
        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 = 0xA5
        self.SubCmd = 0x32
        self.Type = 0
        self.ItemID = 0
        self.BuyCount = 0
        return
    def GetLength(self):
        return sizeof(tagCMBuyStoreItem)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A5 32 购买商城物品 //tagCMBuyStoreItem:
                                Cmd:%s,
                                SubCmd:%s,
                                Type:%d,
                                ItemID:%d,
                                BuyCount:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.Type,
                                self.ItemID,
                                self.BuyCount
                                )
        return DumpString
m_NAtagCMBuyStoreItem=tagCMBuyStoreItem()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMBuyStoreItem.Cmd,m_NAtagCMBuyStoreItem.SubCmd))] = m_NAtagCMBuyStoreItem
#------------------------------------------------------
#A5 01 坐骑激活 #tagPlayerActivateHorse
class  tagPlayerActivateHorse(Structure):
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -430,24 +430,6 @@
    #发送封包
    SendEventPack("PlayerCoinAfterCharge", dataDict, curPlayer)
    return
## 玩家商城购买物品
#  @param curPlayer: 玩家实例
#  @param buyItemID: 购买物品id
#  @param buyItemCount: 购买物品数量
#  @param buyItemGUID: GUID
#  @return: None
def DR_PlayerSupermarket(curPlayer, buyItemID, buyItemCount, buyItemGUID):
    dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
                'AccID':curPlayer.GetAccID(), 'ItemID':buyItemID, 'ItemCount':buyItemCount,
                'ItemGUID':buyItemGUID}
    #发送封包
    SendEventPack("PlayerSupermarket", dataDict, curPlayer)
    return
## 玩家升级
#  @param curPlayer: 玩家实例
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -44,11 +44,9 @@
import PlayerActivity
import PlayerSuccess
import BossHurtMng
import PlayerSuperMarket
import GameLogic_FamilyInvade
import GameLogic_GatherSoul
import FormulaControl
import PlayerMagicWeapon
import PlayerBossReborn
import PlayerFairyCeremony
import PlayerNewFairyCeremony
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuperMarket.py
File was deleted