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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#
##@package GM.Commands.ClearCostVIP
#
# @todo:Ïû·ÑVIPÖØÖÃ
# @author ljd
# @date 2015-08-07 20:00
# @version 1.0
#
#
# ÏêϸÃèÊö: Ïû·ÑVIPÖØÖÃ
#
#---------------------------------------------------------------------
#"""Version = 2015-08-07 20:00"""
#---------------------------------------------------------------------
import ChConfig
import PlayerCostVIP
import PlayerControl
import GameWorld
 
 
## Âß¼­ÊµÏÖ
#  @param curPlayer
#  @param cmdList ²ÎÊýÁбí
#  @return None
def OnExec(curPlayer, cmdList):
    curPlayer.SetVIPLv(0)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CostVIPExp, 0)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CostVIPLVReward, 0)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CostVIPBuyItem, 0)
    
    PlayerCostVIP.Sync_CostVIPInfo(curPlayer)
    PlayerCostVIP.Sync_CostVIPAwardState(curPlayer)
    GameWorld.DebugAnswer(curPlayer, 'ClearCostVIP OK!')
    return