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
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#
##@package GM.Commands.SetTotalExp
#
# @todo:ÉèÖõ±Ç°¾­Ñé
# @author hxp
# @date 2016-3-7
# @version 1.0
#
# ÏêϸÃèÊö: ÉèÖõ±Ç°¾­Ñé
#
#---------------------------------------------------------------------
"""Version = 2016-3-7 18:00"""
#---------------------------------------------------------------------
 
import PlayerControl
import GameWorld
 
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param list ²ÎÊýÁбí [ExpValue]
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer, paramList):
    
    #ÊäÈëÃüÁî¸ñʽ´íÎó
    if len(paramList) <= 0:
        return
    
    #ÉèÖþ­ÑéÖµ
    totalExp = paramList[0]
    PlayerControl.SetPlayerTotalExp(curPlayer, totalExp)
    tExp = curPlayer.GetTotalExp()
    expPoint = curPlayer.GetExpPoint()
    GameWorld.DebugAnswer(curPlayer, "expPoint=%s,exp=%s,totalExp=%s" % (expPoint, tExp, totalExp))         
    return