hxp
2025-10-21 975de69c4a0d0f75b722ec63c64af8f47a5ca996
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
'÷hc@skddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZdZejddƒejddƒd„Zd„Zdd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Z dS(iÿÿÿÿNtFunc_6s Script\Event\tEventSrctcCsDtjƒd}tj|dƒtjƒd}tj|dƒdS(NsScript\Event\EventSrcRs Script\EventR(tChConfigt
GetAppPatht    GameWorldt ReloadScript(ttickt
scriptPath((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyt ReloadEventcs
cCsFitjd6}|j|ƒ}|dkr/dS|j|tjƒdS(Nt EquipAddStar(t ShareDefinetDef_mitLVUpStartgettNonetSync_MakeItemAnswerRtDef_ComposeState_None(t    curPlayert
funcAnswert
answerDictt
answerType((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pytSyncMakeItemRefuseqs   cCsŽtjtd||fƒ}|dkrYtjd||f|jƒƒt||ƒdS|rxtj|ƒ|||ƒStj|ƒ||ƒS(Ns%s.%ss¹¦ÄÜ»ØÓ¦Ê¼þÏìÓ¦ %s %s²»¿ÉʹÓÃ(Rt GetExecFuncRRtLogt GetPlayerIDRt GetPsycoFunc(Rt responseTypeRRt
clientDatatcallFunc((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pytFuncDirectCall„s   cCs|jƒ}|dkr2tjd|jƒƒdS|jƒtjkratjd|jƒƒdStjƒj    |j
ƒƒ}|dkr¢tjd|jƒƒdSd|j ƒ}|s¼dStj t d||fƒ}|dkrtjd||f|jƒƒdStj|ƒ||ƒS(NsFuncCall -> Ã»ÓÐÄ¿±êsFuncCall -> Ì¸»°¶ÔÏó²»¶ÔsFuncCall ->ûÓÐÕâ¸öNPCsFunc_%ds%s.%ss)FuncCall ->¹¦ÄÜ»ØÓ¦Ê¼þÏìÓ¦ %s %s²»¿ÉʹÓÃ(t GetActionObjRRRRtGetGameObjTypet IPY_GameWorldtgotNPCt GetNPCManagert GetNPCByIndextGetIndextGetFunctionTypeRRR(RRRttagObjtcurNPCRR((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pytFuncCallŸs&     cCsdS(N((tindext
clientPackR((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyt BuyItemBackÍscCs,tjƒj|ƒ}t|td|ƒdS(NtPutItemInWarehouse(RtGetPlayerManagertGetPlayerByIndexRtDef_Warehouse_FuncName(R)RR((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR,çscCs,tjƒj|ƒ}t|td|ƒdS(NtGetItemInWarehouse(RR-R.RR/(R)RR((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR0scCsòtjƒj|ƒ}tjƒ}|jƒ}|jƒ}|jƒ}|tj    krrtj
d||j ƒƒdS|j ƒj |ƒ}|dks±||ks±||jƒkrÕtj
d||f|j ƒƒdStj|||||ƒdS(NsResetItem TypeErr = %sisResetItem IndexErr = %s,%s(RR-R.R tIPY_CItemPackResettGetTypetGetItemBeginIndextGetItemEndIndexRtDef_CanItemResetPacktErrLogtGetIDtGetItemManagertGetPacktGetCountt ItemControlert    ResetItem(R)RRtsendPacktsendPack_PackIndextsendPack_ItemBeginIndextsendPack_ItemEndIndextrolePack((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR<s     cCsdS(N((R)R((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pytBackpackOperateNs cCs“tjƒj|ƒ}tjƒ}|jƒ}|jƒ}|jƒ}|jƒ}t    j
|||||ƒrpdSt j |||||ƒrdSdS(N( RR-R.R tIPY_CPackItemExchangetGetSrcBackpacktGetDesBackPackt GetSrcIndext GetDestIndext
PlayerRunet
SwitchRunet
PlayerCoatt
SwitchCoat(R)RRR=tpack_SrcBackpacktpack_DesBackPackt pack_SrcIndextpack_DestIndex((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pytPackItemExchangeks     cCs>tjƒj|ƒ}tjƒ}|jƒ}t||ƒdS(N(RR-R.R tIPY_COpenPackCountt GetPackTypet__DoOpenPackCount(R)RRtpacktpackType((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyt OpenPackCountŒs
   c Cs,tjddiƒ}tjddiƒ}tjddiƒ}t|ƒ|ksut|ƒ|ksut|ƒ|krŠtjd|ƒdS|t|ƒ}|t|ƒ}|t|ƒ}|jƒj|ƒ}|jƒ}    tj    |ƒ}
tj
||ƒ} |    |
| } |j t j |ƒd} t|ƒ| krD|| dn|d}t|ƒ| krn|| dn|d}| |kr²tjd||
| | d|    | |fƒdSi| d6|t j6}tj|||t j|dƒsîdStj|t j || ƒtj||ƒtj||ƒdS(    NtOpenPackiiis¸Ã±³°ü²»¿É¹ºÂò! packType=%siÿÿÿÿs€¹ºÂò±³°ü¸ñ×Ó£¬ÊýÁ¿³¬¹ý×î´ó¸ñ×ÓÊý£¡packType=%s,initCnt=%s,alreadyOpenCnt=%s,ÒѹºÂò´ÎÊý=%s,curPackMaxCnt=%s,canOpenGridCnt=%s < %stBuyCount(t IpyGameDataPYtGetFuncEvalCfgtstrRR6R8R9t GetMaxCountt
ItemCommontGetPackInitCounttGetPackOpenItemCnttNomalDictGetPropertyRtDef_Player_Dict_PackBuyCnttlentDebugLogtDef_Cost_Reason_SonKeyt PlayerControltPayMoneytDef_Cost_BuyPacktNomalDictSetPropertytInit_PackCounttSyncPackBuyCnt(RRUtcostMoneyTypeDicttcostMoneyValueDicttopenGridListDictt    moneyTypet costValueListt openGridListtcurPackt curPackMaxCnttinitCnttalreadyOpenCnttcanOpenGridCntt
nextBuyCntt nextOpenCnttmoneyCnttinfoDict((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyRS”s86 **     !!cCs#tjƒj|ƒ}|jƒdS(N(RR-R.tSync_WarehouseItem(R)RRR((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pytPlayerOpenLongWarehouseÆs
cCsètjƒj|ƒ}|j}tjƒj|ƒ}|dkrCdStj|jƒ|j    ƒ|jƒ|j    ƒƒ}|t
j kr†dS|j ƒt
j krŸdStj|||ƒs¸dStj|||ƒtj|ƒ}|jƒdS(N(RR-R.tObjIDR"t FindNPCByIDRtGetDisttGetPosXtGetPosYRt Def_EventDistR2t ntTouchKilltFBLogictOnCanMoveTouchNPCtOnMoveTouchNPCt    NPCCommont
NPCControlt    SetKilled(R)RRRt
eventNPCIDR'tdistt
npcControl((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyt MoveTouchNPCÓs      0
(!R RRRRetFunctionNPCCommonRƒR;R]R RJRHRYR†tmathtrandomR/t    ImportAllR    RRRR(R+R,R0R<RBRPRVRSR{RŒ(((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyt<module>Fs@                             .                7        !        2