hxp
2025-10-24 6e81fbd1f073db917e9867455db964e3f962ecbc
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
-“øhc@s¦ddlZddlZddlZddlZddlZddlZddlZddlZddgZd„Z    d„Z
d„Z d„Z d„Z d    „ZdS(
iÿÿÿÿNiicCs3|sŠ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||ƒnc|d krèt||ƒnG|d krt||ƒn+|d    kr/|tjkr/t||ƒndS(Ns)·¢ÆðÕ½¶·: TurnFight mapID [lineID Íæ¼ÒID]s,ÉèÖÃÊôÐÔ: TurnFight a ÊôÐÔID Öµ [ÕóÓª Î»ÖÃ] s&»÷ɱĿ±ê: TurnFight k ÕóÓª [λÖà...] s+Ìí¼Óbuff: TurnFight b ÕóÓª  Î»Öàbuff¼¼ÄÜIDs"Êä³öÃ÷ϸ: TurnFight p [ÕóÓª Î»ÖÃ] sÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßsλÖ㺠1~6ºÅλs$ÊôÐÔID: 6-¹¥,7-·À,8-HPMax,9-HP,12-Å­itatktbtp(    t    GameWorldt DebugAnswert __doSetAttrt __doKillObjt __doAddBufft __printInfotChConfigtDef_FBMapID_Maint__reqTurnFight(t    curPlayertmsgListtvalue((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 |||ƒdS(Niii( tlent ChPyNetPackttagCMTurnFighttMapIDt
FuncLineIDtTagTypetTagIDtGetIndexRt GetGameWorldtGetTickt
TurnAttackt OnTurnFight(R RtmapIDt
funcLineIDt tagPlayerIDt
clientDatatindexttick((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR ;s
""              cCsdt|ƒdkr|dnd}t|ƒdkr>|dnd}t|ƒdkr`|dnd}t|ƒdkr‚|dnd}|tkr¨tj|dƒdStj|ƒ}|j}|jƒsàtj|dƒdS|j|ƒ}|j    dƒ}    |    j
j |ƒ}
d} t jƒ} |
r:| j|
ƒ} n| s^tj|d||fƒdS| jƒsˆtj|d||fƒdS|tjkr¯tj|d    |ƒdStj| ƒ} tj|d
| ƒ| j||ƒ|tjkrtj|d | jƒ| jƒfƒnF|tjkrFtj|d | jƒƒntj|d ||fƒdS(NiiiisÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßs Ö÷Ïß·ÇÕ½¶·ÖÐs ²»´æÔÚ¸ÃÕ½¶·¶ÔÏó:ÕóÓª:%s,λÖÃ:%ss¸Ã¶ÔÏóÒѱ»»÷ɱ:ÕóÓª:%s,λÖÃ:%ss²»´æÔÚ¸ÃÊôÐÔID:%ss%ssÉèÖÃÉúÃü:%s/%ss ÉèÖÃÅ­Æø:%ssÉèÖÃÊôÐÔID:%s,V=%s(Rt FactionListRRRtGetMainFightMgrt    turnFightt    isInFightt getBatFactiont getBatlineupt posObjIDDicttgettNonet    BattleObjt GetBatObjMgrt    getBatObjtIsAliveR
t
AttrIDListt
GetObjNamet GMSetBatAttrt    AttrID_HPtGetHPtGetMaxHPt    AttrID_XPtGetXP(R RtattrIDt    attrValuetfactiontposNumt mainFightMgrR%t
batFactiont    batLineuptobjIDtbatObjt    batObjMgrtobjName((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyRIsJ""""        )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)R*R.R/R1t SetObjKilledtcheckOverByKilledt NetPackCommont SendFakePack( R RR:t
posNumListR<R%t
clientPackRAR=R>R;R?R@((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyRws@"
              
    c Cs£t|ƒdkr|dnd}t|ƒdkr>|dnd}t|ƒdkr`|dnd}|tkr†tj|dƒdStj|ƒ}|j}|jƒs¾tj|dƒdStj    ƒ}|j
|ƒ}|j dƒ}    |    j j |ƒ}
|j|
ƒ} | s-tj|d||fƒdS| jƒsWtj|d||fƒdStj|| |ƒ} | rtj|d    | jƒƒntj|d
ƒdS( NiiiisÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßs Ö÷Ïß·ÇÕ½¶·ÖÐs ²»´æÔÚ¸ÃÕ½¶·¶ÔÏó:ÕóÓª:%s,λÖÃ:%ss¸Ã¶ÔÏóÒѱ»»÷ɱ:ÕóÓª:%s,λÖÃ:%ssÌí¼Óbuff³É¹¦! buffID=%ss Ìí¼Óbuffʧ°Ü(RR#RRRR$R%R&R,R-R'R(R)R*R.R/tTurnBufftDoAddBuffBySkillIDt    GetBuffID( R RR:R;tskillIDR<R%RAR=R>R?R@taddBuff((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyRœs6"""        c CsÕ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ƒ}
x®|D]¦}|
j j|ƒ} | sGq#n|j| ƒ} tj| ƒ} tj|d| | jƒr†d    nd
fƒtj|d | jƒ| jƒ| jƒ| jƒfƒ| jƒ}tj|d |ƒ| jƒ}|jƒ}tj|d t|ƒ|fƒ| jƒ}tj|d|jƒƒxt|jƒƒD]k}|j|ƒ}tj|d|jƒ|jƒ|jƒ|jƒ|j ƒ|j!ƒ|j"ƒgfƒqZWq#WqÂWdS(Niiiis Ö÷Ïß·ÇÕ½¶·ÖÐsÕóÓª£º 1-×ó±ß£»2-ÓÒ±ßs ---------- ¡¾ÕóÓª%s¡¿ ----------s--- %s%sts     [±»»÷ɱ]sHP:%s/%s, Atk:%s, Def:%ssÊôÐÔ:%ss ¼¼ÄÜ: %s,%ssBuff: %ss#ID:%s,SkillID:%s,»ØºÏ:%s,²ã:%s,V:%si(#RR#trangeRR$R%R&RRR,R-R'R(R)R*R.R1R/R4R5tGetAtktGetDeftGetBatAttrDicttGetSkillManagertGetSkillIDListtGetBuffManagert GetBuffCounttGetBuffByIndexRNt
GetSkillIDt GetRemainTimetGetLayert    GetValue1t    GetValue2t    GetValue3(R RR:R;t factionListRJR<R%RAR=R>R?R@RBtattrDicttskillMgrt skillIDListtbuffMgrR!tbuff((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR    ¼sL""         ,8      $2(R
RRRCRHRR,RLR#RR RRRR    (((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyt<module>s                     .    %