| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #  | 
| #  | 
| ##@package GetDBGSTrig.py  | 
| #  | 
| # @todo:²éѯ´æ´¢ÔÚtagDBGameServerEventTrig×ÖµäµÄÖµ  | 
| #  | 
| # @author jiang  | 
| # @date 2012-11-12  | 
| # @version 1.0  | 
| # @note:  | 
| #  | 
| #------------------------------------------------------------------------------   | 
| """Version = 2012-11-12 11:00"""  | 
| #------------------------------------------------------------------------------   | 
| # µ¼Èë  | 
| import GameWorld  | 
| import PlayerDBGSEvent  | 
| #------------------------------------------------------------------------------   | 
|   | 
| ## Ö´ÐÐÂß¼  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param cmdList ²ÎÊý  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer, cmdList):  | 
|     if len(cmdList) != 1:  | 
|         GameWorld.DebugAnswer(curPlayer, "ÇëÊäÈëÒª²éѯµÄkey")  | 
|         return  | 
|       | 
|     key = cmdList[0]  | 
|       | 
|     if not PlayerDBGSEvent.FindDBGSTrig_ByEventID("", key):  | 
|         GameWorld.DebugAnswer(curPlayer, '²éѯµÄkey = %s ²»´æÔÚ'%(key))  | 
|         return  | 
|       | 
|     value = PlayerDBGSEvent.GetDBGSTrig_ByKey(key)  | 
|     GameWorld.DebugAnswer(curPlayer, '²éѯkey = %s ÖµÎª:%s'%(key, value))  | 
|     return |