cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
x{[c@sÙdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    d„Z
d„Z d„Z d„Z d„Zd„Zd    „Zd
„Zd „Zd „Zd „ZdS(sVersion = 2015-07-03 16:00iÿÿÿÿNcCsdS(N((tindexttick((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyt BeginShopItem-scCs|jƒtjkrtStS(N(tGetPlayerActiontChConfigtDef_ShopItem_PlayerStatetFalsetTrue(t    curPlayer((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyt__CheckBeginShopItemPlayerState³s    cCsotjƒj|ƒ}|jƒ}|jƒsGtjd|jƒƒdSt||ƒ|jƒtj    |ƒdS(NsEndShop -> ²»ÔÚ°Ú̯״̬(
t    GameWorldtGetPlayerManagertGetPlayerByIndext GetPlayerShoptGetIsStartShoptErrLogt GetPlayerIDt
DoExitShopt    ExitEventtClearPlayerPosCount(RRRt
playerShop((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pytEndShopÆs   
 cCs tjƒj|ƒ}|jƒ}tjƒ}|jƒ}|dkrVtj|ƒdStj    |tj
ƒ}|dkr{dSt ||ƒs¨tj d||jƒƒdS|jƒ}t|||ƒsÊdS|j|ƒ|j|ƒ|jƒ|jdƒ|j|ƒdS(Nis#WatchShop dist error: shopPlayID=%si(R
R R R t IPY_GameWorldtIPY_CWatchShopRt
EventShelltExitWatchShopItemtGetObjt    gotPlayertNonet__CheckShopItemDisttDebugLogt__CheckopenShopPlayertAddWatchPlayert SetActionObjt
BeginEventtSetIsWatchingShoptSync_WatchShop(RRt watchPlayertwatchPlayerShoptsendPacktplayerIDtopenShopPlayerR((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyt    WatchShopÝs,        
  cCsÒtjƒj|ƒ}t|ƒs5tj|dƒdS|jƒ}|jƒsgtjd|j    ƒƒdSt
j |t j ƒdkr–tj|dƒdSt jƒ}|jƒ}|jƒ}|dkràtjd|j    ƒƒdSt||ƒstjd|j    ƒ|j    ƒƒdS|jƒ}|jƒsEtjd|j    ƒƒdS|jƒjt j ƒ}|j|ƒ}    |    dkr–tjd||j    ƒƒdS|j|    jƒƒ}
|jƒ} |
jƒ} t||
| | ƒsÜdS|    jƒ| } t j}tj|ƒ| tjkr%tj|d    ƒdSi|
jƒtj 6}tj!||| tj"|ƒsstj#d
|j    ƒƒdSi|
jƒtj$6}tj%||| tj&|ƒ|j    ƒ}|j    ƒ}|j'|j    ƒ|| ƒt
j(|ƒ}|
jƒ}| | kr¸|
j)ƒ}|jƒ}|j*ƒ}|jƒ}t+j,|ƒ}|j-|ƒ|
j.ƒtj|d || gƒtj|d || gƒ|j/t j |ƒs®tjd |||ƒt0Snöt+j1|ƒ}|dkrôtjd||f||ƒdSt
j2|
| | |j    ƒ|j3ƒ|j4ƒƒ|
j)ƒ}t+j,|ƒ}tj|d || gƒtj|d || gƒt
j2|| |j    ƒ|j3ƒ|j4ƒƒ|j/t j |ƒtj|d|gƒ|j5ƒdS(NtGeRen_chenxin_93493s1BuyItem error: watchPlayer is not in watch state!itTask_WinLost_RoomLack02sBuyItem -> ÎÞ¶ÔÏós!BuyItem dist error: shopPlayID=%ssBuyItem ->Ä¿±ê²»ÔÚ°Ú̯״̬sBuyItem ->Î޴˰Ú̯ÎïÆ· = %stGeRen_admin_917284sBuyItem money not enough!!tLostRest ObtainRes01s*###Òì³£ÐÅÏ¢,·ÅÈëÍæ¼Ò±³°üʧ°Ü playerID = %ss+###Òì³£ÐÅÏ¢,Íæ¼Ò = %sÉ̵꠴´½¨ÎïÆ·Ê§°Ü = %stGeRen_admin_367906(6R
R R t__CheckShopPlayerLVt PlayerControlt
NotifyCodeR tGetIsWatchingShoptLogRt ItemControlertGetItemPackSpaceRtrptItemt IPY_CBuyItemt GetItemIndextGetActionPlayerRRRtGetItemManagertGetPackt GetSellItemAttGetAtt GetItemCounttGetCountt__CheckBuyItemt    GetSilvertTYPE_Price_Silver_MoneyRtDef_PlayerTotalMoney_Silvert GetItemTypeIDtDef_Cost_Reason_SonKeytPayMoneytDef_Cost_BuyStallItemRtDef_Give_Reason_SonKeyt    GiveMoneytDef_GiveMoney_StallItemtView_BuyShopItemToAllShopBuyertPlayerItemControlertGetItemtGetGUIDt
ItemCommontGetItemNoteDicttDeleteShopItemtWipet    PutInItemRtCreateSingleItemt SetItemCounttGetAccIDt GetPlayerNamet Sync_ShopItem(RRR%R&R't shopItemIndexR)RtopenShopPlayerPacktshopItemtbuyItemtbuyCounttbuyItemMaxCountt    costMoneytpayTypetinfoDictt addDataDictt watchPlayerIDtopenShopPlayerIDt watchPlayerICt buyItemTypeIDtsingItemt
singItemIDt singItemGUIDt singItemCountt    equipNotetnewItemt newEquipNote((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pytBuyItems¤                   
 
 
cCsL|dks|jƒrdS|dks4||krHtj|dƒdStS(NitGeRen_admin_774664(RtIsEmptyR2R3R(RtsellItemR_R`((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyRB®s cCsd|dkr0tjd|jƒ|jƒƒdS|jƒs`tjd|jƒ|jƒƒdStS(Ns²éÎ޴˰ÚÌ¯Íæ¼Ò:shopPlayerID=%ss°ÚÌ¯Íæ¼Òδ°Ú̯:shopPlayerID=%s(RR
RRRR(R%R)R((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyRÁs    cCsa|dkrtS|jƒr dS|jdƒ}|jƒtjksY|jdƒ|kr]dStS(Nii(RRrtGetEffectByIndext GetEffectIDRtDef_Item_Effect_ShopItemtGetEffectValue(RR]tshopLVteffIndex((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyt__CheckShopItemÓs  *cCs=tj|jƒ|jƒ|jƒ|jƒƒ}tj|kS(N(R
tGetDisttGetPosXtGetPosYRtDef_ShopItem_Dist(Rt curTagPlayertdist((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyRîscCsdS(N((RR((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyRùs,cCs)tjdƒ}|jƒ|kr%tStS(Nt TradeLVLimit(t ReadChConfigtGetEvalChConfigtGetLVRR(Rt tradeLVLimit((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyR1?s(t__doc__RR
RR2R6t PlayerTradeRQR‚RRR    RR*RpRBRRzRRR1(((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerShopItem.pyt<module>s(        
    †            8    ™                     F