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
hl6hc@suddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ej Z dZd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"e#d„Z$d„Z%d„Z&dS(iÿÿÿÿNicCs
|jƒS(N(t    GetValue2(t gActionData((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt
GetFAPrice&scCs |j|ƒS(N(t    SetValue2(Rtprice((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt
SetFAPrice'scCs
|jƒS(N(t    GetValue3(R((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pytGetFAIsNegative(scCs |j|ƒS(N(t    SetValue3(Rt
isNegative((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pytSetFAIsNegative)scCs't|ƒ}t|ƒ}|s"|S| S(N(RR(RRR    ((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pytGetFAPriceFinal*s  cCs6t|t|ƒƒt||dkr+dndƒdS(Nii(RtabsR
(Rt
totalPrice((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pytSetFAPriceFinal/scCst|jƒƒS(N(tevalt GetUserData(R((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt GetFAItemList3scCs|j|ƒdS(N(t SetUserData(RtitemList((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt SetFAItemList4scCs
|jƒS(N(t    GetValue1(t
actionData((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt GetFAPlayerID9scCs |j|ƒS(N(t    SetValue1(RtplayerID((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt SetFAPlayerID:scCs
|jƒS(N(R(R((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt GetFACutPrice;scCs |j|ƒS(N(R(RtcutPrice((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt SetFACutPrice<scCs
|jƒS(N(R(R((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt GetFABuyState=scCs |j|ƒS(N(R(RtbuyState((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt SetFABuyState>scCst|ƒdS(N(tOnZhenbaogeReset(tfamily((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pytOnDay@s
cCst|ƒdS(N(tSync_ZhenbaogeInfo(t    curPlayer((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt OnPlayerLoginDs
cCs:tj|tjdƒtj|tjdƒt|ƒdS(Ni(t PlayerControltNomalDictSetPropertytChConfigt"Def_Player_Dict_FamilyZhenbaogeCutt"Def_Player_Dict_FamilyZhenbaogeBuyR$(R%((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt PlayerOnDayHs
c Csÿ|jƒ}tjƒ}|j|tƒ|j|tƒ}|jƒ}t|tƒt    j
ddƒ}g}t    j ƒ}xHt |j ƒƒD]4}|j|ƒ}    |j|    jƒ|    jƒgƒqŠWtj|gƒ}
t||ƒt||
ƒtj|ƒdS(Nt    Zhenbaogei(tGetIDt    DBDataMgrtGetFamilyActionMgrtDelFamilyActiont
ActionTypetGetFamilyActiont    AddActionRtActionGlobalIDt IpyGameDataPYt
GetFuncCfgtIPY_DatatrangetGetFamilyZhenbaogeItemCounttGetFamilyZhenbaogeItemByIndextappendt GetItemWeightt GetItemListt    GameWorldtGetResultByWeightListRRt PlayerFamilytSendFamilyAction( R"tfamilyIDt    actionMgrt familyActionRt    initPricet randItemListt
ipyDataMgrtindextipyDataR((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyR!Ns"     #   cCsmd}tjƒj|tƒ}xHtd|jƒƒD]1}|j|ƒ}t|ƒ|kr4|}Pq4q4W|S(Ni(    tNoneR/R0R3R2R9tCounttAtR(RCRtfindActionDataRERIR((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pytGetZhenbaogeActionDatajsc CsW|s
dS|jƒ}tjƒj|tƒ}|jƒ}|d}|jƒ}tjd|ƒ}|sldS|j    ƒ}    ||    kr¨t
j d||    ||f|ƒdSt ||ƒ}
|
rát |
ƒrát
jd||ƒdS|d} tjd| ƒ} | sdS| jƒ} | jƒ}| jƒ}|jƒ}tjƒ}tjddƒ}tdttjddƒƒƒ}t|ƒ}||}tjddƒ}||kr||krßt|tjd    dƒƒ}||}ntjddƒ}||}t
jd
|||f|ƒn/t
jd |||| |||||f    |ƒtd|ƒS( NitFamilysDÒÑ´ïµ½ÏÉÃË¿³¼ÛÈË´ÎÉÏÏÞ! hadCutCount=%s >= %s,familyID=%s,familyLV=%ss%ÒѾ­ÔÚ¸ÃÃËÕ䱦¸ó¿³¼Û¹ýÁË! familyID=%stFamilyZhenbaogeCutR-it ZhenbaogeCutis=Õ䱦¸ó¿³¼Û¼ÆËãµØ°å¼Û±£»¤: cutPrice=%s,nowPrice=%s,updPrice=%ssqÕ䱦¸ó¿³¼Û¼ÆËã: cutPrice=%s,nowPrice=%s,updPrice=%s,cutWeight=%s/%s,minRatio=%s,randRatio=%s,rand=%s,initPrice=%s(R.R/R0R3R2RLtGetLVR6tGetIpyGameDatat GetMemberMaxR?tErrLogRORtDebugLogt GetCutWeightt GetMinRatiot GetRandRatiotGetZhenbaogeWeightstrandomR7tmaxRtGetFuncCompileCfgR tinttrandint(t    curFamilyRRRCREt actionCountt hadCutCounttfamilyLVt fmLVIpyDatat maxMemberCntRtcutNumt
cutIpyDatat    cutWeighttminRatiot    randRatiot totalWeighttrandRFRtnowPricetupdPricet lowestPrice((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt CalcCutPriceusV  
       
     ! 
 
     &c
Cs±tjƒj|tƒ}|jƒ}|j|ƒt||ƒt||ƒt|ƒ}||}    t    ||    ƒt
j d||||    |f|ƒ|r­t j ||gƒn|S(NsKÕ䱦¸ó¿³¼Û¸üÐÂ: playerID=%s,cutPrice=%s,nowPrice=%s,updPrice=%s,familyID=%s(R/R0R3R2R4tSetNameRRR RR?RWRARB(
RCRt
playerNameRRtisNotifyRERRnRo((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt AddCutPrice°s     
     c    CsÓtjƒj|ƒ}|j}|jƒ}|jƒ}|sPtjd|ƒdStjƒj    |ƒ}|sodSt
|t ƒ}|sœtjd||ƒdS|dkr´t j |ƒ}    |jtjƒ}
|
r.|    r.tjddƒd} ttjƒƒ|    } | | kr.tjd| | f|ƒdSnt|||ƒ} | sJdSt|||jƒ| |ƒt j|d| gƒ|jtjƒsÏt j|tjd    ƒt|ƒqÏn|d    krÏ|jtjƒ}|rìtjd
|ƒdStjdd    ƒ}t j||ƒ}t
||ƒ}|s=tjd ||ƒdSt|ƒratjd ||ƒdSt|ƒ}|dkr£||kr£tjd ||f|ƒdSt|ƒ}tjd|||f|ƒt |d    ƒt!j"|ƒ|dkr%t j#|||dƒsKtj$d||ƒdSn&|dkrKt j%||| dƒnt j|tjd    ƒt|ƒ|r™t&j'||ddt(igdt(ƒnt&j)||ddi|dkrÀdn| |6ƒndS(NsûÓÐÏÉÃËÎÞ·¨²Ù×÷Õ䱦¸ó!sÕ䱦¸ó»¹Ã»ÓÐË¢ÐÂ! familyID=%siR-ii<s-½ñÈÕÒÑ¿³¼Û±ä¸üÏÉÃË¿³¼ÛCDÖÐ! passTimes=%s < %sRRisÕ䱦¸ó½ñÈÕÒѹºÂò!s#Õ䱦¸óδ¿³¼Û£¬ÎÞ·¨¹ºÂò! familyID=%ssÕ䱦¸óÒѾ­¹ºÂò¹ýÁË! familyID=%ss>Íæ¼Òµ±Ç°»õ±Ò²»×㣬ÎÞ·¨¹ºÂòÕ䱦¸óÎïÆ·! playerMoneyValue=%s < %ss3Õ䱦¸ó¹ºÂò! familyID=%s,nowPrice=%s,giveItemList=%ssÕ䱦¸ó¹ºÂò»õ±Ò²»×ã! nowPrice=%steventt isNotifyAwardt    moneyInfo(*R?tGetPlayerManagertGetPlayerByIndextOpTypet GetPlayerIDt GetFamilyIDRWR/t GetFamilyMgrt
FindFamilyROR5R'tGetLeaveFamilyTimeExtNomalDictGetPropertyR)R*R6R7R_ttimeRqRutGetNamet
NotifyCodeR(R$R+tGetMoneyRR RR RARBtPayMoneyRVt    GiveMoneyt ItemControlertGivePlayerItemOrMailtFalsetNotifyGiveAwardInfo(RIt
clientDatattickR%topTypeRRCRaRt leaveTimeExtcutStatet
cutCDTimest    passTimesRRt    moneyTypetplayerMoneyValueRRnt giveItemList((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt OnZhenbaogeOPÉs‚                 
(6cCsJtjƒ}|jtjƒ|_|jtjƒ|_tj    ||ƒdS(N(
tChPyNetSendPackttagMCFamilyZhenbaogeInfoRR)R*tCutStateR+tBuyStatet NetPackCommont SendFakePack(R%t
clientPack((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyR$s
 ('R)t ShareDefineR6R›R—RˆR'RAR?R/R\R‚tDef_ActionType_ZhenbaogeR2R5RRRR
R RRRRRRRRR R#R&R,R!RORqtTrueRuR–R$(((stD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFamilyZhenbaoge.pyt<module>sH                                                                                                 ;     T