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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package GM.Commands.ClearFamilyStore
#
# @todo:Çå³ý¼Ò×å²Ö¿â
# @author hxp
# @date 2017-09-09
# @version 1.0
#
# ÏêϸÃèÊö: Çå³ý¼Ò×å²Ö¿â
#
#-------------------------------------------------------------------------------
#"""Version = 2017-09-09 18:30"""
#-------------------------------------------------------------------------------
 
import GameWorld
import PyDataManager
 
#---------------------------------------------------------------------
## Ö´ÐÐÂß¼­
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param cmdList ²ÎÊýÁбí
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer, cmdList):
    
    familyID = curPlayer.GetFamilyID()
    if not familyID:
        GameWorld.DebugAnswer(curPlayer, 'ûÓмÒ×壬²»ÄÜÇåÀí¼Ò×å²Ö¿â£¡')
        return
    delCount = PyDataManager.GetFamilyStoreItemManager().DelFamilyStoreItemAll(familyID)
    if delCount != None:
        GameWorld.DebugAnswer(curPlayer, 'ɾ³ý²Ö¿âÎïÆ·Êý: %s' % delCount)
    return