#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package GM.Commands.SetBossKilledCnt
|
#
|
# @todo:ÉèÖÃboss±»»÷ɱ´ÎÊý
|
# @author hxp
|
# @date 2016-8-12
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ÉèÖÃboss±»»÷ɱ´ÎÊý
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2016-8-12 14:00"""
|
#-------------------------------------------------------------------------------
|
|
import GameWorldBoss
|
import ShareDefine
|
import GameWorld
|
|
|
#Â߼ʵÏÖ
|
## Ö´ÐÐÂß¼
|
# @param curPlayer µ±Ç°Íæ¼Ò
|
# @param list []
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def OnExec(curPlayer, paramList):
|
|
if len(paramList) == 1 and paramList[0] == 0:
|
GameWorld.GetUniversalRecMgr().Delete(ShareDefine.Def_UniversalGameRecType_BossInfo)
|
GameWorldBoss.Sync_BossInfo(curPlayer)
|
GameWorldBoss.OnMapServerInitOK()
|
GameWorld.DebugAnswer(curPlayer, "Çå¿Õboss»÷ɱÐÅÏ¢!")
|
|
elif len(paramList) == 2:
|
bossID, killedCnt = paramList
|
recData = GameWorldBoss.__GetBossRecDataByID(bossID)
|
GameWorldBoss.__SetKilledCnt(recData, killedCnt)
|
|
GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_BossKilledCnt % bossID, killedCnt)
|
GameWorldBoss.Sync_BossInfo(curPlayer)
|
GameWorld.DebugAnswer(curPlayer, "ÉèÖÃBossID: %s »÷ɱ´ÎÊý %s!" % (bossID, killedCnt))
|
else:
|
GameWorld.DebugAnswer(curPlayer, "SetBossKilledCnt bossID »÷ɱ´ÎÊý")
|
return
|
|
return
|
|
|
|
|