From 5f3b500dd8efc188323d6e6ec2a74857e82142c8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 10 二月 2026 19:50:38 +0800
Subject: [PATCH] 1111 【后台】 扣除玩家物品、扣除玩家货币命令支持;
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTalk.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTalk.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTalk.py
index 8d4e576..e48de7e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTalk.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTalk.py
@@ -33,6 +33,7 @@
#需要记录聊天缓存的频道对应限制最大条数
ChannelCacheMax = {IPY_GameWorld.tcFamily:30,
IPY_GameWorld.tcWorld:100,
+ IPY_GameWorld.tcCountry:200,
}
def OnPlayerLogin(curPlayer):
@@ -72,10 +73,6 @@
curPlayer.SetLastChatTick(tick)
curPlayer.SetDict(ChConfig.Def_ChannelTalkTick % channelType, tick)
- if channelType == IPY_GameWorld.tcCountry:
- #发送到跨服,待扩展
- return
-
bubbleBox = PlayerControl.GetChatBox(curPlayer) # 气泡框
clientPack = ChPyNetSendPack.tagMCTalk()
@@ -99,6 +96,8 @@
DoTalkCache(channelType, playerID, content, bubbleBox, familyID)
elif channelType == IPY_GameWorld.tcFamily:
PlayerFamily.OnFamilyTalk(curPlayer, familyID, clientPack, tick)
+ elif channelType == IPY_GameWorld.tcCountry:
+ PlayerFamily.OnCrossFamilyTalk(curPlayer, clientPack, tick)
return
--
Gitblit v1.8.0