4115 【后端】神兽出战上限扩展系统广播;
4114 【后端】神兽出战系统广播增加参数:玩家名字;
1个文件已修改
4 ■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py
@@ -293,10 +293,11 @@
    
    if isFight and ipyData.GetHelpBattleNotify():
        curTime = int(time.time())
        playerName = curPlayer.GetPlayerName()
        notifyKey, notifyParamList, notifyCD = ipyData.GetHelpBattleNotify()
        lastNotifyTime = g_helpBattleNotifyTimeDict.get(dogzID, 0)
        if curTime - lastNotifyTime >= notifyCD * 60: 
            PlayerControl.WorldNotify(0, notifyKey, notifyParamList)
            PlayerControl.WorldNotify(0, notifyKey, [playerName] + notifyParamList)
            g_helpBattleNotifyTimeDict[dogzID] = curTime
    return
@@ -335,6 +336,7 @@
    GameWorld.DebugLog("购买神兽助战位! updBuyCount=%s" % updBuyCount, playerID)
    
    Sync_DogzInfo(curPlayer)
    PlayerControl.WorldNotify(0, "DogzNumberUp", [curPlayer.GetPlayerName(), needItemID, curHelpFightCount + 1])
    return