hxp
2020-01-11 2014b1be37a38d75d8b5f97311f9a0b07e27cfd1
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/imba.py
@@ -16,7 +16,6 @@
import GivePlayerExpSelf
import SetFabao
import ActivePet
import ActiveHorse
import MakeItemCount
import PlayerControl
import ChConfig
@@ -29,14 +28,22 @@
    
    lv = int(msgList[0])
    # 1.跳过新手任务
    SetMission.OnExec(curPlayer, [101010, 1])
    SetMission.OnExec(curPlayer, [1000, -1])
    SetMissionDict.OnExec(curPlayer, [1, 'xinshou', 0])
    #===========================================================================
    # 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]
@@ -49,17 +56,14 @@
    # 4.激活宠物 坐骑
    for i in range(1, 6):
        ActivePet.OnExec(curPlayer, [i, 5])
        ActiveHorse.OnExec(curPlayer, [i, 5])
        
    # 5.给基础属性
    curPlayer.SetBaseSTR(1000)
    curPlayer.SetBasePNE(1000)
    curPlayer.SetBasePHY(1000)
    curPlayer.SetBaseCON(1000000)
    curPlayer.SetGold(9999999)
    for attrID in xrange(201, 206):
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_AddPointValue % attrID, 10000)
    curPlayer.SetGold(99999)
    
    # 6.背包丢些东西
    MakeItemCount.OnExec(curPlayer, [10161, 50])
    MakeItemCount.OnExec(curPlayer, [260, 50])
    curPlayer.SetLV(lv)
    
    curPlayer.RefreshView()