|  |  |  | 
|---|
|  |  |  | import IpyGameDataPY | 
|---|
|  |  |  | import GameWorld | 
|---|
|  |  |  | import ChConfig | 
|---|
|  |  |  | import ShareDefine | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #--------------------------------------------------------------------- | 
|---|
|  |  |  | #逻辑实现 | 
|---|
|  |  |  | 
|---|
|  |  |  | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_NPCKillCountDrop % npcID, 0) | 
|---|
|  |  |  | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_NPCKillCount % npcID, 0) | 
|---|
|  |  |  | resetNPCIDList.append(npcID) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | gw = GameWorld.GetGameWorld() | 
|---|
|  |  |  | globalKillDropDict = IpyGameDataPY.GetFuncEvalCfg("GlobalDropCD", 2) | 
|---|
|  |  |  | for npcID in globalKillDropDict.keys(): | 
|---|
|  |  |  | killedCount = gw.GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_NPCKilledCount % npcID) | 
|---|
|  |  |  | if not killedCount: | 
|---|
|  |  |  | continue | 
|---|
|  |  |  | msgInfo = str([npcID, 0]) | 
|---|
|  |  |  | GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, "GlobalKillCount", msgInfo, len(msgInfo)) | 
|---|
|  |  |  | resetNPCIDList.append(npcID) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | GameWorld.DebugAnswer(curPlayer, "重置OK: %s" % resetNPCIDList) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|