xdh
2018-08-21 80f11b590ece01d82d2af052876366bd2c1df2eb
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#
##@package GY_Query_ReveiveRecallAward.py
#
# @todo: Õٻؽ±Àø
# @author Alee
# @date 2011-07-22 15:00
# @version 1.1
#
# ÏêϸÃèÊö:
# @change: "2011-07-26 11:00" Alee ÁìÈ¡ÎïÆ·ÏµÍ³Ìáʾ
#------------------------------------------------------------------------------ 
"""Version = 2011-07-26 11:00"""
#---------------------------------------------------------------------
#µ¼Èë
import PlayerControl
import ChConfig
import GameWorld
import ItemControler
import IPY_GameWorld
#---------------------------------------------------------------------
#È«¾Ö±äÁ¿
#---------------------------------------------------------------------
 
#---------------------------------------------------------------------
 
## ÇëÇóÂß¼­
#  @param query_Type ÇëÇóÀàÐÍ
#  @param query_ID ÇëÇóµÄÍæ¼ÒID
#  @param packCMDList ·¢°üÃüÁî [µÈ¼¶]
#  @param tick µ±Ç°Ê±¼ä
#  @return None
def DoLogic(query_Type, query_ID, packCMDList, tick):
 
    curFindPlayer = GameWorld.GetPlayerManager().FindPlayerByID(query_ID)
    
    if not curFindPlayer or curFindPlayer.IsEmpty():
        return '0'
    
    flag, itemID, itemCnt = packCMDList
    
    #°ÑÎïÆ··Åµ½±³°üÖÐ
    if not ItemControler.GivePlayerItem(curFindPlayer, itemID, itemCnt, True, [IPY_GameWorld.rptItem]):
        return '0'
 
    #֪ͨ·ÅÈë±³°üÌØÐ§
    #curFindPlayer.Sync_GetItemView(itemID, itemCnt)
    #PlayerControl.NotifyCode(curFindPlayer, "ObtainRes01", [itemID, itemCnt])
    
    return str(flag)
#---------------------------------------------------------------------
 
## Ö´Ðнá¹û
#  @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò
#  @param callFunName ¹¦ÄÜÃû³Æ
#  @param funResult ²éѯµÄ½á¹û
#  @param tick µ±Ç°Ê±¼ä
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def DoResult(curPlayer, callFunName, funResult, tick):
    return