hxp
2024-11-13 141959c90ea475111b1d021d219745c2e246f45e
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 GY_GM_GivePlayerExp
# ¸øÓèÍæ¼Ò¾­Ñé
#
# @author Mark
# @date 2010-4-22
# @version 1.0
#
# ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
# VER = "2010-05-12 18:30" zhengyang Ìí¼Ó×¢ÊÍ
#
# Ä£¿éÏêϸ˵Ã÷
#µ¼Èë
import PlayerControl
#---------------------------------------------------------------------
#È«¾Ö±äÁ¿
#---------------------------------------------------------------------
 
#---------------------------------------------------------------------
#Âß¼­ÊµÏÖ
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param playerList ²ÎÊýÁбí [expValue]
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer , playerList):
    
    if len(playerList) != 1:
        return 
    
    exp = min(max(0 , playerList[0]) , 100000000)
    
    playerControl = PlayerControl.PlayerControl(curPlayer)
    #Ôö¼Ó¾­ÑéÖµ
    playerControl.AddExp(exp)
    return