#!/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
|
|