cehua-HWJ35
2019-01-28 22e19fa56d6afd9540178a1f6991bcc0ceaff896
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
105
106
107
108
109
110
111
112
113
114
115
ÝJ\c@sŒddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZd„Zd„Zd„Zd„Zged„Zd„Zd„Zd    „Zd
„Zd „Z d „Z!d „Z"d„Z#d„Z$d„Z%d„Z&d„Z'dd„Z)d„Z*d„Z+d„Z,d„Z-ed„Z.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4d„Z5d „Z6d!„Z7d"„Z8d#„Z9d$„Z:d%„Z;d&„Z<d'„Z=d(„Z>id)„Z?d*„Z@dS(+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((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt
StartTradePs    cCsdS(Ni((((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytGetDirectNpcIDhscCstj|ƒtS(N(t
EventShellt DoExitEventR(RR((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt    ExitEventqs 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((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytQueryNPCShopItem{s      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((si.\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((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyR/¸s           cCstj|tjtjƒsktj|tjtjdƒ|jtjƒ}|rktj    |tj
dƒqknt |ƒt |ƒt |ƒdS(Ni(RtGetDictValueByBitR tDef_Player_Dict_VersionFixtDef_VerFix_SuperGifttSetDictValueByBitR8tDef_PDict_GoldGiftFirstRecordt PlayerControltNomalDictSetPropertytDef_PDict_SuperGiftHasOpentSyncMysticalShopInfoRFtSyncSuperGiftInfo(RtisGet((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytShopItemOnLoginÃs
 
 
cCs™|tjkr2t|tƒt|ƒdg}nV|tjkr„dg}tjƒjtj    ƒ}|ddkrˆddg}qˆndSt
||ƒdS(Niiii( RtDef_OnEventTypetUpdataSuperGiftTimeRtOSSaleOpenMailtDef_OnEventTypeExRt GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayt__ResetShopItemBuyCount(Rt onEventTypet refreshTypet openServerDay((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt ShopItemOnDayÓs 
      cCst||gƒdS(N(Rb(RRc((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytShopItemOnWeekåscCsH|tjkrd}n|tjkr0d}ndSt||gƒdS(Nii(RR[R^Rb(RRcRd((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytShopItemOnMonthìs        cCsd}t||gƒdS(Ni(Rb(RRd((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytShopItemOnCrossPKSeasonChangeöscCsß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 R6R7R8RTRURLRFR(RtonEventTypeListt syncIndexListRARBRCRDRE((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRbü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 R6R7R8RTRURLRFR(Rt shopTypeListRlRARBRCRDRE((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytResetShopItemBuyCountByShopTypes"   c    CsÚtjdidd6tƒ}|s&dSttjƒƒ}g}x‚|D]z}|jƒ}||krE||krE|jƒ}tj|t    j
||ƒ|j |ƒt j d||jƒƒqEqEW|rÖt|ƒndS(NtStoreitShopTypesÉñÃØÏÞ¹ºÉÌÆ·%s ¿ªÂô(R0tGetIpyGameDataByConditionRRJttimet
GetLimitLVR7RTRUR tDef_PDict_ShopItemStartTimeRLRtDebugLogRW(    RtbefLVtaftLVt ipyDataListtcurTimet syncGoodsListtipyDatatlimitLVtgoodsID((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytMysticalShopOpen$s    ! cCstjƒ}g|_tjdidd6tƒ}ttjƒƒ}x|D]•}|jƒ}|j    t
j |ƒ}|s~qJn|||j ƒkr±t j|t
j |dƒqJtjƒ}||_||_|jj|ƒqJW|jsðdSt|jƒ|_tj||ƒdS(NRpiRqi(R,ttagMCMysticalShopTimeInfot ShopTimeListR0RrRRJRsR7R8R Rut GetLimitValueRTRUttagMCMysticalShopTimetGoodsIDt    StartTimeRLR9R:R;R<(RtpackDataRyRzR|R~t    startTimet    goodsTime((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRW6s(                    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    GetIsBindRTt
NotifyCodet__GetItemSellPriceRJR tDef_Cost_Reason_SonKeytPayMoneytDef_Cost_BuyItemBackt    PutInItemtFalsetstrR8tDef_Player_Dict_DelPackIndextreplaceRU( Rt
clientPackRtindextbackPacktcurItemt realPutCountt itemControlt    itemPricet    priceTypetinfoDictt
itemIndexs((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyR‹Rs:          "     c/ CstjƒrdStjƒ}|jƒ}|dkr8dS|jƒ}|sNdStjd|ƒ}|sjdS|jƒ}|j    ƒ}|dkr|t
j j t jiƒ}|j t jdƒ}    |    sßtjd|    |jƒƒdStj|j t jdƒ|j t jdƒƒ}
|
sdS|    t|
ƒkr5|
dn |
|    d} || krYtjd|    || |
f|jƒƒdSnÝ|dkrYt
j j t jiƒ}|j t jdƒ}    |    sÙtjd|    |jƒƒdStj|j t jdƒ|j t jdƒ|    ƒ}
|
sdS|
d} || krYtjd    |    || |
f|jƒƒdSn|jƒ} | r|jƒ| krdS|jƒ} |jƒ}d}| s«|re| s½dg} n|sÏdg}nt| ƒt|ƒkrøtjd
ƒdS|jƒ}d}x4t| ƒD]&\}}||kr3Pn||}qW|dkretjd |ƒdSnd}t j!|}|dkr|j"|ƒ}t#d||ƒ}|dkrÍtjd ||fƒdS||krtjd ||||fƒ|}qn|j$ƒ}|dkr,t%||ƒ}n|j&ƒ|j'ƒ|j(ƒ}}}|j)ƒ}|j*ƒ|j+ƒ}}||9}|j,ƒ}|j-ƒ}g}|rÔt.|||ƒ} |j/| |||gƒnxC|D];\}!}"}#t.||!|ƒ} |j/| |"||#gƒqÛW|s>tj0d|||fƒdSd}$i}%x½t|ƒD]¯\}}&|&d}|&d}'tj1ƒj2|ƒ}(|(s­tj0d||fƒdSt j3|(j4ƒƒ})t5j6|)|(|'ƒ}*|%j |)dƒ|*|%|)<|dkrW|}$qWqWW|$sdStjd|||||$|%f|jƒƒ|j7ƒ}+t8},xu|%j9ƒD]g\})}*|*t:j;||)|*ƒkr_t<},|+r–PqÆ|j=|tj>ƒt?j@|d|)gƒdSq_q_W|,rÜ|+rÜ|+nd}-tA||||$|jBƒƒr-tjd|||jBƒf|jƒƒdSt?jC|||ƒsY|j=|tjDƒdS|dkrö|jEt jFƒdkr’tjd|ƒdSd|||||$||-g}.tjGƒjH|jIƒddd|.t|.ƒƒ|jJt jFdƒdStK|||||$||-|ƒdS(NiRpisÏÞÊ±ÌØ»Ý·Ç»î¶¯ÖУ¡state=%siÿÿÿÿsOÏÞÊ±ÌØ»Ý·Ç»î¶¯ÖеÄÉ̵êÀàÐÍ£¡state=%s,shopType=%s,actShopType=%s,shopTypeList=%sisÏÞʱÇÀ¹º·Ç»î¶¯ÖУ¡state=%ssOÏÞʱÇÀ¹º·Ç»î¶¯ÖеÄÉ̵êÀàÐÍ£¡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=%sR‰RŒsAStore shop item buy limit! shopType=%s,itemIndex=%s,limitValue=%ss1È«·þ¹ºÂò´ÎÊýÒѾ­ÔÚ²éѯÖÐ, ²»Öظ´²éѯ itemIndex=%ss%stGetStoreServerBuyCnt(LRt IsCrossServerRtIPY_CBuyItemListtGetBuyItemIndext GetBuyCountR0tGetIpyGameDataRmtGetOperationActionShopt
PyGameDatatg_operationActionDicttgetRtOperationActionName_SpringSalet ActKey_StateRvt GetPlayerIDtPlayerSpringSaletGetShopTypeListt ActKey_CfgIDtActKey_DayIndexR9tOperationActionName_FlashSaletPlayerFlashSaleRttGetLVt GetLimitVIPLVR5tLogtGetVIPLvt    enumerateR R6R8tmaxtGetServerLimitCnttmint    GetItemIDt
GetItemCntRšt GetItemListExt GetMoneyTypet GetMoneyNumtGetJobt
GetJobItemtGetShopJobItemRLtErrLogR#tGetItemByTypeIDtGetItemPackTypetGetTypeR•tGetItemNeedPackCountt
GetMailKeyR¡titemst
ItemCommontGetItemPackSpaceRt
ShopResultt
tsrNoPlaceRTR›tCheckBuyItemLimitExR‚t    HaveMoneyt
tsrNoMoneyt GetDictByKeytDef_PlayerKey_StoreQueryStateRtGameServer_QueryPlayerResultR7R
tDoBuyStoreItem(/RRt buyItemListR@tclientBuyCountR|tshopTypetoperationActionShopTypetactInfotstateRnt actShopTypeR}tLimitVIPLVListt LimitCntListt limitBuyCnttcurVIPlvRBtviplvRERDt    canBuyCnttserverLimitCnttitemIDt    itemCounttisBindt
itemListExR¬R«tjobt jobItemListt totalItemListt    jobItemIDtitemIDExt itemCountExtisBindExt
mainItemIDtneedPackSpaceDicttitemInfotitemCntR¨tpackTypet    needSpacetmailKeyt
isLackPackt sendMailKeytcmdStr((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytBuyItem‚s        0*      3
                          & 
 
 
      #        cCs|stjd|ƒ}n|jƒ|jƒ}}    |    |9}    |jƒ}
tj||ƒ} i|d6|d6|
d6|d6|tj6} tj    |||    tj
| |ƒtj||ƒ} |dkr tj |}|j |ƒ}tj ||||ƒt||gƒni|
d6|d6|d6|    d6|d6| d    6| d
6}|tjgk}tj|ƒ}xö|D]î\}}}tj|||ƒ}|sšqjn|jƒ}|søtj|jƒƒ}|j||d tj||gƒs|jƒqjqn
|jƒtj|||ƒ|jƒrj||krjtjd|jƒ|jƒ||gƒqjqjW|r‡tj||j ƒg|d |ƒntj!||
ƒt"|||ƒ|tj#d diƒj$ƒkrát%j&|tj'|ƒn|tj#ddiƒj$ƒkrt(j&|tj'|ƒndS(NRpt TotalItemListtClientBuyCountRqt ShopItemIndexit    ItemPricet    MoneyTypet BeforeMoneyt
AfterMoneyRŠtdetailtCeremonyFirePartyitNewCeremonyFireParty()R0R´RÍRÎRmRTtGetMoneyR RRžtDef_Cost_BuyStoreItemR6R8RURFRtTYPE_Price_Silver_MoneyR•R–tGetOutPutItemObjt GetUserDataRÔRÕR tItemGive_BuyItemtClearRtEventRespons_BuyItemt GetNotifyMarkt WorldNotifytGetNamet SendMailByKeyR7tEventRespons_ShopBuytSyncShoppingResulttGetFuncEvalCfgtvaluestPlayerFairyCeremonytAddFCPartyActionCnttDef_PPAct_FireworkstPlayerNewFairyCeremony(RR@RåRøRýRíRR|R¬R«Ræt beforeMoneyR­t
afterMoneyRDREtdataDictt isForceEventRªRòRóRôt
curItemObjtuserDataR((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRã*sV
    $
    
/%!!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((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRÑbs  cCs2tjƒ}||_||_tj||ƒdS(N(R,ttagMCShoppingResultRHtItemCntR;R<(RR@Rt
resultInfo((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRos
         c    CsY|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|t jd    diƒjƒkr tj||ƒ S|d
krU|jtj|ƒ}ttjƒƒ}| pT|||kStS( Niii    i
iiiRRi(ii    i
(i(t
PlayerRunetGetIsOpenByRuneIDt GetFamilyIDRt GetFamilyLVR8R tDef_Player_Dict_FamilyLVRR_R`RRaR0R R!R"tIsCanBuyFireworksR%RuRJRsR¡(    Rt    shopNPCIDR@t    curItemIDt
limitValuet curFamilyLVReR‡Rz((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRÝzs*    
 
!! cCs€tj|tjƒsdStjƒjtjƒd}|tj    dƒkrNdStj    ddƒ}t
j d|j ƒg|ƒdS(NiR]it    SellMail1( t GameFuncCommt GetFuncCanUseRtGameFuncID_OSSailRR_R`RaR0R RTRR7(RRet addItemList((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyR]¯scCsþttjƒƒ}|r–|jtjƒ}|s4dStjdƒ}tg|D]}|d^qMƒ}|||dkrútj    |tjdƒqúnd|jtj
ƒr¬dStj    |tj|ƒtjddƒ}tj d|j ƒg|ƒt |ƒtS(NtSuperGiftTimeListii€Qiit    SellMail2(RJRsR8R tDef_PDict_SuperGiftStartTimeR0R RÇRTRURVRR7RXR(RtisOndayRzR‡tsuperGiftTimeListtinfotmaxDayRA((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyR\»s #
cCsE|jtjƒ}|sdStjƒ}||_tj||ƒdS(N(R8R RDR,ttagMCSuperGiftInfoR…R;R<(RR‡R†((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRXÑs     cCs{|jtjƒ}|sdSttjdƒƒ}|j|dƒ}|sMdSttjƒƒ}||d|krwdSt    S(NRBii€Q(
R8R RDtdictR0R R¸RJRsR(RtgiftIDR‡tsuperGiftTimeDictttotalDayRz((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytCheckSuperGiftBuyÙscCsVd}|jtjƒ}|s%tƒSt||ƒr8|Stjd||jƒƒ|S(Niÿÿÿÿs.GetCurStoreItemList:trade tag NPC not match:%s(RàR R RtCheckTradeTagNPCRRÒR»(RRR)((si.\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( RR¡RRRRRRRR    R(RR)RR((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyROs cCsCtjƒ}|jƒ}|jƒ}tj}t|||g|ƒS(N(RtIPY_CPlayerSellItemt GetPackTypet GetItemIndexR tDef_ShopType_NpcShopt SellPackItem(RRtsendDataRR@Ræ((si.\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 RTRUtSync_MakeItemAnswerRtDef_mitKeySell(R¦R(RRRt ItemIndexListRætisOk((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytOnSellManyItemRs            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(RRRR¡trangeR tDef_ItemType_retWeapontDef_ItemType_retNeckR“t__CheckItemSellRR’RœRJRÕR•tItemNotNeedRecordRÙtDelItemtItemDel_SellPackItemRTt    GiveMoneyRRtDef_GiveMoney_SellPackItemR›(RRR=RættotalSellPriceR§t    hasSellOKtnotForceRecordEquipTypeListR@R¨t curItemCounttcurItemSellPricetcurItemSellTypetcurAllItemSellPriceR^t addDataDict((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRUfs.   
 
"&"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ÿÿÿÿiiRŒs%s%s(R¢R8R R£RRRR‘RÙtGetEmptyIndexInPackRJR“RR¤tPutInRTRU(RR¨R®R§t
emptyIndextitem((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytPutItemInBuyBackPack•s 
  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ÙtCheckItemCanUseRTR›R•t IsEventItemt
GetCanSellRœRJR’t CanGiveMoneyR(RR¨R«R¬((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRc²s"cCstj}|jƒ}||fS(N(RRtGetSilverPrice(RR¨R¬t curItemPrice((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyRœÕs     cCs-|jƒtjkr)tj|dƒtStS(NtGeRen_chenxin_740826(tGetPlayerActionR tDef_Player_DoEvent_StateRTR›R¡R(R((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytCheckPlayerCanStateEventscCs|jƒtjkS(N(RÕR tDef_Compose_Can_Put_List(R¨((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt__CheckItemCanPutInComposePacksc    Cs’t||||ƒ}|dkr%dStj|ƒ}|j||jƒ||jƒƒsrtj|d|gƒdStj    ||||||ƒdS(NR‰(
t__GetBackPackOperateItemRR•R–R—R™RšRTR›tDragItem(    Rt srcBackpackt desBackPacktsrcIndext    destIndext putItemCountRtscrItemRª((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytBackpackOperates $cCsI|tjkrEt|ƒsEtjd|jƒ|jƒfƒtSntS(Ns+BackpackOperate ItemErr = %s, ItemType = %s(    R tDef_ComposePack_ListR„RRÒR™RÕR¡R(RŒRˆ((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt__CheckBackPackOperate2s
 #cCsŠ|tjks|tjkrBtjd||f|jƒƒdS|jƒj|ƒj|ƒ}tj    |ƒssdSt
||ƒs†dS|S(NsHPackItemExchange packErr, srcBackpack = %s,             desBackPack = %s( R tDef_BackpackOperate_ListRRÒR7RRR“RÙRyR(RR‡RˆR‰RŒ((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyR…BscCsyt||||ƒ}|dkr%dS|jƒj|ƒj|ƒ}|dks[|jƒr_dStj||||ƒdS(N(R…RRRR“t GetIsLockedRÙtDoLogicSwitchItem(RR‡t destBackPackR‰RŠRRŒtdestItem((si.\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((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pytGetPayMoneyDictus 
  cCs:x3|jƒD]%\}}tj|||ƒs tSq WtS(N(RØRTRÞR¡R(RR—R™Rš((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt CheckPayMoneyŠs(AR,R;RRRR•R RTRÙRRÁtChItemR0R3R>R"R%R¼R¶trandomtmathRsRRRR+R¡RFR/RZRfRgRhRiRbRoRRWR‹RRRãRÑRRÝR]R\RXRNRPRORWR]RURuRcRœR‚R„RRR…R•RœR(((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\FunctionNPCCommon.pyt<module>2s|                                      
    "                     
                        0    ¨ 8              5                     =            /        #    ,