From 6a875d29696c5625a779a379b0de523b2383d7ef Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 28 十一月 2024 16:41:11 +0800
Subject: [PATCH] 10312 【越南】【英文】【bt】【砍树】查看跨服玩家数据向对应子服查询
---
ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/testMail.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/testMail.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/testMail.py
index 417f932..db5f6ed 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/testMail.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/testMail.py
@@ -18,6 +18,7 @@
import PlayerCompensation
import GameWorld
import ShareDefine
+import ChConfig
## 执行逻辑
# @param curPlayer 当前玩家
@@ -26,7 +27,7 @@
def OnExec(curPlayer, gmList):
if not gmList:
- GameWorld.DebugAnswer(curPlayer, "testMail 模板编号, 物品数, 仙玉,绑定仙玉,铜钱,可选模板参数1, 参数2, ...")
+ GameWorld.DebugAnswer(curPlayer, "testMail 模板编号 物品数 仙玉 绑玉 铜钱 货币来源 可选模板参数1 参数2 ...")
return
paramCnt = len(gmList)
@@ -37,13 +38,14 @@
gold = gmList[2] if paramCnt > 2 else 0
goldPaper = gmList[3] if paramCnt > 3 else 0
silver = gmList[4] if paramCnt > 4 else 0
- paramList = gmList[5:]
+ moneySource = gmList[5] if paramCnt > 5 else ChConfig.Def_GiveMoney_Mail
+ paramList = gmList[6:]
- itemCfg = [(29,2000000000,1),(912,5,1),(10161,1,1),(10162,1,1),(10163,1,1)]
+ itemCfg = [(29,2000000000,0),(912,5,1),(10161,1,1),(10162,1,0),(10163,1,0)]
addItemList = itemCfg[0:itemCnt]
content = "<MailTemplate>%s</MailTemplate>%s" % (mailNum, paramList)
mailGUID = PlayerCompensation.SendPersonalItemMailEx("", content, 1, [curPlayer.GetPlayerID()], addItemList,
- gold, goldPaper, silver)
+ gold, goldPaper, silver, moneySource=moneySource)
GameWorld.DebugAnswer(curPlayer, "SendMail mailGUID=%s" % mailGUID)
return
--
Gitblit v1.8.0