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
¸¬hc@s}ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    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 d„Z!d„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®tj|ƒs t||ƒdStjtd||fƒ}|dkrytjd||f|jƒƒt||ƒdS|r˜tj    |ƒ|||ƒStj    |ƒ||ƒS(Ns%s.%ss¹¦ÄÜ»ØÓ¦Ê¼þÏìÓ¦ %s %s²»¿ÉʹÓÃ(
tFunctionNPCCommontCheckPlayerCanStateEventRRt GetExecFuncRRtLogt GetPlayerIDt 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&     cCsGtjƒj|ƒ}t|dd|ƒ}|rCtj|dƒndS(NRtBuyItemt BuyResSucceed(RtGetPlayerManagertGetPlayerByIndexRt PlayerControlt
NotifyCode(tindexRRtresult((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR+Ós
cCs,tjƒj|ƒ}tj|||ƒdS(N(RR-R.Rt BuyItemBack(R1t
clientPackRR((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR3ëscCs,tjƒj|ƒ}t|dd|ƒdS(NRtSellItem(RR-R.R(R1RR((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR5scCs,tjƒj|ƒ}t|td|ƒdS(NtPutItemInWarehouse(RR-R.RtDef_Warehouse_FuncName(R1RR((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR6scCs,tjƒj|ƒ}t|td|ƒdS(NtGetItemInWarehouse(RR-R.RR7(R1RR((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR86scCsò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(R1RRtsendPacktsendPack_PackIndextsendPack_ItemBeginIndextsendPack_ItemEndIndextrolePack((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyRDLs     c    Cs€tjƒj|ƒ}tjƒ}|jƒ}|jƒ}|jƒ}|jƒ}|j    ƒ}t
j |||||||ƒdS(N( RR-R.R"tIPY_CBackpackOperatetGetSrcBackpacktGetDesBackPackt GetSrcIndext GetDestIndexRBRtBackpackOperate(    R1RRREtpack_SrcBackpacktpack_DesBackPackt pack_SrcIndextpack_DestIndextpack_ItemCount((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyROƒs      cCs¯tjƒj|ƒ}tjƒ}|jƒ}|jƒ}|jƒ}|jƒ}t    j
|||||ƒrpdSt j |||||ƒrdSt j||||||ƒdS(N(RR-R.R"tIPY_CPackItemExchangeRKRLRMRNt
PlayerRunet
SwitchRunet
PlayerCoatt
SwitchCoatRtPackItemExchange(R1RRRERPRQRRRS((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyRZ s      cCs>tjƒj|ƒ}tjƒ}|jƒ}t||ƒdS(N(RR-R.R"tIPY_COpenPackCountt GetPackTypet__DoOpenPackCount(R1RRtpacktpackType((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 IpyGameDataPYtGetFuncEvalCfgtstrRR>R@RAt GetMaxCountt
ItemCommontGetPackInitCounttGetPackOpenItemCnttNomalDictGetPropertyRtDef_Player_Dict_PackBuyCnttlentDebugLogtDef_Cost_Reason_SonKeyR/tPayMoneytDef_Cost_BuyPacktNomalDictSetPropertytInit_PackCounttSyncPackBuyCnt(RR_tcostMoneyTypeDicttcostMoneyValueDicttopenGridListDictt    moneyTypet costValueListt openGridListtcurPackt curPackMaxCnttinitCnttalreadyOpenCnttcanOpenGridCntt
nextBuyCntt nextOpenCnttmoneyCnttinfoDict((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR]És86 **     !!cCs#tjƒj|ƒ}|jƒdS(N(RR-R.tSync_WarehouseItem(R1RRR((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_EventDistR:t ntTouchKilltFBLogictOnCanMoveTouchNPCtOnMoveTouchNPCt    NPCCommont
NPCControlt    SetKilled(R1RRRt
eventNPCIDR)tdistt
npcControl((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyt MoveTouchNPCs      0
(#R"RRRR/RRŒRCRgR RXRVRcRtmathtrandomR7t    ImportAllR    RRRR*R+R3R5R6R8RDRORZR`R]R„R•(((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyt<module>FsD                             4                        7        !        2