#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package Script.Player.GMTExec.SetPlayerDict
|
#
|
# @todo:ÐÞ¸ÄÍæ¼Ò×Öµä
|
# @author hxp
|
# @date 2024-5-27
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ÐÞ¸ÄÍæ¼Ò×Öµä
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2024-5-27 ÏÂÎç7:42:34"""
|
#-------------------------------------------------------------------------------
|
|
|
def runMyTest(exec_locals):
|
''' ÔËÐÐÃüÁÊý
|
@param exec_locals: GY_Query_GMTExecfile Ä£¿éÖÐµÄ DoLogic º¯Êý locals()
|
|
import ÆäËûÄ£¿éÐèҪдÔڴ˺¯ÊýÀ²»È»ÎÞ·¨ÒýÓõ½
|
'''
|
import GameWorld
|
import PlayerControl
|
import ChConfig
|
|
orderId = exec_locals["orderId"]
|
cmdInfo = exec_locals["cmdInfo"]
|
curPlayer = exec_locals["curPlayer"]
|
resultDict = exec_locals["resultDict"] # ½¨Òé¶¼½øÐиüнá¹û×Öµä¼Ç¼Ïêϸ´¦ÀíÐÅÏ¢£¬GY_Query_GMTExecfile Ä£¿é»áͳһдÈëÁ÷Ïò
|
|
# ÒÔÏÂΪÏêϸ´¦ÀíÂß¼
|
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldServerDay, 1)
|
|
GameWorld.Log("This is MameServer GMT_Execfile run %s. orderId=%s" % (cmdInfo, orderId), curPlayer.GetPlayerID())
|
resultDict.update({"LV":curPlayer.GetLV(), "PlayerID":curPlayer.GetPlayerID()})
|
return
|
|
exec_locals = locals()
|
if exec_locals.get("cmdInfo"):
|
runMyTest(exec_locals)
|
|