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
š9Öhc@s‘ddlZddlZddlZddlZddlZddlZddlZddgZd„Zd„Z    d„Z
d„Z d„Z dS(    iÿÿÿÿNiicCsø|sztj|dƒtj|dƒtj|dƒtj|dƒtj|dƒtj|dƒtj|dƒdS|d}|d    kr t||ƒnT|d
kr¼t||ƒn8|d krØt||ƒn|d krôt||ƒndS( Ns,ÉèÖÃÊôÐÔ: 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 __printInfo(t    curPlayertmsgListtvalue((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pytOnExec!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(tlent FactionListRRt
TurnAttacktGetMainFightMgrt    turnFightt    isInFightt getBatFactiont getBatlineupt posObjIDDicttgettNonet    BattleObjt GetBatObjMgrt    getBatObjtIsAlivetChConfigt
AttrIDListt
GetObjNamet GMSetBatAttrt    AttrID_HPtGetHPtGetMaxHPt    AttrID_XPtGetXP(R
R tattrIDt    attrValuetfactiontposNumt mainFightMgrRt
batFactiont    batLineuptobjIDtbatObjt    batObjMgrtobjName((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR8sJ""""        )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(RRRRRRRRtChPyNetSendPackttagSCTurnFightReportSigntSignRRRRRRRRRt SetObjKilledtcheckOverByKilledt NetPackCommont SendFakePack( R
R R(t
posNumListR*Rt
clientPackR/R+R,R)R-R.((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyRfs@"
              
    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ʧ°Ü(RRRRRRRRRRRRRRRRtTurnBufftDoAddBuffBySkillIDt    GetBuffID( R
R R(R)tskillIDR*RR/R+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(#RRtrangeRRRRRRRRRRRRRRRR"R#tGetAtktGetDeftGetBatAttrDicttGetSkillManagertGetSkillIDListtGetBuffManagert GetBuffCounttGetBuffByIndexR<t
GetSkillIDt GetRemainTimetGetLayert    GetValue1t    GetValue2t    GetValue3(R
R R(R)t factionListR8R*RR/R+R,R-R.R0tattrDicttskillMgrt skillIDListtbuffMgrtindextbuff((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyR    «sL""         ,8      $2( RRR1R6RRR:RR RRRR    (((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\TurnFight.pyt<module>s                .    %