hwj35
2026-02-02 97598fd05067a387bb6dfd30b808cda3c64a1b8f
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
î+|ic@s¸ddlZddlZddlZddlZddlZddlZddlZddlZddgZd„Z    d„Z
d„Z d„Z d„Z d    „Zd
„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ƒ} | jƒ} |r€|gn    | jƒ} x/| D]'}| j|ƒ}|    j|ƒ}|sÝtj|d
||fƒq“n|jƒs    tj|d ||fƒq“ntj|ƒ}tj|d |ƒ|j||ƒ|tjkrttj|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 getBatlineuptgetPosObjIDDicttkeystgett    getBatObjtIsAlivet
GetObjNamet GMSetBatAttrt    AttrID_HPtGetHPtGetMaxHPt    AttrID_XPtGetXP(RRtattrIDt    attrValuetfactiontpNumt factionListt mainFightMgrR+t    batObjMgrt
batFactiont    batLineupt posObjIDDictt
posNumListtposNumtobjIDtbatObjtobjName((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyRQsR""""           )"cCs°t|ƒdkr|dnd}|d}|tkrLtj|dƒdStj|ƒ}|j}|jƒs„tj|dƒdStj    ƒ}d|_
t j ƒ}|j |ƒ}|jdƒ}    |    jƒ}
x·|D]¯} |
j| ƒ} | s÷qÖn|j| ƒ} | s,tj|d|| fƒqÖn| jƒsXtj|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?RGRBR+t
clientPackRCRDRERFRHRIRJ((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR    ƒsB"
               
    cCs€t|ƒ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| ƒ} | s\tj|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|| ||ƒ}|rdtj|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?RHt ownerFactiont ownerPosNumt skillIDListRBR+RCRDRERIRJt ownerLineuptownerIDt    buffOwnertskillIDtaddBuff((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR
©sP""""
          #cCs¿t|ƒ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ƒ}
|
j ƒ} | rQd| jƒ} t|| | ƒn|
jƒ} xW|D]O}| j|ƒ}|s…qdn|j|ƒ}tj|ƒ} t||| ƒqdWqÂWdS(
Niiiis Ö÷Ïß·ÇÕ½¶·ÖÐsÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßs ---------- ¡¾ÕóÓª%s¡¿ ----------s
Ãü¸ñ ID:%si(RR(trangeR R*R+R,RRR-R.R/R0t getMinggeObjtGetIDt
__printObjR1R3R4R6(RRR?RHRARGRBR+RCRDREtmgObjRKRFRIRJ((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR ×s<""           c Cs    tj|d||jƒr!dndfƒtj|d|jƒ|jƒfƒtj|d|jƒ|jƒ|jƒfƒd}|jƒ}|j    ƒ}|j
ƒx5|D]-}||}|r°|d||f7}q°q°Wtj|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ƒqfWdS( Ns--- %s%sts     [±»»÷ɱ]sHP:%s/%ss¹¥:%s,·À:%s,Å­:%ss%s=%s£»sÊôÐÔ:%ss ¼¼ÄÜ: %s,%ssBuff: %ss/ID:%s,%s(%s),»ØºÏ:%s,²ã:%s,V:%s,À´Ô´:%s,¹â»·:%s(RRR5R9R:tGetAtktGetDefR<tGetBatAttrDictR2tsorttGetSkillManagertGetSkillIDListRtGetBuffManagert GetBuffCountR_tGetBuffByIndext    CodeToGbkt GetSkillDatat GetSkillNameRVt
GetSkillIDt GetRemainTimetGetLayert    GetValue1t    GetValue2t    GetValue3t
GetOwnerIDtGetHaloObjIDList(RRJRKtattrStrtattrDictt
attrIDListR=R>tskillMgrRYtbuffMgrR&tbufftbuffName((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyRbûs0,&/  
 
     '<cCsCt|ƒ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"
(RRRRLRQR R-RTR(RRRR    R
R RbR (((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyt<module>s                       2    &    .    $