1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/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