#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#  
 | 
# @todo: Ò»¼ü¸ß¼¶ºÅ  
 | 
#  
 | 
# @author: Alee  
 | 
# @date 2018-3-13 ÉÏÎç10:50:51  
 | 
# @version 1.0  
 | 
#  
 | 
# @note:   
 | 
#  
 | 
#---------------------------------------------------------------------  
 | 
  
 | 
import GameWorld  
 | 
import SetMission  
 | 
import GivePlayerExpSelf  
 | 
import SetFabao  
 | 
import ActivePet  
 | 
import ActiveHorse  
 | 
import MakeItemCount  
 | 
import PlayerControl  
 | 
import ChConfig  
 | 
import SetMissionDict  
 | 
  
 | 
  
 | 
def OnExec(curPlayer, msgList):  
 | 
    if len(msgList) != 1:  
 | 
        return  
 | 
      
 | 
    lv = int(msgList[0])  
 | 
    # 1.Ìø¹ýÐÂÊÖÈÎÎñ  
 | 
    #===========================================================================  
 | 
    # SetMission.OnExec(curPlayer, [101010, 1])  
 | 
    # SetMission.OnExec(curPlayer, [1000, -1])  
 | 
    # SetMissionDict.OnExec(curPlayer, [1, 'xinshou', 0])  
 | 
    #===========================================================================  
 | 
    # 2.¸øÐ©Ôü¾Ñé  
 | 
    #GivePlayerExpSelf.OnExec(curPlayer, [3456789])  
 | 
    # 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])  
 | 
        ActiveHorse.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)  
 | 
      
 | 
      
 | 
      
 | 
     
 |