hxp
2025-06-12 edc3910a9d090e5df4deb2dbc37709a740375938
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
#!/usr/bin/python
# -*- coding: GBK -*-
#
#
##@package SetOffline.py
# @todo: ÉèÖÃÀëÏßÀÛ»ýʱ¼ä
# @author: Alee
# @date: 2010-6-11 ÏÂÎç09:20:18
# @version 1.0
#
# ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
#
#---------------------------------------------------------------------
#µ¼Èë
import GameWorld
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param cmdList ²ÎÊýÁбí [·ÖÖÓ]
#  @return None
#  @remarks ÉèÖÃÀëÏßÀÛ»ýʱ¼ä
def OnExec(curPlayer, cmdList):
    
    if len(cmdList) != 1:
        GameWorld.DebugAnswer(curPlayer, "Ö»ÓÐÒ»¸ö²ÎÊý£¨·ÖÖÓ) Èç:SetOffline 111; ²Î¿´ÇëÓàGetOfflineMinutes")
        return
    
    curPlayer.SetOfflineMinutes(int(cmdList[0]))