cjc
2026-01-08 83ecbbfeddfc13d6a32cc97483bf5b78377cf254
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
 C9ic@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    ƒtj|d
ƒdS|d }|d krÐt||ƒnì|d krìt||ƒnÐ|dkrt||ƒn´|dkr$t||ƒn˜|dkr@t||ƒn||dkr‘tj|t    |ƒdkrq|dnd ƒ}tj|d|ƒn+|d kr¼|t
j kr¼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 ...]s!²âÊÔÕ½¶·: TurnFight fp [playerID]itatktbtptftfpis GMTestPVP: %s( t    GameWorldt DebugAnswert __doSetAttrt __doKillObjt __doAddBufft __printInfot __doFightTestt
TurnAttackt    GMTestPVPtlentChConfigtDef_FBMapID_Maint__reqTurnFight(t    curPlayertmsgListtvaluetcostTime((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pytOnExec"s:
      .cCsÔ|d}t|ƒdkr&|dnd}t|ƒdkrH|dnd}tjƒ}||_||_|sxdnd|_||_|jƒ}tj    ƒj
ƒ}t j |||ƒsÐtj |dƒndS(NiiisÇëÇóʧ°Ü£¬Ïê¼û·þÎñÆ÷ÈÕÖ¾£¡(Rt ChPyNetPackttagCMTurnFighttMapIDt
FuncLineIDtTagTypetTagIDtGetIndexRt GetGameWorldtGetTickR t OnTurnFightR(RRtmapIDt
funcLineIDt tagPlayerIDt
clientDatatindexttick((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyRBs
""              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 FactionListRt
AttrIDListRRR tGetMainFightMgrt    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.pyRQsP""""          )"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(RRR R*R+R,tChPyNetSendPackttagSCTurnFightReportSigntSignR-R.R/R0R1R3R4R5R6t SetObjKilledtcheckOverByKilledt NetPackCommont SendFakePack( RRR?RFRBR+t
clientPackRCRDRERGRHRI((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(RRR R*R+R,R-R.R/R0R1R3R4R5tTurnBufftDoAddBuffBySkillIDt    GetBuffID(RRR?RGt ownerFactiont ownerPosNumt skillIDListRBR+RCRDRERHRIt 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(trangeR R*R+R,RRR-R.R/R0R1R3R4R6R5R9R:tGetAtktGetDefR<tGetBatAttrDictR2tsorttGetSkillManagertGetSkillIDListtGetBuffManagert GetBuffCounttGetBuffByIndext    CodeToGbkt GetSkillDatat GetSkillNameRUt
GetSkillIDt GetRemainTimetGetLayert    GetValue1t    GetValue2t    GetValue3t
GetOwnerIDtGetHaloObjIDList(RRR?RGRARFRBR+RCRDRERHRIRJtattrStrtattrDictt
attrIDListR=R>tskillMgrRXtbuffMgrR&tbufftbuffName((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR Õs^""         ,&/  
 
     'DcCsCt|ƒdkr|dnd}|d}tj|||ƒdS(Nii(RR t GMTestFight(RRt
isAllSkillt
heroIDList((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR
s"
(RRRRKRPR R-RSR(RRRR    R
R R (((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyt<module>s                      1    %    .    5