hch
2018-09-18 7e7b08bed3a685f5e8a2e32a475be60c8fe6449d
Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode
1个文件已修改
1个文件已添加
48 ■■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/SetHorsePetPlayerCount.py 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCInfo.py 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/SetHorsePetPlayerCount.py
New file
@@ -0,0 +1,39 @@
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package GM.Commands.SetHorsePetPlayerCount
#
# @todo:设置骑宠争夺参与玩家数
# @author hxp
# @date 2018-09-18
# @version 1.0
#
# 详细描述: 设置骑宠争夺参与玩家数
#
#-------------------------------------------------------------------------------
#"""Version = 2018-09-18 16:30"""
#-------------------------------------------------------------------------------
import GameWorld
import ShareDefine
#-------------------------------------------------------------------------------
## 执行逻辑
#  @param curPlayer 当前玩家
#  @param cmdList 参数
#  @return None
#  @remarks 函数详细说明.
def OnExec(curPlayer, cmdList):
    if not cmdList:
        GameWorld.DebugAnswer(curPlayer, "SetHorsePetPlayerCount 参与人数")
        return
    playerCount = cmdList[0]
    GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_HorsePetRobBossPlayerCount, playerCount)
    GameWorld.DebugAnswer(curPlayer, "设置骑宠争夺有效参与人数: %s" % playerCount)
    return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCInfo.py
@@ -22,6 +22,9 @@
import SkillCommon
import PrintBuff
import GMCommon
import FamilyRobBoss
import ShareDefine
import random
#---------------------------------------------------------------------
##查看点选的NPC仇恨列表
@@ -48,7 +51,11 @@
    npcID = curNPC.GetNPCID()
    GameWorld.DebugAnswer(curPlayer, "-----------------------%s" % random.randint(0, 100))
    GameWorld.DebugAnswer(curPlayer, "ObjID: %s, NPCID: %s, %s" % (curNPC.GetID(), npcID, curNPC.GetName()))
    GameWorld.DebugAnswer(curPlayer, "表等级: %s, 成长等级: %s" % (curNPC.GetLV(), curNPC.GetCurLV()))
    if FamilyRobBoss.IsHorsePetRobBoss(npcID):
        strengthenPlayerCnt = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_HorsePetRobBossPlayerCount)
        GameWorld.DebugAnswer(curPlayer, "表等级: %s, 成长等级: %s, 参与人数: %s" % (curNPC.GetLV(), curNPC.GetCurLV(), strengthenPlayerCnt))
    else:
        GameWorld.DebugAnswer(curPlayer, "表等级: %s, 成长等级: %s" % (curNPC.GetLV(), curNPC.GetCurLV()))
    GameWorld.DebugAnswer(curPlayer, "生命: %s / %s" % (GameObj.GetHP(curNPC), GameObj.GetMaxHP(curNPC)))
    GameWorld.DebugAnswer(curPlayer, "攻击: %s ~ %s" % (curNPC.GetMinAtk(), curNPC.GetMaxAtk()))
    GameWorld.DebugAnswer(curPlayer, "防御: %s" % (curNPC.GetDef()))