#!/usr/bin/python
|
# -*- coding: GBK -*-
|
|
##@package GetMissionDict
|
# Ä£¿éµÄ¼òҪ˵Ã÷:Êä³öÈÎÎñ×ÖµäÖµ
|
# @author:Alee
|
# @date 2010-06-07 16:20
|
# @version 1.0
|
#
|
# ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
|
#
|
# Ä£¿éÏêϸ˵Ã÷:Êä³öÈÎÎñ×ÖµäÖµ
|
#
|
#---------------------------------------------------------------------
|
#µ¼Èë
|
import GameWorld
|
#---------------------------------------------------------------------
|
#È«¾Ö±äÁ¿
|
## ÈÎÎñ×ÖµäÖµÉèÖÃ
|
# @param curPlayer GM
|
# @return playerList ÃüÁî²ÎÊý(npciid ¸öÊý)
|
# @remarks ÈÎÎñ×ÖµäÖµÉèÖÃ
|
def OnExec(curPlayer, msgList):
|
missionID = int(msgList[0])
|
keyName = msgList[1]
|
|
curMission = curPlayer.FindMission(missionID)
|
|
if not curMission:
|
GameWorld.DebugAnswer(curPlayer, "ÕÒ²»µ½ÈÎÎñ%s"%missionID)
|
return
|
|
GameWorld.DebugAnswer(curPlayer, "×ֵ䣺%s %s"%(keyName, curMission.GetProperty(keyName)))
|
|