| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GM.Commands.SetFB  | 
| #  | 
| # @todo:ÉèÖø±±¾Ïà¹Ø  | 
| # @author hxp  | 
| # @date 2024-05-11  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ÉèÖø±±¾Ïà¹Ø  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #"""Version = 2024-05-11 12:00"""  | 
| #-------------------------------------------------------------------------------  | 
|   | 
| import GameWorld  | 
| import ChConfig  | 
| import FBCommon  | 
| import PlayerControl  | 
| import GameLogic_TrialTower  | 
| import GameLogic_SkyTower  | 
|   | 
| #---------------------------------------------------------------------  | 
| #Â߼ʵÏÖ  | 
| ## GMÃüÁîÖ´ÐÐÈë¿Ú  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param paramList ²ÎÊýÁÐ±í  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer, paramList):  | 
|   | 
|     if not paramList:  | 
|         GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÏß·: SetFB line µØÍ¼ID Òѹý¹Øµ½Ïß·")  | 
|         return  | 
|       | 
|     mapID = None  | 
|     value = paramList[0]  | 
|     if value == "line":  | 
|         mapID = paramList[1] if len(paramList) > 1 else 0  | 
|         funcLineID = paramList[2] if len(paramList) > 2 else 0  | 
|         if not mapID:  | 
|             return  | 
|         PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FBPassLineID % mapID, funcLineID)  | 
|           | 
|         if mapID == ChConfig.Def_FBMapID_TrialTower:  | 
|             PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_TrialTower_PassLV, funcLineID)  | 
|             GameLogic_TrialTower.SyncTrialLevelInfo(curPlayer)  | 
|         elif mapID == ChConfig.Def_FBMapID_SkyTower:  | 
|             PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_SkyTowerFloor, funcLineID)  | 
|             GameLogic_SkyTower.SyncSkyTowerInfo(curPlayer)  | 
|                           | 
|         GameWorld.DebugAnswer(curPlayer, "ÉèÖø±±¾:%s Òѹý¹Ø:%s" % (mapID, funcLineID))  | 
|     else:  | 
|         return  | 
|       | 
|     FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID)  | 
|     return  | 
|   | 
|   | 
|   | 
|   |