hzr
2018-08-09 3346f8aae7f8abbd4b27c4564cbb802e7e717cc9
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
³ìÕZc@s£ddlZddlZddlZddlZddlZddlZddlZddlZddlZia    d„Z
d„Z d„Z d„Z d„ZdS(iÿÿÿÿNcCstjtƒ||ƒdS(N(t    GameWorldt GetPsycoFunct__Func_CreateRole(tindexttick((sT.\ProjectSServer\ServerPython\CoreServerGroup\GameServer\Script\Player\CreateRole.pyt
CreateRoleCsc/Csvtjƒj|ƒ}|jƒ}|dkrAtj|dƒdSd}|jƒ}|tkrl|t|<n2|t||kr”tj|dƒdS|t|<ttƒdkrg}x>tj    ƒD]0\}}|||dkrÃ|j
|ƒqÃqÃWx|D]}tj |ƒqþWnt j ƒ}|jƒ}    d}
d} d} d    } d
}d}d}|jƒ}tjƒj|    ƒ}    tjd |    |f|ƒt||    ƒs¸tj|d ƒdStj||    |ƒ}    |    sçtj|d ƒdStjd dƒ}||krtj|dƒdSt|ƒ}|sStj|dƒtjd||ƒdS|\}}}}tjj||f|d
fƒ\}}d}|tj| |ƒ7}|tj| |ƒ7}t|ƒ\}}}}|j||    dd
|
| | | ||dd
d
dd
d
d
d
d
d
d
|||||d
ddd
d
||||dd
d
|dd
dt j t j!ddƒ.dS(Ni't CreatSuccessi¸ tCreatingCharacteridièii'i'is(playerName = %s ´´½¨½ÇÉ«,sendPack_Job=%st    NameErrortOpenJobt CreatUnusuals(ûÓÐÖ°Òµ¶ÔÓ¦´´½ÇµØÍ¼ÐÅÏ¢:sendPack_Job=%stt111111iP("RtGetPlayerManagertGetPlayerByIndextGetIDt PlayerControlt
NotifyCodetGetAccIDtg_CreateRoleAccIDtlentitemstappendtpoptIPY_GameServertIPY_CCreateRoletGetNametGetJobt GetGameWorldt GetCharTrimtLogtCheckPlayerNametGetPlayerFullNamet IpyGameDataPYtGetFuncEvalCfgt__GetCreateRoleMapInfotErrLogt
PyGameDatatg_commMapLineInfotgettrandomtrandintt__GetPlayerBasePointtSendToDBPlayerCreatetTYPE_Price_Gold_PapertTYPE_Price_Silver_Money(RRt    curPlayert curPlayerIDtcreateSafeTicktaccIDttmpDicttsafeTicktsendPackt sendPack_Namet sendPack_Sext sendPack_HairtsendPack_HairColort sendPack_FacetsendPack_FacePictserverIDtsendPack_PlayerTypet sendPack_JobtopenJobt createMapInfot    dataMapIDtlineIDtposXtposYtmapIDt    copyMapIDt    bornRangetbaseSTRtbasePNEtbasePHYtbaseCON((sT.\ProjectSServer\ServerPython\CoreServerGroup\GameServer\Script\Player\CreateRole.pyRLsÌ     
 
  'cCs&d
\}}}}tjd|dƒ}|sOtjd|ƒ||||fSxÄ|jƒD]¶\}}t|ƒtkr‰|jƒ}n|dtj    gkr§|}q\|dtj
gkrÅ|}q\|dtj gkrã|}q\|dtj gkr|}q\tjd    |ƒq\W||||fS( NisCreatRolePoint%sis$CreatRoleErr RoleBasePoint, job = %stSTRtPNEtPHYtCONs$CreatRoleErr RoleBasePoint, key = %s(iiii( R!R"RR$Rttypetstrtuppert ShareDefinetDef_Effect_STRtDef_Effect_PNEtDef_Effect_PHYtDef_Effect_CON(R=RGRHRIRJtjobDicttkeytvalue((sT.\ProjectSServer\ServerPython\CoreServerGroup\GameServer\Script\Player\CreateRole.pyR*ûs$                cCsª|jƒdkrtStj|ƒr:tjd|ƒtSt|ƒ}|tjkrvtjd||tjfƒtS|tj    kr¦tjd||tj    fƒtSt
S(NR s!Íæ¼Ò´´½¨½Çɫʧ°Ü, Ãû×Ö²»ºÏ·¨ = %ss-Íæ¼Ò´´½¨½Çɫʧ°Ü, ½ÇÉ«Ãû×Ö¹ý¶Ì = %s , %s < %ss-Íæ¼Ò´´½¨½Çɫʧ°Ü, ½ÇÉ«Ãû×Ö¹ý³¤ = %s , %s > %s( tstriptFalset    DirtyListtIsWordForbiddenRRRtChConfigtDef_CreatRole_MinStrtDef_CreatRole_MaxStrtTrue(R.t
playerNamet playerNameLen((sT.\ProjectSServer\ServerPython\CoreServerGroup\GameServer\Script\Player\CreateRole.pyR s cCstjddƒ}||kr"dS||\}}}tjddƒ}||krc|d||fS||}d}g}tjƒjƒ}    |    jƒ}
x5t|
ƒD]'} |    j| ƒ} | j    ƒ} | j
ƒ}x÷t|ƒD]é}| j |ƒ}|j ƒ}|j ƒ}x¹t|ƒD]«}|j|ƒ}|j ƒ}|jƒ}|jƒ}|jƒ}||kroqn||kr‘|j||gƒq| r­|dkr­|}q|r||||fSqWqÞWq¤W|dkrë||||fS|sõdS|jƒ|dd}||||fS(sX»ñÈ¡´´½ÇÖØÉúÐÂÊÖ´åµØÍ¼
    @return: None
    @return: dataMapID, lineID, posX, posY
    t CreateRoleMapiNtSetWorldPosShunti(R!R"tNoneRRtGetMapServerStateManagertGetZoneServerCnttrangetGetZoneServerByIndextGetRouteServerIndext GetMapCounttGetMapServerStateByIndextGetMapIDt GetLineCounttGetLineByIndext    GetLineIDtGetCurPlayerCnttGetMaxPlayerCntRtsort(tjobtcreateRoleMapDicttcreateRoleDataMapIDRBRCtmapShuntInfoDicttlineMaxPlayerCountt emptyLineIDt heavyLineListtmapServerStateManagert zoneServerCntt    zoneIndextzoneServerStatetrouteServerIndextmapCounttitmapServerStateR@t    lineCountt    lineIndext    lineStateRAt curPlayerCntt maxPlayerCntt heavyLineID((sT.\ProjectSServer\ServerPython\CoreServerGroup\GameServer\Script\Player\CreateRole.pyR#4sR  
                
(RR!R\RR(R^RRRR%RRRR*RR#(((sT.\ProjectSServer\ServerPython\CoreServerGroup\GameServer\Script\Player\CreateRole.pyt<module>s         !            ¯    %