| #!/usr/bin/python | 
| # -*- coding: GBK -*- | 
| #------------------------------------------------------------------------------- | 
| # | 
| ##@package GM.Commands.RealmTower | 
| # | 
| # @todo:¾³½çËþ | 
| # @author hxp | 
| # @date 2023-10-25 | 
| # @version 1.0 | 
| # | 
| # ÏêϸÃèÊö: ¾³½çËþ | 
| # | 
| #------------------------------------------------------------------------------- | 
| #"""Version = 2023-10-25 01:30""" | 
| #------------------------------------------------------------------------------- | 
|   | 
| import GameWorld | 
| import PlayerControl | 
| import GameLogic_RealmTower | 
| import ChConfig | 
|   | 
| ## Â߼ʵÏÖ | 
| ## GMÃüÁîÖ´ÐÐÈë¿Ú | 
| #  @param curPlayer | 
| #  @param cmdList ²ÎÊýÁбí | 
| #  @return None | 
| def OnExec(curPlayer, cmdList): | 
|     if not cmdList: | 
|         GameWorld.DebugAnswer(curPlayer, "ÉèÖþ³½çËþ²ã: RealmTower ²ã") | 
|         return | 
|      | 
|     floorID = cmdList[0] | 
|     if not GameLogic_RealmTower.GetTowerIpyData(floorID): | 
|         GameWorld.DebugAnswer(curPlayer, "²»´æÔڸòã") | 
|         return | 
|      | 
|     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_RealmTowerFloor, floorID) | 
|      | 
|     GameLogic_RealmTower.SyncRealmTowerInfo(curPlayer) | 
|     GameWorld.DebugAnswer(curPlayer, "¾³½çËþ²ãÉèÖàfloorID=%s" % floorID) | 
|     return |