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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
¬hc@sÇddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
e dd#ƒZ \Z ZZZZZZZd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Z d„Z!d„Z"de#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d „Z1d!„Z2d"„Z3dS($iÿÿÿÿNiicCsYtjd|ƒ}|sdS|jƒs,dSt}|rUtjd||jƒƒn|S(Nt FuncTeamSets"»î¶¯ÆÚ¼äÎÞ·¨²Ù×÷¶ÓÎé! funcMapID=%s(t IpyGameDataPYtGetIpyGameDatatGetOPLimitInActtFalset    GameWorldtErrLogt GetPlayerID(t    curPlayert    funcMapIDtipyDatatisInAct((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytIsOPLimitInAct,s cCs
d}|S(Ni((R    tzoneID((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytGetFuncTeamZoneID8scCstjƒj|ƒ}|jƒ}|j}|j}|j}|j}|j}    |j    }
|j
} |j } t ||ƒr|dSt |ƒ} | s’dSi|d6|d6|d6|d6|    d6|
d6| d6| d6}i| d    6|d
6|d 6tj|ƒd 6}tjtj|ƒdS( NR    t    funcMapExtteamNametminLVt minFightPowertminFightPowerExt
serverOnlyt    needCheckR tplayerIDtteamInfot    cacheBase(RtGetPlayerManagertGetPlayerByIndexRt    FuncMapIDt    FuncMapExtTeamNametMinLVt MinFightPowertMinFightPowerExt
ServerOnlyt    NeedCheckR RtPlayerViewCachetGetSyncCrossCacheBaset CrossRealmMsgtSendMsgToCrossServert ShareDefinetClientServerMsg_CreateFuncTeam(tindext
clientDatattickRRR    RRRRRRRR RtdataMsg((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytOnCreateFuncTeamKs*                                  +cCstjƒj|ƒ}|jƒ}|j}|j}|j}|j}|j}    |j    }
|j
} t ||ƒrsdSt |ƒ} | s‰dSi|d6|d6|d6|d6|    d6|
d6| d6} i| d6|d    6| d
6t j|ƒd 6}tjtj|ƒdS( NtteamIDR    RRRRRR RRR(RRRRtTeamIDRRRR R!R"R RR#R$R%R&R'tClientServerMsg_ChangeFuncTeam(R)R*R+RRR.R    RRRRRR RR,((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytOnChangeFuncTeamrs(                              +c CsØtjƒj|ƒ}|jƒ}|j}|j}|j}|j}|tkrUdSt    ||ƒrhdSt
|ƒ}    |    s~dSi|    d6|d6|d6|d6|d6|d6}
t j |ƒ|
d<t jtj|
ƒdS(NR RR.R    topTypetopDataR(RRRRR/RtOPTypetOPDatatDef_FuncTeamOPListR RR#R$R%R&R'tClientServerMsg_FuncTeamMemOP( R)R*R+RRR.R    R2R3R R,((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytOnFuncTeamMemOP•s$                   cCsåtjƒj|ƒ}|jƒ}|j}|j}|j}|j}|j}    |j    }
|j
} t |ƒ} | svdSi    | d6|d6|d6|d6|d6|d6|    d6|
d6| d    6} t j |ƒ| d
<tjtj| ƒdS( NR RR    Rt
startIndextqueryCntt    haveSpacet idLimitTypet    searchMsgR(RRRRRRt
StartIndextQueryCntt    HaveSpacet IDLimitTypet    SearchMsgRR#R$R%R&R'tClientServerMsg_QueryFuncTeam(R)R*R+RRR    RR9R:R;R<R=R R,((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytOnQueryFuncTeam»s$                              
cCs…tjƒj|ƒ}|jƒ}|j}t|ƒ}|s@dSi|d6|d6|d6}tj|ƒ|d<tj    t
j |ƒdS(NR RR    R( RRRRRRR#R$R%R&R'RC(R)R*R+RRR    R R,((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytOnQueryPlayerFuncTeamØs      c
Cs,|d}|d}|d}|d}|jddƒ}|jdgƒ}|jdd    ƒ}tjƒj|ƒ}|r•|r•tj||ƒq•n|d
krõ|rñ|rÀt||gƒqñtjƒ}    ||    _    d|    _
t j ||    ƒndS|s|d krt ||ƒndSt||ƒdS( NtinfoTypeRR    RR.itsyncPlayerIDListt
notifyMarkttQueryPlayerFuncTeamt FuncTeamMemOP(tgetRRtFindPlayerByIDt PlayerControlt
NotifyCodetSync_FuncTeamRefreshtChPyNetSendPackttagGCQueryPlayerFuncTeamRetRR/t NetPackCommont SendFakePacktSync_FuncTeamDissolve(
tmsgDataRFRR    RR.RGRHRt
clientPack((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytCrossServerMsg_FuncTeamInfoæs4
 
 
 
            cCs8|d}x'|jƒD]\}}t||ƒqWdS(Nt delTeamDict(titemsRU(RVRYR.RG((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytCrossServerMsg_FuncTeamDel    s
c CsJ|d}|d}|d}|d}tjƒj|ƒ}|sGdStjƒ}|d|_|d|_|d|_|d|_|d    |_    |d
|_
|d |_ t |j ƒ|_ ||_xX|D]P}tjƒ}|d |_|d |_|d|_|d|_t |jƒ|_|d|_|d|_|dtj|_|dtj|_|d|_|d|_|d|_|d|_g}    x/|dD]#}
tjƒ} |
jddƒ| _ |
d| _!|
jddƒ| _"t | j"ƒ| _|
jddƒ| _#|
jddƒ| _$|
jddƒ| _%|
jd dƒ| _&|
jd!dƒ| _'|
jd"dƒtj| _(|
jd"dƒtj| _)|
d| _|
d| _|    j*| ƒq¯W|    |_+t |j+ƒ|_,|d#|_-t |j-ƒ|_.|j/j*|ƒqÐWt |j/ƒ|_0t1j2||ƒdS($Nt    queryInfot    loopIndext teamInfoListRR    RR9R:R;R<R=R/t
CreateTimeRRt    CaptainIDRRR!R"tValue1tValue2t
MemberListtServerIDitPlayerIDtNameRItLVtJobtRealmLVtFacetFacePict
FightPowert ApplyIDList(3RRRMRQttagGCFuncTeamListRRR>R?R@RARBtlent    SearchLent    LoopIndext tagGCFuncTeamR/R_RtNameLenR`RtChConfigtDef_PerPointValueRR R!R"RaRbttagGCFuncTeamMemRLRdReRfRgRhRiRjRkRlt FightPowerExtappendRct MemberCountRmt
ApplyCounttTeamListt    TeamCountRSRT( RVR\R]R^RRRWRtteamt
memberListt
memberInfotmem((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytCrossServerMsg_FuncTeamListsr
 
 
 
                                 cCs
| s| rdSg}tjƒ}xI|D]A}|j|ƒ}|dks+|jƒ r_q+n|j|ƒq+W|szdStjƒ}|d|_|d|_    |d|_
|d|_ |d|_ t |j ƒ|_|d|_|d|_|dtj|_|dtj|_|d    |_|d
|_|d |_|d |_|d }|d}g}    x@|D]8}
tjƒ} |
jddƒ| _|
d| _|
jddƒ| _t | jƒ| _|
jddƒ| _|
jddƒ| _|
jddƒ| _ |
jddƒ| _!|
jddƒ| _"|
jddƒtj| _#|
jddƒtj| _$|
jddƒ| _%|
d | _|
d | _|    j| ƒqpWgg} } xê|D]â}tj&ƒ}|d|_|d|_|d|_t |jƒ|_|d|_|d|_|d|_ |jddƒ|_!|jddƒ|_"|dtj|_#|dtj|_$| j|ƒ| j|dƒqÀW|    |_'t |j'ƒ|_(| |_)| |_*t |j*ƒ|_+x|D]}t,j-||ƒqìWdS(NR/R_RRRR`RRR!R"RaRbRct    ApplyListRdiReRfRIRgRhRiRjRkRlt OfflineValue(.RRRMtNonet    GetInitOKRxRQttagGCFuncTeamRefreshR/R_RRRRoRsR`RRtRuRR R!R"RaRbttagGCFuncTeamRefreshMemRLRdReRfRgRhRiRjRkRlRwRƒttagGCFuncTeamRefreshApplyRcRyRmt ApplyInfoListRzRSRT(RRGtsyncPlayerListt playerManagerRtplayerRWtmemberInfoListt applyInfoListR~RR€t    applyListt applyIDListt    applyInfotapplyP((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRPUsŒ              
 
                            cCs´| s| rdSg}tjƒ}xI|D]A}|j|ƒ}|dks+|jƒ r_q+n|j|ƒq+W|szdStjƒ}||_x|D]}t    j
||ƒq–WdS(N( RRRMR„R…RxRQttagGCFuncTeamDissolveR/RSRT(R.RGRŠR‹RRŒRW((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRU¦s         cCsd}g}||fS(Ni((R    t serverGroupIDt
funcZoneIDtserverGroupList((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytGetFuncTeamMapIDZoneInfo¾scCs©|d}|d}|d}|d}|d}t||ƒ}|sKdS|\}}    ||kr„tjd|||f|ƒdSt|||ƒ\}
} |tjkr®nd} d} i}|
rútj||ƒt    j
ƒ}|j |||ƒ} n| r0| j ƒ} | j tƒ}|tjkr?q?n| s?d} n|g}|g}id    d
6|d6|d6|d6|d6| d 6|d 6| d 6}tjtj||ƒdS(NR RRRR    s:¹¦ÄܶÓÎé·ÖÇø²»Ò»Ö£¬ÎÞ·¨´´½¨! funcMapID=%s,zoneID=%s != %sit CreatTeamFailtCreateFuncTeamRFR.RGRH(R—RRtCheckCanCreateFuncTeamRttDef_FBMapID_CrossBattlefieldR„R#tUpdCrossCacheBaset    DBDataMgrtGetFuncTeamMgrR™t    GetTeamIDt GetSyncDicttTrueR%tSendMsgToClientServerR'RX(R”RVR RRRR    tzoneInfoR•t_t    canCreateRHtnewTeamR.t newTeamInfot funcTeamMgrR–RGtsendMsg((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyR(ÆsF
 
 
 
 
                ic Cs|d}tjd|ƒ}|s,tdfS|jƒ}|r‡|d}| sat|ƒdkrktdfStj|ƒr‡tdfSntjƒ}|j    ||ƒ}    xU|    D]M}
|r×||
j
ƒkr×tdfSn|r¬|
j |ƒrùtd    fSq¬q¬Wt dfS(
NR    RRIRi!tTeamNameLenErrortTeamNameUnallowt TeamNameExisttAlreadyHaveTeam( RRRt GetNeedNameRot    DirtyListtIsWordForbiddent PyDataManagertGetDBPyFuncTeamManagertGetFuncTeamListt GetTeamNamet GetMemberByIDR¡( RRR t checkInTeamR    R
tneedNameRR¨tteamListtfuncTeam((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRšús*
 
 
 
    cCs|d}|d}|d}|jdiƒ}|d}|d}t||ƒ}|s]dS|\}    }
||    kr–tjd|||    f|ƒdStjƒ} | j|ƒ} | sÕtjd||f|ƒdS|| jƒkrtjd    ||| jƒf|ƒdS|r't    j
||ƒn| j |d
|d t j ƒ| j|d ƒ| j|d ƒ| j|dƒ| jƒs‰n| jƒ}| jtƒ}| jƒ} idd6|d6|d6|d6|d6|d6| d6}tjtj||
ƒdS(NR RRRR.R    s:¹¦ÄܶÓÎé·ÖÇø²»Ò»Ö£¬ÎÞ·¨ÐÞ¸Ä! funcMapID=%s,zoneID=%s != %ss&¹¦ÄܶÓÎé²»´æÔÚ! funcMapID=%s,teamID=%ss=·Ç¹¦ÄܶÓÎé¶Ó³¤£¬ÎÞ·¨ÐÞ¸Ä! funcMapID=%s,teamID=%s,CaptainID=%sRRRRRtChangeFuncTeamRFRG(RLR—RRR±R²t GetFuncTeamt GetCaptainIDtDebugLogR#RœtSetMinFightPowerRtRutSetMinLVt SetServerOnlyt SetNeedCheckt GetNeedCheckRŸR R¡tGetSyncPlayerIDListR%R¢R'RX(R”RVR RRRR.R    R£R•R–R¨R¹RGR©((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyR0sH
 
 
 
 
   #    c    CsÛ|d}|d}|d}|d}|d}|d}|jdiƒ}t||ƒ}    |    sgdS|    \}
} ||
kr tjd|||
f|ƒdS|r¹tj||ƒnt} i} i}tjƒ}|j    |ƒ}|stjd    |||f|ƒd
| d <|g}n|t
t t t tgkry||jƒkrytjd ||||jƒf|ƒdSn|jƒ}|tkrÑt|||||||| ƒ} ||kr=|j|ƒq=nl|tkrt|||||||| ƒ} ||kr=|j|ƒq=n |t
krMt|||||||| ƒ} nð|t kr}t|||||||| ƒ} nÀ|tkr­t|||||||| ƒ} n|t krÝt|||||||| ƒ} n`|t kr t|||||||| ƒ} n0|tkr=t|||||||| ƒ} n| rO| rOdS|j    |ƒ}|rv|jtƒ}nid d6|d6|d6|d6|d6|d6|d6|d6}|j| ƒt j!t"j#|| ƒdS(NR RR.R    R2R3Rs:¹¦ÄܶÓÎé·ÖÇø²»Ò»Ö£¬ÎÞ·¨²Ù×÷! funcMapID=%s,zoneID=%s != %ss0¹¦ÄܶÓÎé²»´æÔÚ! funcMapID=%s,teamID=%s,opType=%st TeamNotExistRHs;½ö¶Ó³¤¿É²Ù×÷! funcMapID=%s,teamID=%s,opType=%s,CaptainID=%sRKRFRRG($RLR—RRR#RœRR±R²R»tDef_FuncTeamOP_JoinAgreetDef_FuncTeamOP_JoinRefusetDef_FuncTeamOP_KicktDef_FuncTeamOP_TransfertDef_FuncTeamOP_DissolveR¼RÃtDef_FuncTeamOP_JoinApplyt__DoFuncTeamOP_JoinApplyRxtDef_FuncTeamOP_JoinCancelt__DoFuncTeamOP_JoinCancelt__DoFuncTeamOP_JoinAgreet__DoFuncTeamOP_JoinRefusetDef_FuncTeamOP_Exitt__DoFuncTeamOP_Exitt__DoFuncTeamOP_Kickt__DoFuncTeamOP_Transfert__DoFuncTeamOP_DissolveR R¡tupdateR%R¢R'RX(R”RVR RR.R    R2R3RR£R•R–tisOKtsyncDictRR¨R¹RGR©((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyR7Ns|
 
 
 
 
 
 
        !  !  $ $ $ $ $ $ cCs¯tjƒ}|j|ƒ}|s6tjd|ƒdS|jƒ}|jƒ}|jƒ}|j|ƒ|j    ƒs«i|d6|d6i||6d6}t
j t j |ƒn|S(Nsɾ³ý¹¦ÄܶÓÎéʱ²»´æÔÚ! teamID=%sR R    RY(R±R²R»RRt    GetZoneIDt GetFuncMapIDRÃtDelTeamt IsLockBatchR%R¢R'R[(R.R¨R¹R R    RGR©((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRÚ¬s      "cCsItjd|ƒtjƒ}|jƒg}xò|jjƒD]á\}}|\}}||krgq=ni}xS|ddd…D]>}|jƒ}    t|    ƒ}
|
r²|
||    <n|j    |    ƒqWt
j ||ƒ} | rç| j ƒng} i|d6|d6|d6} t jtj| | ƒq=W|jƒt|ƒ}|j|ƒ|S(NsÇå¿Õ¹¦ÄܶÓÎé! delFuncMapID=%siÿÿÿÿR R    RY(RtLogR±R²t    LockBatchtfuncTeamListDictRZRŸRÚRxtCrossRealmPlayertGetCrossZoneIpyDataByZoneIDtGetServerGroupIDListR%R¢R'R[t UnLockBatchRotSyncMapFuncTeamMemIDInfo(t delFuncMapIDR¨t delTeamIDListtkeyR¸R R    RYR¹R.RGt zoneIpyDatatserverGroupIDListR©tdelCount((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyt DelTeamByFunc¾s. 
 
  cCsXd}tjƒ}x?t|jƒƒD]+}|j|ƒ}|t|jƒƒ7}q%W|S(Ni(RtIPY_DatatrangetGetFuncTeamSetCounttGetFuncTeamSetByIndexRêRÙ(Rét
ipyDataMgrR)R
((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyt
DelTealAllÚs  cCs“tjƒ}|j|ƒ}|s%dS|jƒ}|jtƒ}|jƒ}idd6dd6|d6|d6|d6|d6}tjt    j
|ƒdS(    NRIRFiRR    RR.RG( R±R²R»RÙR R¡RÃR%R¢R'RX(R.R¨R¹R    RRGR©((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pytSendFuncTeamToClientServerâs   cCstjƒ}|j||ƒ}    |    rBtjd||    f|ƒdS|j|ƒ}
|
s[dS|
j|ƒrˆtjd||f|ƒdS||
jƒkr¸tjd||f|ƒdStj    d|ƒ} | sÔdS| j
ƒ} | j ƒ} | j ƒ}t |
jƒƒ| kr;tjd||| f|ƒd|d<dS| r„t |
jƒƒ| kr„tjd||| f|ƒd    |d<dS|
jƒ}|rÙ||jd
d ƒkrÙtjd |||f|ƒd |d<dS|
jƒ}|r.||jdd ƒkr.tjd|||f|ƒd|d<dS|
jƒ}|rCn|ràg}|j||ƒ}x6|D].}||jƒkrh|j|jƒƒqhqhWt |ƒ|kràtjd|t |ƒ|f|ƒd|d<dSn|
jƒrd|d<|
j|ƒn |
j|ƒtS(Ns:ÒѾ­Óй¦ÄܶÓÎéÁË£¬²»ÄÜÔÙÉêÇë! funcMapID=%s,playerTeamID=%ss&ÒÑÔÚ¹¦ÄܶÓÎéÖÐ! funcMapID=%s,teamID=%ss.ÒÑÔÚ¹¦ÄܶÓÎéÉêÇëÁбíÖÐ! funcMapID=%s,teamID=%sRs5¹¦ÄܶÓÎé³ÉÔ±ÒÑÂú! funcMapID=%s,teamID=%s,memberMax=%st TeamMemFullRHs8¹¦ÄܶÓÎéÉêÇë¶ÓÁÐÒÑÂú! funcMapID=%s,teamID=%s,applyMax=%st TeamApplyFullRgis?¹¦ÄܶÓÎé×îµÍµÈ¼¶ÏÞÖÆ£¬ÎÞ·¨ÉêÇë! funcMapID=%s,teamID=%s,minLV=%st TeamLVLimitRlsG¹¦ÄܶÓÎé×îµÍÕ½Á¦ÏÞÖÆ£¬ÎÞ·¨ÉêÇë! funcMapID=%s,teamID=%s,minFightPower=%stTeamFightPowerLimitsDÍæ¼ÒÉêÇë¼ÓÈë¶ÓÎéÊýÒÑÂú£¬ÎÞ·¨ÉêÇë! funcMapID=%s,applyTeamCount=%s, %stTeamReqJoinApplyFulltTeamReqJoinApplyOK(R±R²tGetPlayerTeamIDRRÜR»RµtGetApplyIDListRRt GetMemberMaxt GetApplyMaxtGetReqApplyMaxRot GetMemberListR½tGetMinLVRLtGetMinFightPowert GetServerOnlyR³RxRŸRÂt
AddApplyIDt AddTeamMemberR¡(R R    R.RR2R3RR×R¨t playerTeamIDR¹R
t    memberMaxtapplyMaxt reqApplyMaxRRt minServerOnlytapplyTeamIDListR¸tfTeam((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRËñsr    
 
 
 
      
 
 c
Cs6tjƒ}|j|ƒ}    |    s%dS|    j|ƒtS(N(R±R²R»t
DelApplyIDR¡(
R R    R.RR2R3RR×R¨R¹((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRÍ=s   cCs“tjd|ƒ}|sdStjƒ}    |    j|ƒ}
|
sAdS|
jƒ} | sWdS|jƒ} g} |}|ró|| kr¥tjd|||| f|ƒdS|    j    ||ƒ}|rçtj
d|||f|ƒd|d<qý|g} n
g| } x| D]‡}t |
j ƒƒ| krCtj
d||| f|ƒPn|    j    ||ƒ}|r~tj
d|||f|ƒqn|
j |ƒqWtS(NRs[Ä¿±êÍæ¼Ò²»ÔÚ¹¦ÄܶÓÎéÉêÇëÁбíÖÐ! funcMapID=%s,teamID=%s,tagPlayerID=%s not in applyIDList=%ssJÄ¿±êÍæ¼ÒÒѼÓÈëÆäËû¹¦ÄܶÓÎé! funcMapID=%s,tagPlayerID=%s,tagPlayerTeamID=%stPlayerInOtherTeamRHs5¹¦ÄܶÓÎé³ÉÔ±ÒÑÂú! funcMapID=%s,teamID=%s,memberMax=%ssKÄ¿±êÍæ¼ÒÒѼÓÈëÆäËû¹¦ÄܶÓÎé! funcMapID=%s,joinPlayerID=%s,tagPlayerTeamID=%s(RRR±R²R»RùRúRRÜRøR½RoRýRR¡(R R    R.RR2R3RR×R
R¨R¹RRtjoinPlayerIDListt tagPlayerIDttagPlayerTeamIDt joinPlayerID((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRÎIsH              
     c CsOtjƒ}|j|ƒ}    |    s%dS|}
|
rA|    j|
ƒn
|    jƒtS(N(R±R²R»R
t DelApplyIDAllR¡( R R    R.RR2R3RR×R¨R¹R ((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRÏzs 
c
    Csgtjƒ}|j|ƒ}    |    s%dS||    jƒkrVt||||||||ƒS|    j|ƒtS(N(R±R²R»R¼RÔt DelTeamMemberR¡(
R R    R.RR2R3RR×R¨R¹((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRыs  c Cs„tjƒ}|j|ƒ}    |    s%dS|}
|
sItjd||ƒdS|
|    jƒkrstjd||ƒdS|    j|
ƒtS(Ns!ÐèÖ¸¶¨Ìß³ö¶ÓÎéÄ¿±ê¶ÓÔ±! opData=%ss²»ÄÜÌß¶Ó³¤! opData=%s(R±R²R»RR½R¼RR¡( R R    R.RR2R3RR×R¨R¹R ((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRқs  c Csxtjƒ}|j|ƒ}    |    s%dS|    jƒ}
|} | |
krgtjd||| |
f|ƒdS|    j| ƒtS(NsOÄ¿±êÍæ¼Ò²»ÊǶÓÔ±£¬ÎÞ·¨×ªÈöӳ¤! funcMapID=%s,teamID=%s,tagPlayerID=%s not in %s(R±R²R»tGetMemberIDListRRÜt SetCaptainIDR¡( R R    R.RR2R3RR×R¨R¹t memberIDListR ((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRÓ°s        c    Cstjƒ}|j|ƒtS(N(R±R²RÚR¡(    R R    R.RR2R3RR×R¨((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRÔÃs  c#CsØ|d}|d}|d}|jdiƒ}t||ƒ}|sIdS|\}}||kr‚tjd|||f|ƒdS|r›tj||ƒnd|krõ|g}    |g}
tjƒ} | j||ƒ} xŽ| D]†} || j    ƒkrüqÞn| j
ƒ}| j t ƒ}idd6|d6|d6|d6|d    6|d
6|    d 6}t jtj||
ƒqÞW| j||ƒ}| j|ƒ} | rž| j t ƒni}idd6|d6|d6|d6|d    6|d
6|    d 6}t jtj||
ƒdS|d }|d}|d }|d}|d}|d}|dkrFd}ntd|ƒ}tjd|ƒ}|sqdS|jƒ}idd6dd6dd6}|}g}tjƒ} | j||ƒ}xÕt|t|ƒƒD]¾}|d}||} |ro|| jƒks"|t| j
ƒƒkr>|jd| j tƒƒq€|| jƒkrØ|j| j tƒƒq€qØn|dkr“|| jƒkr“qØn|r·t| jƒƒ|kr·qØn||krj||}|j|dƒ}| j ƒ} tj!tj"| ƒƒ}!|!j|dƒ}"|dkrNtj#t|ƒƒ}tj#t|"ƒƒ}"n| sØ||"krjqØqjn|j| j tƒƒt|ƒ|krØPqØqØW|g}
i|d6|d6|d6}t jtj$||
ƒdS(NR RR    Rs:¹¦ÄܶÓÎé·ÖÇø²»Ò»Ö£¬ÎÞ·¨²éѯ! funcMapID=%s,zoneID=%s != %sR9RJRFRR.RGRR:R;R<R=iiidRtFamilyIDit ServerGroupIDitAccIDiR^R]R\(%RLR—RRR#RœR±R²R³RùRŸR R¡R%R¢R'RXRøR»tminRRRútxrangeRoR´tstrtinsertRRxt GetFuncMapExRýR¼tGetCachePropDataDictt FindViewCachetGetAccIDServerIDR(#R”RVR RR    RR£R•R¤RGR–R¨t funcTeamListR¹R.RR©RR9R:R;R<R=R
RtidLimitTypeDictR]R^R¸R)t limitAttrNamet
curIDValuet    captainIDt    cacheDictt teamIDValue((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyRCÉs¤
 
 
              
 
 
 
 
 
       
 
* 
          i    (4RR'RRßR#RQRNRSRR¯RtRìR6RÊRÌRÅRÆRÐRÇRÈRÉR RR-R1R8RDRERXR[RRPRUR—R(R¡RšR0R7RÚRêRðRñRËRÍRÎRÏRÑRÒRÓRÔRC(((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFuncTeam.pyt<module>sR           +             '    #    &            #    
    B    Q            4#    1    ^                    L         1