• Visit Rebornbuddy
  • Blackspots in plugins?

    Discussion in 'Community Developer Forum' started by kaihaider, Nov 14, 2014.

    1. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      Blind guess, should this work?

      Code:
      ProfileManager.CurrentProfile.BlackSpots.Add(new ff14bot.Navigation.BlackSpot(new Vector3(11.82568f, 311.6229f, -244.4037f), 10));
      ProfileManager.CurrentProfile.BlackSpots.Any(spot => spot!=null && spot.WithinBlackSpot(unit.Location))
       
      Last edited: Nov 14, 2014
    2. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,229
      Likes Received:
      364
      Trophy Points:
      83
      Profilemanager is for gatherbot/grindbot.


      NeoProfileManager.CurrentGrindArea.Blackspots is what you want.
       
    3. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      sweet thanks

      Code:
      NeoProfileManager.CurrentGrindArea.Blackspots.Add(new BlackSpot(new Vector3(11.82568f, 311.6229f, -244.4037f), 10));NeoProfileManager.CurrentGrindArea.AvoidMobs.Add(new AvoidMob(541,"Striking Dummy"));
      
      && !NeoProfileManager.CurrentGrindArea.AvoidMobs.Any(mob => mob !=null && mob.Entry == unit.NpcId)
      && !NeoProfileManager.CurrentGrindArea.Blackspots.Any(spot => spot != null && spot.WithinBlackSpot(unit.Location)))
      null checks may be excessive?
       
      Last edited: Nov 16, 2014

    Share This Page