hxp
2025-12-09 414e694600077975d13979e925e152a52f4f8d03
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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package GM.Commands.FBPass
#
# @todo:ÉèÖø±±¾¹ý¹Ø½ø¶È
# @author hxp
# @date 2025-11-21
# @version 1.0
#
# ÏêϸÃèÊö: ÉèÖø±±¾¹ý¹Ø½ø¶È
#
#-------------------------------------------------------------------------------
#"""Version = 2025-11-21 17:00"""
#-------------------------------------------------------------------------------
 
import GameWorld
import IpyGameDataPY
import PlayerControl
import FBCommon
import ChConfig
 
def OnExec(curPlayer, paramList):
    
    if not paramList:
        GameWorld.DebugAnswer(curPlayer, "¸±±¾¹ý¹Ø½ø¶È: FBPass mapID lineID")
        return
    mapID = paramList[0]
    funcLineID = paramList[1] if len(paramList) > 1 else 0
    
    if not IpyGameDataPY.GetIpyGameData("FBLine", mapID, funcLineID):
        GameWorld.DebugAnswer(curPlayer, "²»´æÔڸø±±¾Ïß·:%s-%s" % (mapID, funcLineID))
        return
    
    GameWorld.DebugAnswer(curPlayer, "¸±±¾¹ý¹Ø½ø¶È:%s-%s" % (mapID, funcLineID))
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FBPassLineID % mapID, funcLineID)
    FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID)
    return