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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package GM.Commands.SetFBStar
#
# @todo:ÉèÖøöÈ˸±±¾ÐǼ¶
# @author hxp
# @date 2017-03-07
# @version 1.0
#
# ÏêϸÃèÊö: ÉèÖøöÈ˸±±¾ÐǼ¶
#
#-------------------------------------------------------------------------------
#"""Version = 2017-03-07 16:30"""
#-------------------------------------------------------------------------------
 
import GameWorld
import ChConfig
import FBCommon
import PlayerControl
 
 
#---------------------------------------------------------------------
#Âß¼­ÊµÏÖ
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param paramList ²ÎÊýÁбí
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer, paramList):
 
    if len(paramList) == 3:
        mapID, lineID, star = paramList
#        if mapID not in allMapIDList:
#            GameWorld.DebugAnswer(curPlayer, "¸ÃµØÍ¼ID²»¿ÉÉèÖÃ!")
#            return
        GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, star, False, [mapID])
    elif len(paramList) == 1:
        mapID = paramList[0]
        for keyNum in range(ChConfig.Def_FBStar_MaxKeyCnt):
            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId % (mapID, keyNum), 0)
    else:
        #GameWorld.DebugAnswer(curPlayer, "ÖØÖÃËùÓи±±¾ÐǼ¶: SetFBStar 0")
        GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÖ¸¶¨¸±±¾lineIDÐǼ¶: SetFBStar ¸±±¾ID lineID ÐǼ¶")
        GameWorld.DebugAnswer(curPlayer, "ÖØÖÃÖ¸¶¨¸±±¾ËùÓÐÐǼ¶: SetFBStar ¸±±¾ID")
        return
    FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID)
    GameWorld.DebugAnswer(curPlayer, "OK!")
    return