From a9039a33299cc764fb4225a9d49b15d10414cfb8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 03 七月 2024 15:14:39 +0800
Subject: [PATCH] 10195 【香港】【越南】【主干】【砍树】新增消耗记录(代币获得、消耗记录;后台扣除货币支持扣代币;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
index f93743b..ec0ed88 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -2122,6 +2122,18 @@
     showLV = serverLV if transCnt <= 0 else serverLV - curTransRealLV + curNewLV - curTransTotalSplitLV + curTransAddSplitLV
     return transCnt, showLV
 
+def AddPlayerRec(playerID, recType, valueList, userData="", notifyType=0):
+    '''
+    @todo: 添加玩家记录
+    @param recType: 通用记录类型, 对应 ShareDefine.Def_PlayerRecTypeList
+    @param valueList: 数值列表[value1, value2, ...], 按顺序, 支持value1 ~ value8
+    @param userData: 自定义字符信息
+    @param notifyType: 0-不通知; 1-通知单条; 2-通知全部
+    '''
+    msgStr = str([recType, valueList, userData, notifyType])
+    GetPlayerManager().GameServer_QueryPlayerResult(playerID, 0, 0, "AddPlayerRec", msgStr, len(msgStr))
+    return
+
 def AddUniversalGameRec(playerID, recType, valueList, strValueList, notifyType=0, isSort=1):
     '''
     @todo: 添加GameServer存储通用记录

--
Gitblit v1.8.0