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
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/python
# -*- coding: GBK -*-
#---------------------------------------------------------------------
#
#---------------------------------------------------------------------
##@package GY_Query_CancelNoSight
# @todo: È¡ÏûÒþÉí
#
# @author: panwei
# @date 2011-05-23
# @version 1.1
#
# @note: 
# @change: "2014-01-07 15:30" hxp ÏµÍ³markÐÞ¸Ä
#---------------------------------------------------------------------
"""Version = 2014-01-07 15:30"""
#---------------------------------------------------------------------
#µ¼Èë
import IPY_GameWorld
import PlayerControl
import GameWorld
#---------------------------------------------------------------------
#È«¾Ö±äÁ¿
#---------------------------------------------------------------------
 
#---------------------------------------------------------------------
#Âß¼­ÊµÏÖ
## ÇëÇóÂß¼­£¬È¡ÏûÒþÉí
#  @param query_Type ÇëÇóÀàÐÍ
#  @param query_ID ÇëÇóµÄÍæ¼ÒID
#  @param packCMDList ·¢°üÃüÁî
#  @param tick µ±Ç°Ê±¼ä
#  @return "True" or "False" or ""
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def DoLogic(query_Type, query_ID, packCMDList, tick):
    curFindPlayer = GameWorld.GetPlayerManager().FindPlayerByID(query_ID)
    
    if not curFindPlayer or curFindPlayer.IsEmpty():
        return ''
    
    curFindPlayer_GMOper = curFindPlayer.GetGMOperManager()
    result = False
    
    for index in range(curFindPlayer_GMOper.GetCount()):
        curOper = curFindPlayer_GMOper.GetAt(index)
        if curOper.GetOper() == IPY_GameWorld.gmForbidVisible:
            curFindPlayer_GMOper.DeleteOper(IPY_GameWorld.gmForbidVisible)
            curFindPlayer_GMOper.Sync_SaveToDB()
            result = True
            break
    
    if result:
        curFindPlayer.SetVisible(1)
        #ÄãÒѾ­±»GMÈ¡ÏûÒþÉí(GeRen_chenxin_114759)
        PlayerControl.NotifyCode(curFindPlayer, "GeRen_chenxin_114759")
    
    return ('%s'%result)
#---------------------------------------------------------------------
## Ö´Ðнá¹û
#  @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò
#  @param callFunName ¹¦ÄÜÃû³Æ
#  @param funResult ²éѯµÄ½á¹û
#  @param tick µ±Ç°Ê±¼ä
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def DoResult(curPlayer, callFunName, funResult, tick):
    if funResult == '':
        #GeRen_chenxin_112395 ¶Ô²»Æð£¬Ä¿±êÍæ¼Ò²»ÔÚÏߣ¬GMÖ¸Áî²Ù×÷ʧ°Ü
        PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_112395")
        return
    
    if funResult == 'False':
        #GM_Operate_CannotHide ¶Ô²»Æð£¬Ä¿±êÍæ¼Ò²»ÔÚÒþÉí״̬,GMÖ¸Áî²Ù×÷ʧ°Ü
        PlayerControl.NotifyCode(curPlayer, "GM_Operate_CannotHide")
        return
    
    #GeRen_chenxin_673416 GMÖ¸ÁîÒÑÉúЧ£¬²Ù×÷³É¹¦
    PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_673416")
    return