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存储通用记录