hxp
2025-05-29 a35e1e0a0e553c49fb4f47a2fb7356ca62fe32e3
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
#!/usr/bin/python
# -*- coding: GBK -*-
#
# @todo: Ò»¼ü¸ß¼¶ºÅ
#
# @author: Alee
# @date 2018-3-13 ÉÏÎç10:50:51
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
 
import GameWorld
import SetFabao
import ActivePet
import MakeItemCount
import PlayerControl
import ChConfig
 
 
def OnExec(curPlayer, msgList):
    if len(msgList) != 1:
        return
    
    lv = int(msgList[0])
    
    # 3.µØÍ¼·¨±¦È«¿ª
    for fbaoID in [101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 201, 202, 203, 204]:
        SetFabao.OnExec(curPlayer, [fbaoID])
    
    curMission = curPlayer.FindMission(1)
    if not curMission:
        GameWorld.DebugAnswer(curPlayer, "Íæ¼ÒûÓиÃÈÎÎñ,missionID=%s" % 1)
        return
    curMission.SetProperty("OpenMap", 12)
    
    # ±»¶¯
    passiveSkillList =  [50900, 50902] if curPlayer.GetJob() == 1 else [55900, 55902]
    for skillID in passiveSkillList:
        PlayerControl.NomalDictSetProperty(curPlayer, 
                                       ChConfig.Def_PDict_GFPassiveIndex%(0, 0),
                                       skillID,
                                       ChConfig.Def_PDictType_GFPassive)  
    
    # 4.¼¤»î³èÎï ×øÆï
    for i in range(1, 6):
        ActivePet.OnExec(curPlayer, [i, 5])
        
    # 5.¸ø»ù´¡ÊôÐÔ
    for attrID in xrange(201, 206):
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_AddPointValue % attrID, 10000)
    curPlayer.SetGold(99999)
    
    # 6.±³°ü¶ªÐ©¶«Î÷
    MakeItemCount.OnExec(curPlayer, [260, 50])
    curPlayer.SetLV(lv)
    
    curPlayer.RefreshView()
    curPlayer.SetVisible(True)
    curPlayer.SetSight(18)