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.SetXJMJExpTime
#
# @todo:ÉèÖÃÏɽçÃØ¾³¾­Ñ鲹ʱʱ¼ä
# @author hxp
# @date 2018-06-30
# @version 1.0
#
# ÏêϸÃèÊö: ÉèÖÃÏɽçÃØ¾³¾­Ñ鲹ʱʱ¼ä
#
#-------------------------------------------------------------------------------
#"""Version = 2018-06-30 22:00"""
#-------------------------------------------------------------------------------
 
import ChConfig
import PlayerControl
import GameWorld
import ChPlayer
 
 
## Âß¼­ÊµÏÖ
#  @param curPlayer
#  @param cmdList ²ÎÊýÁбí
#  @return None
def OnExec(curPlayer, cmdList):
    if not cmdList:
        GameWorld.DebugAnswer(curPlayer, 'SetXJMJExpTime Ãë')
        return
    expTime = cmdList[0]
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_BZZD_FirstEnterExpTime, expTime)
    GameWorld.DebugAnswer(curPlayer, 'ÉèÖþ­Ñ鲹ʱÃë: %s' % expTime)
    if not expTime:
        GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_GuideState, ChConfig.GuideState_BZZDShow, 0)
        GameWorld.DebugAnswer(curPlayer, 'ÖØÖÃÏɽçÃØ¾³³¡¾°Ðã!')
        ChPlayer.SyncGuideState(curPlayer)
    return