gwj
2025-09-01 d6d5c28fafc6c508e11230a4d94ac300dfc5e1ad
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Ws®hc@sBddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zdd„ZdS(iÿÿÿÿNcCst|ƒdS(N(tSyncDropBootyInfo(t    curPlayer((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnFBPlayerOnLogin#s
cCst|ƒdS(N(tResetBootyDropToday(R((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnFBPlayerOnDay's
cCsutƒ}x[|D]S}tj|tj|dƒ|jtj|ƒrtj|tj|dƒqqWt|ƒdS(Ni(tGetBootyItemIDListt PlayerControltNomalDictSetPropertytChConfigtDef_PDict_UnXiantaoCntBootytNomalDictGetPropertytDef_PDict_BootyDropTodayR(RtbootyItemIDListtitemID((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR+s     !
cCs]t|tjƒ}tj|tj||ƒtjd||f|jƒƒt    ||ƒdS(Ns/¸üнñÈÕµôÂäÕ½ÀûÆ·Êý: itemID=%s,updDropToday=%s(
tminRtDef_UpperLimit_DWordRRR t    GameWorldtDebugLogt GetPlayerIDR(RR t updDropToday((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytSetBootyDropToday4s
  cCsVtjƒ}|jƒ}|s"gS|j|dƒ}g|jƒD]}|d^qBS(Nii(t IpyGameDataPYtIPY_DatatGetMainChapterCounttGetMainChapterByIndextGetDailyBootyUpperList(t
ipyDataMgrt chapterCounttipyDatatbooty((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR;s   cCs&|tjkr"t|||ƒndS(N(RtDef_FBMapID_Maint __doKillAward(RtatkObjt killObjIDListtuseSkilltmapIDt
funcLineID((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnPlayerLineupAttackResultDscCs¥|stjdƒdS|jtjƒ}|r—tj|tjdƒtjddƒ}||}tjd||fƒtj|ƒj    |t
j ƒnt |ƒdS(NsûÓл÷ɱ²»ÐèÒª´¦Àí!itMainlineis(Ôö¼Ó¾­Ñé: totalExp=%s,unXiantaoCntExp=%s( RRR
RtDef_PDict_UnXiantaoCntExpRRRt
GetFuncCfgtAddExpt ShareDefinetDef_ViewExpType_KillNPCt __doMainDrop(RR R!tunXiantaoCntExptperExpttotalExp((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyRLs 
 
c
Cs)t|ƒdkrdS|jƒ}g}tj|ƒd}tjd|ƒ}|rb|jƒ}ntjd||f|ƒt    j
|t j ƒ}tj ddiƒ}tj ddiƒ}xg|D]_\}}    |dkrîtjd|ƒPn|    dkrqÂn|jtj|ƒ}
|
|    krEtjd    ||
|    f|ƒqÂn||ksÂ||krcqÂn||} |jtj|ƒ} | | } | dkrŸqÂn||}t|ttfƒ sÂt|ƒdkr×qÂn|d}|d}d}xEt| ƒD]7}||kr|}ntj||ƒ}||7}qþWt||    |
ƒ}|dkr^qÂntjd
|| | ||f|ƒtj||td |ƒ}|dkr®qÂn|jdƒtj||d t j gƒsßqÂn| | } tj |tj|| ƒt!|||
|ƒ|d8}qÂWdS( Niÿÿÿÿit MainChapters"¿ÉµôÂäÕ½ÀûÆ·ÉÏÏÞ: chapterID=%s, %st MainBootyDropiis µôÂä±³°üÒÑÂú!s6Õ½ÀûÆ·ÒÑ´ï½ñÈÕµôÂäÉÏÏÞ! itemID=%s,todyDropCnt=%s >= %ssPµôÂäÕ½ÀûÆ·! itemID=%s,unXiantaoCntBooty=%s,´ÎÊý=%s,dropCntTotal=%s,spaceCount=%sRt packIndexList("t __doDropEquipRRtGetMainLevelNowInfoRtGetIpyGameDataRRRt
ItemCommontGetItemPackSpacet IPY_GameWorldt rptIdentifytGetFuncEvalCfgR
RR R    t
isinstancetlistttupletlentrangetrandomtrandintRt ItemControlertGetOutPutItemObjtFalsetNonet    SetIsBindtDoLogic_PutItemInPackRR(RtplayerIDtDailyBootyUpperListt    chapterIDtchapterIpyDatat
spaceCounttbootyDropNeedDicttbootyDropCntDictR t    dropUppert todyDropCntt dropOneNeedtunXiantaoCntBootyt dropBootyCntt dropCntRangetdropMintdropMaxt dropCntTotalt_tdropCnttcurItem((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR,]sp    
 
 
(
 
            
c    Cs‘|jƒ}|jtjƒ}tjddƒ}||}|dkrgtjd|||f|ƒdStj    |t
j |ƒ}|s™tjd|ƒdS|jtj ƒ}tj d|ƒ}|sÇdS|jƒ}tjd||||f|ƒd    }d}    g}
xFt|dƒD]5\} } | s-qn|    | 7}    |
j|    | gƒqW|    |krztjd
d |    ||fƒn|
s„dStjd |
|    f|ƒxìt|ƒD]Þ} tj|
ƒ}|sÌq«ntjdd |dtjddƒ}|süq«ntj|ƒ}tj|dtd|ƒ}|dkr8q«n|jdƒtj||dt
j gƒsiq«n||8}tj |tj|ƒq«WdS(Nt MainEquipDropiisCÖ÷ÏßÔݲ»ÄܵôÂä! unXiantaoCntEquip=%s,dropOneNeed=%s,dropEquipCnt=%ss µôÂä±³°üÒÑÂú!iÿÿÿÿtTreeLVsRÖ÷ÏßµôÂä×°±¸: unXiantaoCntEquip=%s,dropEquipCnt=%s,treeLV=%s,equipColorRateList=%si't GameWarnings&CutTreeTotalRateError:%s!=%s,treeLV=%ss!    colorRateList=%s,totalRate=%stcolort    placeListtfindTypeRR2(!RR
RtDef_PDict_UnXiantaoCntEquipRR(RRR6R7R8R9tDef_PDict_TreeLVR5tGetEquipColorRateListt    enumeratetappendt SendGameErrorR?tGetResultByRandomListt    NPCCommont__GetEquipIDListtDef_MainEquipPlacesR@tchoiceRBRCRDRERFRGRR(RRHtunXiantaoCntEquipRQt dropEquipCntttreeLVRtequipColorRateListtmaxRatet    totalRatet colorRateListt
equipColort    colorRateRXt    itemColort equipIDListt randEquipIDRZ((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR3£s^ 
   
  $  
c    Csÿ|jtjƒ|}tj|tj|ƒtj|d|ƒtj|ƒd}tj    d|ƒ}|rñ|j
ƒ}xw|D]l\}}|dkrœq~n|jtj |ƒ|}tj|tj ||ƒtj|d||fƒq~Wnt |ƒdS(Nsδ½áËã×°±¸Õ½´¸Êý: %siR0sδ½áËãÕ½ÀûÆ·(%s)Õ½´¸Êý: %s( R
RRaRRRt DebugAnswerR4RR5RR    R,(    Rt    unXiantaoRlRJRKRIR tupperCntRR((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytGMTestKillDropÞs  !
cCs˜tjƒj|ƒ}|j}|j}|j}|dkrOt|||ƒn)|dkrkt||ƒn t||ƒt    j
|t j t j|ƒdS(Nii(RtGetPlayerManagertGetPlayerByIndext    IndexListtOPTypetOPValuet__doEquipMainEquipt__doDecomposeMainEquipt__doPickupMainItemR6tSyncMakeItemAnswerR*tDef_mitMainDropItemOPRtDef_ComposeState_Sucess(tindext
clientDatattickRt itemIndexListtopTypetopValue((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnMainDropItemOPûs               cCs|jƒ}tjd||f|ƒ|jƒjtjƒ}g}xœ|D]”}|dksK||jƒkruqKn|j|ƒ}t    j
|ƒs­tjd||ƒqKnt    j |ƒsÖtjd||ƒqKn|j ƒ}|j ƒ}    |    d}
tjd|||    |
f|ƒ|jƒjtjƒ} |
dksN|
| jƒkrqtjd||    |
f|ƒqKn| j|
ƒ} t    j
| ƒ} |jƒjdƒt    j||| tjƒsÃqKn|rK| rK|j|ƒqKqKW|rùt||ƒntj|ƒtj|tjƒdS(Ns1´©´÷Ö÷Ïß×°±¸: itemIndexList=%s,isAutoDecompose=%sisÎïÆ·Îª¿Õ»ò²»¿ÉÓÃ: itemIndex=%ss·ÇÖ÷Ïß×°±¸: itemIndex=%sis;    itemIndex=%s,itemID=%s,equipPlace=%s,equipPlaceIndex=%ssKÖ÷Ïß×°±¸¶ÔӦװ±¸Î»ÖÃË÷ÒýÒì³£: itemIndex=%s,equipPlace=%s,equipPlaceIndex=%s(RRRtGetItemManagertGetPackR8R9tGetCounttGetAtR6tCheckItemCanUsetGetIsMainEquipt GetItemTypeIDt GetEquipPlacetrptEquiptErrLogtGetItemRFtDoLogicSwitchItemReR‚tChEquiptRefreshRoleEquipAttrt
PlayerTaskt UpdTaskValueRtTaskType_EquipColor(RRŠtisAutoDecomposeRHt IdentifyPacktdecomposeIndexListt    itemIndextcurEquipR t
equipPlacetequipPlaceIndext    equipPackt    destEquipt    canDecomp((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR sH    
          c    Csæ|jƒ}tjd||ƒ|jƒjtjƒ}tjddƒ}|sTdSd}d}g}x=|D]5}|dksm||j    ƒkr—qmn|j
|ƒ}    t j |    ƒsÏtjd||ƒqmnt j |    ƒsøtjd||ƒqmn|    jƒ}
tjd|
ƒ} | s dS| jƒ} | s6dS| } || 7}tjd||
| | |f|ƒt j||    |    j    ƒttjƒ|j|ƒ|d    7}qmW|s°dStj|||d
d tƒtj|tj|ƒdS( Ns·Ö½âÖ÷Ïß×°±¸: itemIndexList=%sR[iisÎïÆ·Îª¿Õ»ò²»¿ÉÓÃ: itemIndex=%ss·ÇÖ÷Ïß×°±¸: itemIndex=%st
EquipColors?    itemIndex=%s,itemColor=%s,moneyBase=%s,decomposeMoney=%s,%sitDecomposeMainEquipt    isSysHint(RRRRŽRR8R9RR(RR‘R6R’R“t GetItemColorR5t GetMoneyBasetDelItemtTrueRtItemDel_EquipDecomposeReRt    GiveMoneyRDRœt AddTaskValuetTaskType_EquipDecompose(RRŠRHR t    moneyTypet
moneyTotalt decomposeCntR¡R¢R£Rut colorIpyDatat    moneyBasetdecomposeMoney((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR‚;sL    
    " c
CsH|jƒ}tjd||ƒ|jƒjtjƒ}tj|ƒ}xú|D]ò}|dksN||j    ƒkrxqNn|j
|ƒ}t j |ƒs°tjd||ƒqNnt j |ƒrÙtjd||ƒqNn|jƒ}|jƒ}tj|ƒ}    tjd|||    f|ƒ|jtj|ƒs6dS|jƒqNWdS(Ns$ʰȡÖ÷ÏßµôÂäÕ½ÀûÆ·! itemIndexList=%sisÎïÆ·Îª¿Õ»ò²»¿ÉÓÃ: itemIndex=%ssÖ÷Ïß×°±¸²»¿Éʰȡ: itemIndex=%ss1Ö÷ÏßÎïÆ·Ê°È¡: itemIndex=%s,itemID=%s,itemCount=%s(RRRRŽRR8R9RBtPlayerItemControlerRR‘R6R’R“R”R˜t GetItemCountt    PutInItemtrptItemtWipe(
RRŠRHR t itemControlR¢RZR titemt    itemCount((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyRƒns,    icCs½|stƒ}n    |g}tjƒ}|jtjƒ}g|_xR|D]J}|jtjƒ}||_|j    t
j |ƒ|_ |jj |ƒqIWt|jƒ|_tj||ƒdS(N(RtObjPoolt
GetPoolMgrtacquiretChPyNetSendPackttagSCDropBootyInfot DropBootyListttagSCDropBootytItemIDR
RR t TodayDropCntReR>tCountt NetPackCommont SendFakePack(RR tsyncItemIDListtpoolMgrt
clientPackt    dropBooty((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR‹s               (RRR*RRRÅRBR8RÌR6RœRhRšRÂR@RRRRRR%RR,R3R{RRR‚RƒR(((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyt<module>s:                                                       F    ;            0    3