hxp
2025-10-09 dae842ad6e4a43d66255251e3ca60880af8d08bb
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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package GM.Commands.SetSignDay
#
# @todo:Ç©µ½
# @author hxp
# @date 2025-10-09
# @version 1.0
#
# ÏêϸÃèÊö: Ç©µ½
#
#-------------------------------------------------------------------------------
#"""Version = 2025-10-09 16:30"""
#-------------------------------------------------------------------------------
 
import GameWorld
import PlayerSignDay
import ChConfig
 
def OnExec(curPlayer, cmdList):
    
    if not cmdList:
        GameWorld.DebugAnswer(curPlayer, "ÖØÖÃÇ©µ½: SetSignDay 0")
        GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÇ©µ½: SetSignDay Ìì ×´Ì¬")
        GameWorld.DebugAnswer(curPlayer, "״̬£º1-ÒÑÇ©µ½£»2-¿É²¹Ç©£»3-ÒÑÁìÈ¡")
        return
    
    value = cmdList[0]
    if value <= 0:
        GameWorld.DebugAnswer(curPlayer, "ÖØÖÃÇ©µ½")
        PlayerSignDay.ResetDaySign(curPlayer)
        return
    
    day = value
    state = cmdList[1] if len(cmdList) > 1 else 0
    GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÇ©µ½: Ìì:%s, ×´Ì¬:%s" % (day, state))
    GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_SignInState, day - 1, state, False)
    PlayerSignDay.Sync_SignDayInfo(curPlayer)
    return