hxp
2025-05-29 f08058713e574c675579ca5ccbfabeb1e6702cf0
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
&18hc@s•ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZdZejddƒejddƒd„Zd„Zdd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Z d„Z!d„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 ReloadEventes
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.pytSyncMakeItemRefusess   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.pyR88scCsò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.pyRDNs     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|||||ƒr®dStj||||||ƒdS(N(RR-R.R"tIPY_CPackItemExchangeRKRLRMRNt
PlayerRunet
SwitchRunetPlayerGatherSoultSwitchGatherSoult
PlayerCoatt
SwitchCoatRtPackItemExchange(R1RRRERPRQRRRS((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyR\¢s      cCsÓtjƒj|ƒ}tjƒ}|jƒ}|tjjƒkrFdS|j    ƒ}tj|tj
}|j |ƒ}t j |ƒ}|jƒj|ƒ}    |    jƒ}
|||} |
| krÚtjd||fƒdSt||||ƒ\} } | sÿdStj||||ƒ|tjkrEtj|ƒtj|dƒn/|tjkrdtj|ƒntj||ƒtj||||j |ƒƒ| rÏx3| D](\}}tj|ddd||ƒq WndS(Ns9¹ºÂò±³°ü¸ñ×Ó£¬ÊýÁ¿³¬¹ý×î´ó¸ñ×ÓÊý£¡packType=%s,buyCount=%stGeRen_liubo_671654iit BuyPackGrid(RR-R.R"tIPY_COpenPackCountt GetPackTypeRtDef_Type_CanBuyPack_PlayerDicttkeysRBtDef_PlayerPackDict_Index_KeytNomalDictGetPropertyt
ItemCommontGetPackInitCountR@RAt GetMaxCounttDebugLogt
DoOpenGridR/tNomalDictSetPropertytrptItemt Init_ItemPackR0t rptWarehousetInit_WarehousetInit_CabinetCountByTypetDataRecordPacktDR_OpenPackCounttLogin_Interface_GoldRec(R1RRtpacktpackTypetbuyCounttkeyNamet
curGridCnttinitCnttcurPackt curPackMaxCntt openAnonCnttisBuyOKt costMoneyListt    moneyTypetmoney((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyt OpenPackCountÆs<      #cCsŸ|jƒjtjƒ}tjdƒ}tjddƒ}tjddƒ}d}x9t|d||dƒD]}    t|ƒ}
||
7}qmWt    j
|||ƒ\} } } }| s¾||nd}g}|dkr`t j |tj |ƒ}|gkrt|fSxY|D]N\}}i|d6|tj6}t j|||tj|dƒs t|fSq Wntd||ƒ}| r•t    j||| |tƒnt|fS(Nt OpenBagItemiiiitBuyCount(R@RAR"Rkt IpyGameDataPYt
GetFuncCfgtGetFuncCompileCfgtrangetevalRetGetItem_FromPack_ByID_ExExR/t HaveMoneyExtTYPE_Price_Gold_PapertFalseRtDef_Cost_Reason_SonKeytPayMoneytDef_Cost_BuyPacktmaxt
ReduceItemtTrue(RRwRtRuRytitemIdtitemCntFormulatbuyMoneyt totalItemCntR1titemcntt    hasEnought    indexListtfindItemIsBindtlackCntt    needMoneyR}R~tmoneyCnttinfoDicttdelCnt((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyRis." !  
!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 MoveTouchNPCHs      0
(%R"RRRR/RR¨RCReR RpRZRXRVRƒR«tmathtrandomR7t    ImportAllR    RRRR*R+R3R5R6R8RDROR\R€RiR R±(((shD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventShell.pyt<module>FsH                               4                        7        $    B    3