xdh
2019-01-14 e463972e32a6c06dd215a55e1d7799be2bc6f1c5
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearCollectNPCCnt.py
@@ -40,16 +40,11 @@
        
    # 清NPCID每日采集次数
    collectNPCIDTimeLimit = ReadChConfig.GetEvalChConfig('CollectNPCIDTimeLimit')
    for npcID in collectNPCIDTimeLimit.keys():
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CollNpcIDCollTime % npcID, 0)
    for npcIDTuple in collectNPCIDTimeLimit.keys():
        for npcID in npcIDTuple:
            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CollNpcIDCollTime % npcID, 0)
    
    # 清NPC功能类型每日采集次数
    collectNPCFuncTimeLimit = ReadChConfig.GetEvalChConfig('CollectNPCFuncTimeLimit')
    for funcType in collectNPCFuncTimeLimit.keys():
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CollNpcCollTime % funcType, 0)
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CollNpcBuyTime % funcType, 0)
        NPCCommon.SyncCollNPCTime(curPlayer)
    NPCCommon.SyncCollNPCTime(curPlayer)
        
    GameWorld.DebugAnswer(curPlayer, "重置采集NPC成功")
    return