hxp
2019-09-20 67bcc2ab06912fc3d9cf31ceae533da76e50d5ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#
##@package GM.Commands.SetBossTime
#
# @todo:ÉèÖÃBOSSË¢ÐÂʱ¼ä
# @author xdh
# @date 2017-05-16
# @version 1.0
#
# ÏêϸÃèÊö: ÉèÖÃBOSSË¢ÐÂʱ¼ä
#
#---------------------------------------------------------------------
import GameWorldBoss
import GameWorld
"""Version = 2017-05-16 15:00"""
 
#---------------------------------------------------------------------
## Ö´ÐÐÂß¼­
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param cmdList ²ÎÊý
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer, cmdList):
    
    if len(cmdList) != 2:
        return
    
    bossid = cmdList[0]
    #ÔÚÏßÈËÊý
    onlineCnt = cmdList[1]
    GameWorldBoss.SetBossOnlineHeroCnt(bossid, onlineCnt)
    GameWorldBoss.SetBossRefreshTime(bossid)
    GameWorldBoss.Sync_BossInfo(curPlayer)
    GameWorld.DebugAnswer(curPlayer, 'ÉèÖÃBOSSË¢ÐÂʱ¼ä, bossid:%s, onlineCnt:%s' % (bossid, onlineCnt))
    return