hch
2018-08-23 08495407cded2639b5de41960b38e4edb0fe0ad0
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMagicWeapon.py
@@ -121,7 +121,8 @@
        if mwID in IpyGameDataPY.GetFuncEvalCfg('UnblockTreasure'):
            PlayerControl.NotifyCode(curPlayer, 'UnblockTreasure', [curPlayer.GetName(), mwID])
        else:
            PlayerControl.WorldNotify(0, 'UnblockTreasure', [curPlayer.GetName(), mwID])
            sysMark = IpyGameDataPY.GetFuncEvalCfg('UnblockTreasure', 2, {}).get(mwID, 'UnblockTreasure')
            PlayerControl.WorldNotify(0, sysMark, [curPlayer.GetName(), mwID])
        
        #任务
        EventShell.EventRespons_OnActiveMagicWeapon(curPlayer, mwID)
@@ -799,7 +800,10 @@
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_MagicWeaponUpExp % mwID, curUpExp+addExp)
    Sycn_MagicWeaponLV(curPlayer, mwID)
    # 每日活动
    PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_MagicWeapon)
    ipyData = GetWMIpyData(mwID)
    mwType = ipyData.GetTreasureType() if ipyData else 0
    if mwType == 1:
        PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_MagicWeapon)
    return
def Sycn_MagicWeaponLV(curPlayer, mwID= -1):
@@ -996,6 +1000,8 @@
            return
    
    GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_MWSoulActiveState, soulID, 1, True)
    #任务
    EventShell.EventRespons_MWSoulActive(curPlayer, soulID)
    
    CalcMagicWeaponSoulAttr(curPlayer)
    PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()