hxp
2025-08-25 b7154533a3f9db72d0dfc28f21b19ee4aadf1b51
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
80
tœhc@s6ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z d„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.pytSetBootyDropToday3s
  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.pytOnPlayerLineupAttackResultCscCs¥|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.pyRKs 
 
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|ƒ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‚tChEquiptRefreshRoleEquipAttr(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
sF    
          c     CsÀ|jƒ}tjd||ƒ|jƒjtjƒ}tjddƒ}|sTdSd}g}x3|D]+}|dksg||j    ƒkr‘qgn|j
|ƒ}t j |ƒsÉtjd||ƒqgnt j |ƒsòtjd||ƒqgn|jƒ}    tjd|    ƒ}
|
sdS|
jƒ} | s0dS| } || 7}tjd||    | | |f|ƒt j|||j    ƒttjƒ|j|ƒqgW|s dStj|||d    d
tƒdS( Ns·Ö½âÖ÷Ïß×°±¸: itemIndexList=%sR[iisÎïÆ·Îª¿Õ»ò²»¿ÉÓÃ: itemIndex=%ss·ÇÖ÷Ïß×°±¸: itemIndex=%st
EquipColors?    itemIndex=%s,itemColor=%s,moneyBase=%s,decomposeMoney=%s,%stDecomposeMainEquipt    isSysHint(RRRRŽRR8R9RR(RR‘R6R’R“t GetItemColorR5t GetMoneyBasetDelItemtTrueRtItemDel_EquipDecomposeReRt    GiveMoneyRD( RRŠRHRt    moneyTypet
moneyTotalRžRŸR Rut colorIpyDatat    moneyBasetdecomposeMoney((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR‚8sF    
    "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ƒhs,    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ÆR6RhRš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>s8                                                      F    ;            .    0