#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
##@package GM.Commands.ResetTruckLV  
 | 
#  
 | 
# @todo:ÖØÖÃË¢ÐÂïÚ³µµÈ¼¶  
 | 
# @author hxp  
 | 
# @date 2016-7-5  
 | 
# @version 1.0  
 | 
#  
 | 
# ÏêϸÃèÊö: ÖØÖÃË¢ÐÂïÚ³µµÈ¼¶  
 | 
#  
 | 
#-------------------------------------------------------------------------------  
 | 
#"""Version = 2016-7-5 12:00"""  
 | 
#-------------------------------------------------------------------------------  
 | 
import PlayerTruck  
 | 
import PlayerControl  
 | 
import ChConfig  
 | 
import GameWorld  
 | 
  
 | 
## GMÃüÁîÖ´ÐÐÈë¿Ú  
 | 
#  @param curPlayer µ±Ç°Íæ¼Ò  
 | 
#  @param playerList ²ÎÊýÁбí [speed]  
 | 
#  @return None  
 | 
#  @remarks º¯ÊýÏêϸ˵Ã÷.  
 | 
def OnExec(curPlayer, list):  
 | 
      
 | 
    if PlayerTruck.PlayerInMapHaveTruck(curPlayer):  
 | 
        GameWorld.DebugAnswer(curPlayer, "ÀïÚÖÐ, ÎÞ·¨ÖØÖÃ!")  
 | 
        return  
 | 
      
 | 
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_TruckLV, 0)  
 | 
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_TruckRefreshTotalCnt, 0)  
 | 
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FreeRefurbishTruckCnt, 0)  
 | 
    PlayerTruck.Sync_TruckLv(curPlayer)  
 | 
    GameWorld.DebugAnswer(curPlayer, "ÒÑÖØÖÃïÚ³µµÈ¼¶¡¢Ê×´ÎË¢ÐÂïÚ³µ¡¢Ãâ·ÑË¢ÐÂïÚ³µ")  
 | 
    return  
 | 
  
 | 
  
 |