xdh
2018-08-27 531ef1778441b79979e3d5c9367a53f407a0c604
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):