cjc
2025-12-03 98fbd8a5d3139d0dfe7d130bd4eb46bd89a135eb
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
'J)ic@s¯ddlZddlZddlZddlZddlZddlZddlZddlZddgZd„Z    d„Z
d„Z d„Z d„Z d    „Zd
„ZdS( iÿÿÿÿNiicCs_|sštj|dƒtj|dƒtj|dƒtj|dƒtj|dƒtj|dƒtj|dƒtj|dƒtj|d    ƒdS|d
}|d krÀt||ƒn›|d krÜt||ƒn|d krøt||ƒnc|dkrt||ƒnG|dkr0t||ƒn+|d
kr[|tjkr[t    ||ƒndS(Ns)·¢ÆðÕ½¶·: TurnFight mapID [lineID Íæ¼ÒID]s,ÉèÖÃÊôÐÔ: TurnFight a ÊôÐÔID Öµ [ÕóÓª Î»ÖÃ] s&»÷ɱĿ±ê: TurnFight k ÕóÓª [λÖà...] sBÌí¼Óbuff: TurnFight b ÕóÓª  Î»Öàbuff¹éÊôÕóÓª Î»Ö༼ÄÜID [ID ...]s"Êä³öÃ÷ϸ: TurnFight p [ÕóÓª Î»ÖÃ] sÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßsλÖ㺠1~6ºÅλs$ÊôÐÔID: 6-¹¥,7-·À,8-HPMax,9-HP,12-Å­s-²âÊÔÕ½¶·: TurnFight f ÊÇ·ñÂú¼¼ÄÜ [Î佫ID ...]itatktbtptf(
t    GameWorldt DebugAnswert __doSetAttrt __doKillObjt __doAddBufft __printInfot __doFightTesttChConfigtDef_FBMapID_Maint__reqTurnFight(t    curPlayertmsgListtvalue((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pytOnExec"s2
     cCsÔ|d}t|ƒdkr&|dnd}t|ƒdkrH|dnd}tjƒ}||_||_|sxdnd|_||_|jƒ}tj    ƒj
ƒ}t j |||ƒsÐtj |dƒndS(NiiisÇëÇóʧ°Ü£¬Ïê¼û·þÎñÆ÷ÈÕÖ¾£¡(tlent ChPyNetPackttagCMTurnFighttMapIDt
FuncLineIDtTagTypetTagIDtGetIndexRt GetGameWorldtGetTickt
TurnAttackt OnTurnFightR(RRtmapIDt
funcLineIDt tagPlayerIDt
clientDatatindexttick((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR>s
""              cCsÀt|ƒdkr|dnd}t|ƒdkr>|dnd}t|ƒdkr`|dnd}t|ƒdkr‚|dnd}|r—|gnt}|tjkrÄtj|d|ƒdStj|ƒ}|j}|j    ƒsütj|dƒdStj|dƒt
j ƒ}    x¡|D]™}|tkrGtj|d    ƒqn|j |ƒ}
|
j dƒ} |rt|gn | jjƒ} x2| D]*} | jj| ƒ}|    j|ƒ}|s×tj|d
|| fƒqŠn|jƒstj|d || fƒqŠntj|ƒ}tj|d |ƒ|j||ƒ|tjkrntj|d |jƒ|jƒfƒqŠ|tjkrštj|d|jƒƒqŠtj|d||fƒqŠWqWdS(Niiiiis²»´æÔÚ¸ÃÊôÐÔID:%ss Ö÷Ïß·ÇÕ½¶·ÖÐs----- ÉèÖÃÊôÐÔ -----sÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßs¶ÔÏó²»´æÔÚ:ÕóÓª:%s,λÖÃ:%ss¶ÔÏóÒÑÕóÍö:ÕóÓª:%s,λÖÃ:%ss%ssÉèÖÃÉúÃü:%s/%ss ÉèÖÃÅ­Æø:%ssÉèÖÃÊôÐÔID:%s,V=%s(Rt FactionListR t
AttrIDListRRRtGetMainFightMgrt    turnFightt    isInFightt    BattleObjt GetBatObjMgrt getBatFactiont getBatlineupt posObjIDDicttkeystgett    getBatObjtIsAlivet
GetObjNamet GMSetBatAttrt    AttrID_HPtGetHPtGetMaxHPt    AttrID_XPtGetXP(RRtattrIDt    attrValuetfactiontpNumt factionListt mainFightMgrR(t    batObjMgrt
batFactiont    batLineupt
posNumListtposNumtobjIDtbatObjtobjName((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyRMsP""""          )"c Cs§t|ƒdkr|dnd}|d}|tkrLtj|dƒdStj|ƒ}|j}|jƒs„tj|dƒdStj    ƒ}d|_
t j ƒ}|j |ƒ}|jdƒ}    xº|D]²}
|    jj|
ƒ} | sîqÊn|j| ƒ} | s#tj|d||
fƒqÊn| jƒsOtj|d||
fƒqÊntj|dtj| ƒƒtj|| ƒqÊW|jƒd|_
tj||ƒdS(    NiisÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßs Ö÷Ïß·ÇÕ½¶·ÖÐis¶ÔÏó²»´æÔÚ:ÕóÓª:%s,λÖÃ:%ss¶ÔÏóÒÑÕóÍö:ÕóÓª:%s,λÖÃ:%ss»÷ɱ: %s(RR%RRRR'R(R)tChPyNetSendPackttagSCTurnFightReportSigntSignR*R+R,R-R.R0R1R2R3t SetObjKilledtcheckOverByKilledt NetPackCommont SendFakePack( RRR<RCR?R(t
clientPackR@RARBRDRERF((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR~s@"
              
    cCszt|ƒdkr|dnd}t|ƒdkr>|dnd}t|ƒdkr`|dn|}t|ƒdkr‚|dn|}|d}|tkr²tj|dƒdStj|ƒ}|j}|jƒsêtj|dƒdStj    ƒ}    |j
|ƒ}
|
j dƒ} | j j |ƒ} |    j| ƒ} | sYtj|d||fƒdS| jƒsƒtj|d    ||fƒdS|j
|ƒ}|j dƒ}|j j |ƒ}|    j|ƒ}|sætj|d||fƒdS|jƒstj|d    ||fƒdSxc|D][}tj|| ||ƒ}|r^tj|d
||jƒfƒqtj|d |ƒqWdS( NiiiiisÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßs Ö÷Ïß·ÇÕ½¶·ÖÐs¶ÔÏó²»´æÔÚ:ÕóÓª:%s,λÖÃ:%ss¶ÔÏóÒÑÕóÍö:ÕóÓª:%s,λÖÃ:%ss!Ìí¼Óbuff³É¹¦!skillID=%s,buffID=%ssÌí¼Óbuffʧ°Ü!skillID=%s(RR%RRRR'R(R)R*R+R,R-R.R0R1R2tTurnBufftDoAddBuffBySkillIDt    GetBuffID(RRR<RDt ownerFactiont ownerPosNumt skillIDListR?R(R@RARBRERFt ownerLineuptownerIDt    buffOwnertskillIDtaddBuff((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR    £sP""""
          #cCsvt|ƒdkr|dnd}t|ƒdkr>|dnd}|rS|gnt}|rh|gn tddƒ}tj|ƒ}|j}|jƒs¯tj|dƒdSt    j
ƒ}x´|D]¬}|tkrêtj|dƒqÂntj|d|ƒ|j |ƒ}    |    j dƒ}
xO|D]G}|
j j|ƒ} | sGq#n|j| ƒ} tj| ƒ} tj|d| | jƒr†d    nd
fƒtj|d | jƒ| jƒfƒtj|d | jƒ| jƒ| jƒfƒd    }| jƒ}|jƒ}|jƒx5|D]-}||}|r|d ||f7}qqWtj|d|ƒ| jƒ}|jƒ}tj|dt|ƒ|fƒ| jƒ}tj|d|jƒƒx¯t|jƒƒD]›}|j|ƒ}tj|j ƒj!ƒƒ}tj|d|j"ƒ||j#ƒ|j$ƒ|j%ƒ|j&ƒ|j'ƒ|j(ƒg|j)ƒ|j*ƒfƒqËWq#WqÂWdS(Niiiis Ö÷Ïß·ÇÕ½¶·ÖÐsÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßs ---------- ¡¾ÕóÓª%s¡¿ ----------s--- %s%sts     [±»»÷ɱ]sHP:%s/%ss¹¥:%s,·À:%s,Å­:%ss%s=%s£»sÊôÐÔ:%ss ¼¼ÄÜ: %s,%ssBuff: %ss/ID:%s,%s(%s),»ØºÏ:%s,²ã:%s,V:%s,À´Ô´:%s,¹â»·:%si(+RR%trangeRR'R(R)RRR*R+R,R-R.R0R1R3R2R6R7tGetAtktGetDefR9tGetBatAttrDictR/tsorttGetSkillManagertGetSkillIDListtGetBuffManagert GetBuffCounttGetBuffByIndext    CodeToGbkt GetSkillDatat GetSkillNameRRt
GetSkillIDt GetRemainTimetGetLayert    GetValue1t    GetValue2t    GetValue3t
GetOwnerIDtGetHaloObjIDList(RRR<RDR>RCR?R(R@RARBRERFRGtattrStrtattrDictt
attrIDListR:R;tskillMgrRUtbuffMgrR#tbufftbuffName((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR
Ñs^""         ,&/  
 
     'DcCsCt|ƒdkr|dnd}|d}tj|||ƒdS(Nii(RRt GMTestFight(RRt
isAllSkillt
heroIDList((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR s"
(R RRRHRMRR*RPR%RRRRR    R
R (((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyt<module>s                     1    %    .    5