hxp
2020-02-27 2d1e1831dc6a29031bf85010e2f0d804d3e342bc
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]))