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
~ð`c@s'ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „ZdS( iÿÿÿÿNc Cs
tjƒj|ƒ}|jƒ}|j}t|dƒrB|jnd}tjd||ƒ|jƒj    t
j ƒ}|j |ƒ}|j ƒr“dStj|ƒs¶tjd|ƒdS|jƒ}    |jƒ}
tjd|
ƒ} | sêdSt|d||    |
|gƒdS(Nt    SellCountisÍæ¼ÒÉϼÜÅÄÆ·: itemIndex=%ss·ÇÅÄÆ·£¬°ó¶¨ÎÞ·¨ÉϼÜ!t AuctionItemtAddAuctionItemQuery(t    GameWorldtGetPlayerManagertGetPlayerByIndext GetPlayerIDt    ItemIndexthasattrRtDebugLogtGetItemManagertGetPackt IPY_GameWorldtrptItemtGetAttIsEmptyt ItemControlertGetIsAuctionItemtLogtGetGUIDt GetItemTypeIDt IpyGameDataPYtGetIpyGameDatatQueryGameServer_AuctionHouse( tindext
clientDatattickt    curPlayertplayerIDt    itemIndext    sellCountt
playerPacktcurItemtitemGUIDtitemIDtipyData((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pytOnSellAuctionItem+s&         cCsitjƒj|ƒ}|jƒ}|j}|j}tj|tj    |ƒsOdSt
|d||gƒdS(NtBidAuctionItemQuery( RRRRtItemGUIDt BiddingPricet PlayerControlt    HaveMoneyR tTYPE_Price_Gold_PaperR(RRRRRR!t biddingPrice((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pytOnBiddingAuctionItemSs         cCsXt||gƒ}tjƒj|ddd|t|ƒƒtjd|||fƒdS(Nit AuctionHouses;ÅÄÂôÐз¢ËÍGameServer: playerID=%s,queryType=%s,queryData=%s(tstrRRtGameServer_QueryPlayerResulttlenR    (Rt    queryTypet    queryDatatmsgInfo((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pyR]s(c
Csãt|ƒdkrdS|\}}}|dkrr|\}}}}| sU|d rYdSt|||||ƒnm|dkrÀ|\}}    | sœ|d r dS|d}t|||    |ƒn|dkrßtj||ƒndS(NiRiR%tEquipStarAutoBuy(R0t__DoPlayerSellAuctionItemt__DoPlayerBidAuctionItemtOperate_EquipStartGameServer_EquipStarAutoBuy(
Rt
resultListR1R2tresultRR!R"RR+((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pytQueryResult_AuctionHousecs"   
 cCsŒi|d6|d6|d6}tj|tj|tj|ƒs@dSt|d|ƒ|jƒ}t|d||gƒt    j
|t j dƒdS(NtItemIDR&R't PlayerPayBidtBidAuctionItemi( R(tPayMoneyR R*tChConfigtDef_Cost_AuctionBidtDR_AuctionHouseRRtPlayerActivitytAddDailyActionFinishCntt ShareDefinetDailyActionID_AuctionItem(RR!R+R"tinfoDictR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pyR6zs! c
CsÄ|jƒ}|jƒjtjƒ}|j|ƒ}|jƒrCdStj|ƒsft    j
d|ƒdS|j ƒ}|j ƒ}    ||ks–||    krªt    j
d|ƒdSt |||ggƒdS(Ns·ÇÅÄÆ·£¬ÎÞ·¨ÉϼÜ!sÇëÇóÉϼܵÄÅÄÆ·Òѱ仯£¬ÎÞ·¨ÉϼÜ!(RR
R R R RRRRRRRRt__DoAddAuctionItem(
RRR!R"RRRR t curItemGUIDt    curItemID((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pyR5‰s    c Csÿtjd|ƒt}g}xÎ|jƒD]À\}}|\}}x¥|D]}t|ƒdkrgqIn|d \}}    tjd|ƒ}
|
s¯tjd|||    fƒqIntj    ||    |ƒ} | sÐqIn|j
| ||gƒqIWq*Wt d|ƒdS(s² ÉϼÜÏÉÃËÅÄÆ·£¬ÒòΪÏÉÃËÅÄƷĬÈÏÉϼܣ¬ËùÒÔʹÓÃÅúÁ¿ÉϼÜ
    @param familyAuctionItemDict: {ÏÉÃËID:[[ÏíÊÜÊÕÒæµÄ³ÉÔ±ID, ...], [[ÅÄÆ·ID,¸öÊý], [ÅÄÆ·ID,¸öÊý,ÊÇ·ñÅÄÆ·], ...]], ...}
    sÉϼÜÏÉÃËÅÄÆ·: %siRs@·ÇÅÄÂôÎïÆ·£¬ÎÞ·¨ÉϼÜÏÉÃËÅÄÆ·! familyID=%s,itemID=%s,itemCount=%sN( RRtTruetitemsR0RRtErrLogRtGetOutPutItemObjtappendRHtNone( tfamilyAuctionItemDictt isAuctionItemtauctionItemListtfamilyIDt auctionInfotfamilyPlayerIDListtfamilyAuctionItemListtitemInfoR"t    itemCountR#R ((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pytDoAddFamilyAuctionItem›s&   c     Csš|s dn    |jƒ}g}xF|D]>}|d}dg}}| rnt|ƒdkrn|d\}}n|jƒ}i|jƒd6|d6|jƒd6|jƒd6|jƒd6tj|ƒd    6|j    ƒd
6}    |rÉ| rÉtj
|ƒr t j ||j ƒƒnt|ƒd kr)|dnd}
|
dkrJ|jƒ}
nt|
|jƒƒ}
|
|    d<|
|jƒkrª|jƒ|    d <ttjƒƒjƒ|    d<ntj|||
ttjƒn9tj|ƒsøtjd |ƒ|jƒq%n|jƒi|d6|d6|    d6} t|d| ƒ|j||||    gƒtjd||| f|ƒq%Wt|d|ƒ|r–t j!|t"j#dƒndS(s± ÉϼÜÅÄÆ·£¬Ö§³ÖÅúÁ¿ÉϼÜ
    @param curPlayer: ·Ç¸öÈËÅÄƷʱΪNone
    @param auctionItemList: [[curItem], [curItem, sellCount], [curItem, familyID, familyPlayerIDList], ...]
    iiitGUIDR<t    ItemCounttItemTypet ItemJobLimitt ItemClassLVtUserDataitGUIDSrcs·ÇÅÄÆ·£¬°ó¶¨ÎÞ·¨ÉϼÜ!tFamilyIDtFamilyPlayerIDListtItemDatat MapClearItems$ÉϼÜÅÄÆ·: playerID=%s,familyID=%s,%stAddAuctionItemN($RR0RRtGetCounttGetTypet GetJobLimitt
ItemCommontGetItemClassLVt GetUserDatatCheckItemIsEquipt
EventShelltEventRespons_AddAuctionEquipt GetItemColortminR.tuuidtuuid1tuppertDelItemRKR@tItemDel_AuctionHouseRRRRtClearRBROR    RRCRDRERF( RRSRtaddAuctionItemListRXR RTRVR"titemDataRtdrDict((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pyRH³sH 
  $* " 
 
 
!c CsÞtjd|ƒt}g}x£|D]›}d}t|ƒtkrK|}nt|ƒtkr~t|ƒdkr~|\}}nát|ƒtkrEt|ƒdkrE|d \}}}}    }
|
rÊg} nFt|ƒdkræ|dng} tjd|||    || ddƒ} | s3tj    dt
|ƒƒq$nt j | ƒ}ntj    d    t
|ƒƒq$t jd
|ƒ} | sŽtj    d |ƒq$ntj|||ƒ}|s¯q$n|j|gƒq$W|sÍd Std |ƒd S( sx ÉϼÜϵͳÅÄÆ·
    @param sysAuctionItemList: [ÎïÆ·ID, [½×,ÑÕÉ«,[²¿Î», ...],ÊÇ·ñÌ××°,ÐǼ¶,[¿ÉÑ¡²ÎÊýÖ°Òµ, ...]], ...]
    sÉϼÜϵͳÅÄÆ·: %siiiitfindTypetSystemAuctionItemsϵͳÅÄÆ·ÕÒ²»µ½¿ÉÉϼܵÄ×°±¸! %ssϵͳÅÄÆ·¸ñʽ´íÎó£¬ÎÞ·¨ÉϼÜ! %sRs'·ÇÅÄÂôÎïÆ·£¬ÎÞ·¨ÉϼÜϵͳÅÄÆ·! itemID=%sN(RRRKttypetinttlistR0t    NPCCommont__GetEquipIDListRMR.trandomtchoiceRRRRNRORHRP(tsysAuctionItemListRRRStsysAuctionItemInfoRYR"tclassLVtcolort    placeListtisSuittstartrandEquipIDListt itemJobListR#R ((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pytDoAddSystemAuctionItemåsB     $$    "$ cCsAtjƒj|ƒ}|jƒ}|j}t|d|gƒdS(NtUnsellAuctionItem(RRRRR&R(RRRRRR!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pytOnUnsellAuctionItems
     cCsdS(N((Rt    eventNameRz((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pyRB$s(RR RtDataRecordPackR(RR7RjR@RERCRnR€R‚ttimeRrR$R,RR;R6R5RZRHRRRB(((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerAuctionHouse.pyt<module>s4               
    (    
                        2    1