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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Ÿx›[c@sMddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZd„Zd„Zd„Zd„Zged„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&ed„Z'd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d „Z3d!„Z4d"„Z5d#„Z6d$„Z7id%„Z8d&„Z9dS('iÿÿÿÿNcCs|jƒ}|dkrdS|jƒtjkr5dStjƒj|jƒƒ}|j    ƒ}|j
t j |ƒ|j dƒ|jtjƒtS(Ni(t GetActionObjtNonetGetGameObjTypet IPY_GameWorldtgotNPCt    GameWorldt GetNPCManagert GetNPCByIndextGetIndextGetNPCIDtSetDicttChConfigtDef_PlayerKey_TradeTagNPCtSetForbiddenResetItemtBeginSpecialEventt ShareDefinetTYPE_Event_ShoptTrue(t    curPlayerttickt curActionObjt curActionNPCtcurActionNPCID((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt
StartTradeNs    cCsdS(Ni((((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytGetDirectNpcIDfscCstj|ƒtS(N(t
EventShellt DoExitEventR(RR((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt    ExitEventos cCs¡tjƒj|ƒ}||jtjƒtjtjkr?dS|jtj|ƒ|j}tj    ƒj
|ƒtj    ƒj ƒ}|dkrdS|j |ƒdS(Ni( RtGetPlayerManagertGetPlayerByIndext GetTickByTypeR tTYPE_Player_Tick_QueryFuncDatatTYPE_Player_Tick_Timet SetTickByTypet    NPCShopIDt GetGameDatatFilterShopItemByShopTypetGetFilterShopItemCountt BeginShopEx(t playerIndext
clientDataRRt tradeTagNPCt shopItemCount((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytQueryNPCShopItemys      c
Cstjƒ}g|_|rExÁ|D]}t|||j|ƒq"Wnštjƒ}x‹t|jƒƒD]w}|j|ƒ}|j    ƒs‹qdnt
j |j ƒ}|j |ƒ}    |    dkr¿qdnt||j ƒ|j|ƒqdWt|jƒ|_tj||ƒdS(Ni(tChPyNetSendPackttagMCShopItemDayBuyCntInfot DayBuyCntListt__AppendShopItemDayBuyCntInfot IpyGameDataPYtIPY_Datatxranget GetStoreCounttGetStoreByIndext GetLimitCntR tDef_PDict_ShopItemDayBuyCnttGetIDtNomalDictGetPropertytlentCountt NetPackCommont SendFakePack(
Rt itemIndexListtisResett dayBuyCntInfot    itemIndext
ipyDataMgrtitshopItemt dayBuyCntKeyt curDayBuyCnt((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytSyncShopItemTodayBuyCount›s$          cCsZtjƒ}||_tj|}|j|ƒ}||_t|ƒ|_|j    |ƒdS(N(
R,ttagMCShopItemDayBuyCntt    ItemIndexR R6R8tBuyCnttinttIsResettappend(RR@t dayBuyCntListR>t itemDayBuyCntRDRE((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyR/¶s           cCst|ƒt|ƒdS(N(RFtSyncSuperGiftInfo(R((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytShopItemOnLoginÁs
 
cCs£|tjkr<t|tƒt|ƒt|ƒdg}nV|tjkrŽdg}tjƒj    tj
ƒ}|ddkr’ddg}q’ndSt ||ƒdS(Niiii( RtDef_OnEventTypetUpdataSuperGiftTimeRROtOSSaleOpenMailtDef_OnEventTypeExRt GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayt__ResetShopItemBuyCount(Rt onEventTypet refreshTypet openServerDay((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt ShopItemOnDayÉs 
 
      cCst||gƒdS(N(RX(RRY((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytShopItemOnWeekÜscCsH|tjkrd}n|tjkr0d}ndSt||gƒdS(Nii(RRQRTRX(RRYRZ((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytShopItemOnMonthãs        cCsßg}tjƒ}x­t|jƒƒD]™}|j|ƒ}|jƒsLq%n|jƒ|krdq%ntj|j    ƒ}|j
|ƒ}|dkr˜q%nt j ||dƒ|j |j    ƒƒq%W|rÛt||tƒndS(Ni(R0R1R2R3R4R5tGetRefreshTypeR R6R7R8t PlayerControltNomalDictSetPropertyRLRFR(RtonEventTypeListt syncIndexListRARBRCRDRE((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRXís"   cCsßg}tjƒ}x­t|jƒƒD]™}|j|ƒ}|jƒsLq%n|jƒ|krdq%ntj|j    ƒ}|j
|ƒ}|dkr˜q%nt j ||dƒ|j |j    ƒƒq%W|rÛt||tƒndS(Ni(R0R1R2R3R4R5t GetShopTypeR R6R7R8R`RaRLRFR(Rt shopTypeListRcRARBRCRDRE((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytResetShopItemBuyCountByShopTypes"   c     Cs¶|j}|jƒjtjƒ}||jƒkr7dS|j|ƒ}| sY|jƒr]dS|jƒ}tj    |ƒ}|j
tj |j ƒ||j ƒƒs¼tj|dtj gƒdSt||ƒ\}}    t|ƒ|}|     sï| ródSi|j ƒtj6}
tj||    |tj|
ƒs+dS|jtj |ddtigƒt|jtjƒƒ} | jt|dƒdƒ} | dkr–d} ntj|tjt| ƒƒdS(NtGeRen_chenxin_676165teventt BuyItemBackitt0(tIndextGetItemManagertGetPackRt
rptRecycletGetCounttGetAttIsEmptyt ItemControlertPlayerItemControlert CanPutInItemtrptItemt GetItemTypeIDt    GetIsBindR`t
NotifyCodet__GetItemSellPriceRJR tDef_Cost_Reason_SonKeytPayMoneytDef_Cost_BuyItemBackt    PutInItemtFalsetstrR8tDef_Player_Dict_DelPackIndextreplaceRa( Rt
clientPackRtindextbackPacktcurItemt realPutCountt itemControlt    itemPricet    priceTypetinfoDictt
itemIndexs((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRis:          "     c1
Csƒtjƒ}|jƒ}|dkr(dS|jƒ}|s>dStjd|ƒ}|sZdS|jƒ}|jƒr`tj    j
t j iƒ}|j
t j dƒ}|sÃtjd||jƒƒdStj|j
t jdƒ|j
t jdƒƒ}    |    sýdS|t|    ƒkr|    dn |    |d}
||
kr`tjd|||
|    f|jƒƒdSn|jƒ} | rˆ|jƒ| krˆdS|jƒ} |jƒ} d}| s²| rl| sÄdg} n| sÖdg} nt| ƒt| ƒkrÿtjdƒdS|jƒ}d}x4t| ƒD]&\}}||kr:Pn| |}qW|dkrltjd|ƒdSnd}tj|}|dkr    |j|ƒ}t d||ƒ}|dkrÔtjd    ||fƒdS||kr    tjd
||||fƒ|}q    n|j!ƒ|j"ƒ|j#ƒ}}}|j$ƒ}|j%ƒ|j&ƒ}}||9}|j'ƒ}|j(ƒ}g}|r±t)|||ƒ}|j*||||gƒnxC|D];\}} }!t)|||ƒ}|j*|| ||!gƒq¸W|stj+d |||fƒdSd}"i}#xßt|ƒD]Ñ\}}$|$d}|$d}%tj,ƒj-|ƒ}&|&sŠtj+d ||fƒdS|&j.ƒtj/kr¨t j0ntj1}'t2t3j4t5|%ƒ|&j6ƒƒƒ}(|#j
|'dƒ|(|#|'<|dkr4|}"q4q4W|"sdStjd |||||"|#f|jƒƒxb|#j7ƒD]T\}'}(|(t8j9||'|(ƒkrL|j:|tj;ƒt<j=|d|'gƒdSqLWt>||||"|j?ƒƒrïtjd|||j?ƒf|jƒƒdSt<j@||ƒ})i|d6|d6|d6|d6|"tjA6}*t<jB|||tjC|*|ƒse|j:|tjDƒdSt<j@||ƒ}+|dkr­t<jE||||ƒtF||gƒni|d6|d6|d6|d6|d6|)d6|+d6},|tjGgk}-tHjI|ƒ}.xõ|D]í\}}}tHjJ|||ƒ}/|/s<q n|/jKƒ}0|/j.ƒtj/krft j0ntj1}'|.jL|'|/dtjM|-|,gƒs£|/jNƒq ntOjP|||ƒ|jQƒr ||"kr t<jRd|jQƒ|jSƒ|"|0gƒq q WtOjT||ƒtU|||ƒ|tjVddiƒjWƒkrWtXjY|tjZ|ƒn|t[tjVdƒƒkrt\|ƒndS(NitStoresÏÞÊ±ÌØ»Ý·Ç»î¶¯ÖУ¡state=%siÿÿÿÿisOÏÞÊ±ÌØ»Ý·Ç»î¶¯ÖеÄÉ̵êÀàÐÍ£¡state=%s,shopType=%s,actShopType=%s,shopTypeList=%ss)    ¹ºÂòÎïÆ·LimitVIPLV  LimitCnt ³¤¶È²»Í¬s    vip%s²ÅÄܹºÂòs6BuyShopItem ½ñÈÕ¹ºÂò´ÎÊýÒÑÂú£¡shopType=%s,itemIndex=%ssQBuyShopItem ÐÞÕý¹ºÂò´ÎÊý£¡shopType=%s,itemIndex=%s,clientBuyCount=%s,canBuyCnt=%ss@Store shop item error! shopType=%s,totalItemList=%s,itemPrice=%ss,Store shop item error! shopType=%s,itemID=%ssh¹ºÂòÎïÆ·: shopType=%s,itemIndex=%s,clientBuyCount=%s,totalItemList=%s,mainItemID=%s,needPackSpaceDict=%sRgsAStore shop item buy limit! shopType=%s,itemIndex=%s,limitValue=%st TotalItemListtClientBuyCounttShopTypet ShopItemIndext    ItemPricet    MoneyTypet BeforeMoneyt
AfterMoneyRhtCeremonyFirePartytSuperGiftTimeList(]RtIPY_CBuyItemListtGetBuyItemIndext GetBuyCountR0tGetIpyGameDataRdtGetOperationActionShopt
PyGameDatatg_operationActionDicttgetRtOperationActionName_SpringSalet ActKey_StateRtDebugLogt GetPlayerIDtPlayerSpringSaletGetShopTypeListt ActKey_CfgIDtActKey_DayIndexR9t
GetLimitLVtGetLVt GetLimitVIPLVR5tLogtGetVIPLvt    enumerateR R6R8tmaxt    GetItemIDt
GetItemCntRxt GetItemListExt GetMoneyTypet GetMoneyNumtGetJobt
GetJobItemt__GetShopJobItemRLtErrLogR#tGetItemByTypeIDtGetTypetDef_ItemType_RunetrptRuneRvRJtmathtceiltfloatt GetPackCounttitemst
ItemCommontGetItemPackSpacet
ShopResultt
tsrNoPlaceR`RytCheckBuyItemLimitExt GetLimitValuetGetMoneyR{R|tDef_Cost_BuyStoreItemt
tsrNoMoneyRaRFtTYPE_Price_Silver_MoneyRsRttGetOutPutItemObjt GetUserDataR~tItemGive_BuyItemtClearRtEventRespons_BuyItemt GetNotifyMarkt WorldNotifytGetNametEventRespons_ShopBuytSyncShoppingResulttGetFuncEvalCfgtvaluestPlayerFairyCeremonytAddFCPartyActionCnttDef_PPAct_FireworkstdictRR(1RRt buyItemListR@tclientBuyCounttipyDatatshopTypetactInfotstateRet actShopTypetlimitLVtLimitVIPLVListt LimitCntListt limitBuyCnttcurVIPlvRBtviplvRERDt    canBuyCnttitemIDt    itemCounttisBindt
itemListExRŠR‰tjobt jobItemListt totalItemListt    jobItemIDtitemIDExt itemCountExtisBindExt
mainItemIDtneedPackSpaceDicttitemInfotitemCntR†tpackTypet    needSpacet beforeMoneyR‹t
afterMoneytdataDictt isForceEventRˆt
curItemObjtuserData((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytBuyItemHs      0*                        & 
 
 
'%      #     !  '$
/! cCs™x’|D]Š}t|ƒttgkr@tjd||fƒ|S||kr|dksj|t|ƒkr…tjd||fƒ|S||dSqW|S(Ns3É̳ÇÖ°ÒµÎïÆ·×é¸ñʽ´íÎó!shopItemID=%s,jobItemList=%sis>É̳ÇÖ°ÒµÎïÆ·ÅäÖôíÎó,ûÓиÃÖ°Òµ¶ÔÓ¦ÎïÆ·ID!shopItemID=%s,job=%si(ttypetlistttupleRR·R9(RíRéRît jobItemIDList((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyR¶ðs  cCs2tjƒ}||_||_tj||ƒdS(N(R,ttagMCShoppingResultRHtItemCntR;R<(RR@R÷t
resultInfo((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRÔýs
         cCs|dkrtj||ƒ S|d
krv|jƒdkr?tS|jƒ}|dkrl|jtjƒ}n||kS|d kr¨tj    ƒj
t j ƒd}||kS|t jddiƒjƒkrÚtj||ƒ S|tt jd    ƒƒkrt||ƒ StS( Niii    i
iiiR–R—(ii    i
(i(t
PlayerRunetGetIsOpenByRuneIDt GetFamilyIDRt GetFamilyLVR8R tDef_Player_Dict_FamilyLVRRURVRRWR0RÕRÖR×tIsCanBuyFireworksRÚtCheckSuperGiftBuyR(Rt    shopNPCIDR@t    curItemIDt
limitValuet curFamilyLVR[((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRÅs"    
 
!cCs€tj|tjƒsdStjƒjtjƒd}|tj    dƒkrNdStj    ddƒ}t
j d|j ƒg|ƒdS(NiRSit    SellMail1( t GameFuncCommt GetFuncCanUseRtGameFuncID_OSSailRRURVRWR0RÕR`t SendMailByKeyR7(RR[t addItemList((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRS7sc Cs’|jtjƒ}|d|d}}tjdƒ}|t|ƒkrLdS|r]| r]dStjƒjt    j
ƒd}|}|r÷d}||}    xxt |dt|ƒƒD]A}
|||
d7}|    |kr×Pn|    |kr¯|
d}q¯q¯Wnt t|ƒ|dƒ}||kr dSt j|tj|d|ƒ|sQt|ƒn|dkrŽtjddƒ} t jd|jƒg| ƒntS(Ni
R—iiit    SellMail2(R8R tDef_PDict_SuperGiftDataR0RÕR9RRURVRRWR2tminR`RaRORR7R( RtisOndayt superGiftDatat    giftIndextstartDaytsuperGiftTimeListR[tnewIndextlastDaystpastDayRBR((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRRCs8 
      c
Csè|jtjƒ}|d|d}}tjdƒ}|dksT|t|ƒkrXdS||d\}}tjƒjt    j
ƒd}t d|||ƒd}t j ƒ}    ||    _ttj|ƒƒd |    _tj||    ƒdS(Ni
R—ii(R8R RR0RÕR9RRURVRRWR®R,ttagMCSuperGiftInfotGiftIDR€tGetDatetimeByDiffDaystEndtDateR;R<(
RRRRR tgiftIDtdayR[t    remainDaytpackData((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyROfs     c    Cs·|jtjƒ}|d|d}}tjdƒ}|dksT|t|ƒkrXdS||d\}}||kr|dStjƒjt    j
ƒd}t d|||ƒs³dSt S(Ni
R—ii( R8R RR0RÕR9RRURVRRWR®R(    RR(RRRR t    curGiftIDR)R[((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRus cCsVd}|jtjƒ}|s%tƒSt||ƒr8|Stjd||jƒƒ|S(Niÿÿÿÿs.GetCurStoreItemList:trade tag NPC not match:%s(t GetDictByKeyR R RtCheckTradeTagNPCRR·R£(RRR)((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytGetCurTradeTagNPC‡s  cCsd|jƒ}|stS|jƒtjkr/tStjƒj|jƒƒ}|j    ƒ|kr`tSt
S(N( RRRRRRRRRR    R(RR)RR((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyR.žs cCsCtjƒ}|jƒ}|jƒ}tj}t|||g|ƒS(N(RtIPY_CPlayerSellItemt GetPackTypet GetItemIndexR tDef_ShopType_NpcShopt SellPackItem(RRtsendDataRøR@RÞ((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytSellItemÛs
       cCsotjƒj|ƒ}|j}|j}|s1dStj}t||||ƒ}|rk|jt    j
dƒndS(Ni( RRRtPackTypeRHR R3R4tSync_MakeItemAnswerRtDef_mitKeySell(R„R(RRRøt ItemIndexListRÞtisOk((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytOnSellManyItemís            c
CsRd}|jƒj|ƒ}|dkr+tSt}ttjtjƒ}x·|D]¯}|j|ƒ}    t    ||    ƒswqMnt
}|    j ƒ}
t ||    ƒ\} } t | ƒ|
} || 7}|    jƒ|ko×tj|    ƒ }tj||    |
ttjd|ƒqMW|s
tSi}tj|tj|tj|tƒtj|dtj|gƒt
S(Nit    isForceDRt
GetMoney01(RmRnRRtrangeR tDef_ItemType_retWeapontDef_ItemType_retNeckRqt__CheckItemSellRRpRzRJR¹RstItemNotNeedRecordRÁtDelItemtItemDel_SellPackItemR`t    GiveMoneyRRÊtDef_GiveMoney_SellPackItemRy(RRøR=RÞttotalSellPriceR…t    hasSellOKtnotForceRecordEquipTypeListR@R†t curItemCounttcurItemSellPricetcurItemSellTypetcurAllItemSellPriceR=t addDataDict((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyR4s.   
 
"&"cCsûdSt|jtjƒƒ}|jƒjtjƒ}tj    |tjƒ}|dkrt
|dƒd}|j |ƒ}|j ƒ|d}n+|j t|dƒdƒ}|j |ƒ}d||df}|j|ƒtj|tjt
|ƒƒdS(NiÿÿÿÿiiRjs%s%s(R€R8R RRmRnRRoRÁtGetEmptyIndexInPackRJRqRÎR‚tPutInR`Ra(RR†RŒR…t
emptyIndextitem((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytPutItemInBuyBackPack0s 
  cCsÖtj|ƒs#tj|dƒdStj|ƒrFtj|dƒdS|jƒdkrltj|dƒdSt||ƒ\}}t|ƒ|j    ƒ}| s¥| r¹tj|dƒdStj
|||ƒsÒdSt S(NtGeRen_chenxin_644055titemuse_chenxin_31379itGeRen_lhs_272921( RÁtCheckItemCanUseR`RyRst IsEventItemt
GetCanSellRzRJRpt CanGiveMoneyR(RR†R‰RŠ((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRBMs"cCstj}|jƒ}||fS(N(RRÊtGetSilverPrice(RR†RŠt curItemPrice((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRzps     cCs-|jƒtjkr)tj|dƒtStS(NtGeRen_chenxin_740826(tGetPlayerActionR tDef_Player_DoEvent_StateR`RyRR(R((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytCheckPlayerCanStateEventœscCs|jƒtjkS(N(R¹R tDef_Compose_Can_Put_List(R†((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt__CheckItemCanPutInComposePack©sc    Cs’t||||ƒ}|dkr%dStj|ƒ}|j||jƒ||jƒƒsrtj|d|gƒdStj    ||||||ƒdS(NRg(
t__GetBackPackOperateItemRRsRtRuRwRxR`RytDragItem(    Rt srcBackpackt desBackPacktsrcIndext    destIndext putItemCountRtscrItemRˆ((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytBackpackOperate·s $cCsI|tjkrEt|ƒsEtjd|jƒ|jƒfƒtSntS(Ns+BackpackOperate ItemErr = %s, ItemType = %s(    R tDef_ComposePack_ListRcRR·RwR¹RR(RkRg((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt__CheckBackPackOperateÍs
 #cCsŠ|tjks|tjkrBtjd||f|jƒƒdS|jƒj|ƒj|ƒ}tj    |ƒssdSt
||ƒs†dS|S(NsHPackItemExchange packErr, srcBackpack = %s,             desBackPack = %s( R tDef_BackpackOperate_ListRR·R7RmRnRqRÁRXRn(RRfRgRhRk((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRdÝscCsyt||||ƒ}|dkr%dS|jƒj|ƒj|ƒ}|dks[|jƒr_dStj||||ƒdS(N(RdRRmRnRqt GetIsLockedRÁtDoLogicSwitchItem(RRft destBackPackRhRiRRktdestItem((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytPackItemExchangeús cCs}t|ƒ}xjtd|dƒD]V}||}||d}|j|ƒ}|dkre|||<q||c|7<qW|S(Niii(R9R?RŸR(t    moneyListt payMoneyDicttlengthR„t    moneyTypetmoneytpayMoney((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytGetPayMoneyDicts 
  cCs:x3|jƒD]%\}}tj|||ƒs tSq WtS(N(RÀR`t    HaveMoneyRR(RRvRxRy((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt CheckPayMoney%s(:R,R;RRRRsR R`RÁRtDataRecordPacktChItemR0RRR×R¤RtrandomR¼RRRR+RRFR/RPR\R]R^RXRfRiRR¶RÔRÅRSRRRORR/R.R6R<R4RTRBRzRaRcRlRnRdRtR{R}(((syE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt<module>2sp                                    
    "                     
            0    ¨              /     #                =            /        #    ,