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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package GM.Commands.SetPKValueBuff
#
# @todo:ÉèÖÃPKÖµ¼°ºìÃûbuff
# @author hxp
# @date 2018-01-20
# @version 1.0
#
# ÏêϸÃèÊö: ÉèÖÃPKÖµ¼°ºìÃûbuff
#
#-------------------------------------------------------------------------------
#"""Version = 2018-01-20 16:00"""
#-------------------------------------------------------------------------------
 
 
import GameWorld
import PlayerControl
 
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param playerList ²ÎÊýÁбí [pointCount]
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer, playerList):
    if not playerList:
        GameWorld.DebugAnswer(curPlayer, "SetPKValueBuff ¶ñÒâPKÖµ")
        return
    
    pkValue = playerList[0]
    PlayerControl.ClearPKValue(curPlayer)
    tick = GameWorld.GetGameWorld().GetTick()
    pkValue = PlayerControl.ChangePKValue(curPlayer, pkValue, tick)
    GameWorld.DebugAnswer(curPlayer, "SetPKValueBuff PKValue=%s" % pkValue)
    return