• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] NoBotHere 1.0.0

    Discussion in 'Archives' started by randomstraw, Jun 17, 2013.

    Thread Status:
    Not open for further replies.
    1. randomstraw

      randomstraw Community Developer

      Joined:
      Jul 17, 2012
      Messages:
      1,611
      Likes Received:
      10
      Trophy Points:
      38
      NoBotHere
      ______________________________

      is a small, simple plugin ...
      ... to target other players, out of combat
      ... within a preset range of 30 yards
      ... for a random amount of time (4s - 18s)
      ... the same player not more than once every 40s


      however, it also ...
      ... removes any friendly player targets almost instantly if set by hand/routine for healing
      ... except if in combat. It disables itself while fighting. Smart move.

      ______________________________







      I made this on a request to a function SupremeTargets had back then,
      but never really worked 100%.
      As SupremeTargets is "left for dead"
      (because Millz' [Plugin] I Want Movement - Use LazyRaider CR's with afk bot bases does an awesome job on targetting/facing!)
      this standalone "I target you, so I look less bottish" is here.

      But keep in mind - if you target a player,
      you may also draw his attention!

      This plugin is provided "as-is",
      means i'm not planning to add a GUI or any other stuff.
      But - If there are any issues with the Plugin itself, I'll fix them.
      If I get any feedback, which is greatly appreciated.
      Just as a Beer/Coffee is (see my sig ;))!



      current issues / personal to-do list
      • blacklisting isn't working correctly with the most recent update
      • disable targetting friends in the Battleground startingarea, especially if using singular, its creating odd facing-behaviour due to a (not settable) setting in singular, requested this to be setable - v1.0.1/2 disables the plugin in battlegrounds for the time being
        ( www.thebuddyforum.com/honorbuddy-forum/combat-routines/all-one/88535-singular-community-driven-all-one-cc-just-plain-works-version-3-a-153.html#post1202093 )


      changelog
       

      Attached Files:

      Last edited: Oct 23, 2014
      chinajade likes this.
    2. Azucar

      Azucar Member

      Joined:
      Mar 26, 2010
      Messages:
      439
      Likes Received:
      2
      Trophy Points:
      18
      Interesting...
       
    3. zonpan2lol

      zonpan2lol New Member

      Joined:
      May 14, 2013
      Messages:
      601
      Likes Received:
      4
      Trophy Points:
      0
      This is awesome! Could you make it (if enabled) do a random emote like /wave, /fart, /cheer? :D

      Would be a nice feature to add, anyway, good job on this!
       
    4. randomstraw

      randomstraw Community Developer

      Joined:
      Jul 17, 2012
      Messages:
      1,611
      Likes Received:
      10
      Trophy Points:
      38
      i thought about this, but felt it would draw too much attention.
      i can give you the code so you can add it for yourself, but i won't add it in here.

      edit: no time right now. If you want, you should add it yourself, some inspiration:
      Code:
      //emote config - i recommend to let this FALSE, use at own risk. (well, you are using everyhting at own risk, do what you must!)
              private static int _totalEmotes;
              private static bool _emotes = true;    //set true to use emotes (sometimes!)
              private static DateTime _lastEmote;     //used to cache last emote Date
              private static TimeSpan _waitEmote = TimeSpan.FromMilliseconds(_targetTimeMax + 2000);  //should always be above the max time we can have a target..
              private static int _emoteFactor = 12;   //explaination: each _tick (1s) will do a random roll, from 0 to _emoteFactor - which is standard 10. If the number 1 is rolled, it will do an emote.
                                                      //              that means that on average a target will be held for 11s standard [(4000+18000)/2]
                                                      //              that means, the higher the value the less emotes (randomly generated, might differ sometimes - but will never do more than 1 emote / person.)
      
      ...
      
      if (StyxWoW.Me.CurrentTarget != null && StyxWoW.Me.CurrentTarget.IsPlayer && DateTime.UtcNow < _targetTime && DateTime.UtcNow > _lastEmote.Add(_waitEmote))
                          {
                              //emotes
                              if (new Random().Next(0, _emoteFactor) == 1)
                              {
      
                                  string _emote = "flex"; //dummy
      
                                  [more random makros here..]
      
                                  Lua.DoString("RunMacroText(\"/"+_emote+"\")");
                                  _lastEmote = DateTime.UtcNow;
                                  Logging.Write(_color, "[NBH]: [/{0} @ {1}.{2}]", _emote, StyxWoW.Me.CurrentTarget.Class, StyxWoW.Me.CurrentTarget.Guid.ToString().Substring(8, 4));
                                  _totalEmotes = _totalEmotes + 1;
                                  
                              }
                          }
      
      regards
       
      Last edited: Jun 17, 2013
    5. TheMaff

      TheMaff New Member

      Joined:
      May 15, 2012
      Messages:
      467
      Likes Received:
      4
      Trophy Points:
      0
      ^This :p was actually thinking about making that few mins ago before i saw this thread lol :)

      EDIT: Damn late posting :mad: ah well thanks for informing us! Might as well look into it later :)
       
      Last edited: Jun 17, 2013
    6. zonpan2lol

      zonpan2lol New Member

      Joined:
      May 14, 2013
      Messages:
      601
      Likes Received:
      4
      Trophy Points:
      0
      I like you! Will test this later today :)
       
    7. ginuwine12

      ginuwine12 New Member

      Joined:
      Feb 12, 2013
      Messages:
      621
      Likes Received:
      6
      Trophy Points:
      0
      like it i test it today :eek:
       
    8. Azucar

      Azucar Member

      Joined:
      Mar 26, 2010
      Messages:
      439
      Likes Received:
      2
      Trophy Points:
      18
      Not sure this is really needed he is right you really don't want to draw to much attention. The plugin is great as is and I wouldn't recommend adding extra emotes in considering questing in HB is already buggy as hell.
       
    9. zonpan2lol

      zonpan2lol New Member

      Joined:
      May 14, 2013
      Messages:
      601
      Likes Received:
      4
      Trophy Points:
      0
      Yeah I tried with emotes, the code didn't work, maybe I did something wrong. Anyhow, yeah I'll just use this without emotes :D
       
    10. randomstraw

      randomstraw Community Developer

      Joined:
      Jul 17, 2012
      Messages:
      1,611
      Likes Received:
      10
      Trophy Points:
      38
      it is no working code i posted.

      its just an idea of - if you know how to - code it.
       
    11. stelios21

      stelios21 New Member

      Joined:
      Oct 3, 2012
      Messages:
      377
      Likes Received:
      0
      Trophy Points:
      0
      Really looking forward for the wave/whisper feature!! this can be a beast
       
    12. chtpm

      chtpm Member

      Joined:
      Nov 26, 2011
      Messages:
      649
      Likes Received:
      6
      Trophy Points:
      18
      this ^
       
    13. tumbum

      tumbum Active Member

      Joined:
      Mar 17, 2011
      Messages:
      3,341
      Likes Received:
      13
      Trophy Points:
      38
      Possible to disable this Target Player while in Bossfight with Dungeon Buddy? Or if in Fight at all. Mostly he targets player but fight too
       
    14. randomstraw

      randomstraw Community Developer

      Joined:
      Jul 17, 2012
      Messages:
      1,611
      Likes Received:
      10
      Trophy Points:
      38
      it should disable itself while fighting.

      i will look into this later today, thanks for reporting

      e: 1.0.3 added to OP, potentially fixing the problem, could you please try it?
       
      Last edited: Jun 30, 2013
    15. Anax

      Anax New Member

      Joined:
      Aug 4, 2013
      Messages:
      44
      Likes Received:
      0
      Trophy Points:
      0
      Been using this a while now and it's awesome! :)

      It would be legendary if you added a function to use random emotes if the player is within say 30yards of my Bot.

      /smile
      /wave
      /cheer

      Whatever. AI doesn't have emotions, or does it?
       
    16. tumbum

      tumbum Active Member

      Joined:
      Mar 17, 2011
      Messages:
      3,341
      Likes Received:
      13
      Trophy Points:
      38
      works now fine in dungeons (infight)
       
    17. zeldrak

      zeldrak Well-Known Member

      Joined:
      Oct 25, 2010
      Messages:
      3,516
      Likes Received:
      25
      Trophy Points:
      48
      This has already been discussed previously in this very same thread. Just start at the beginning and read the thread, mate. The OP said they weren't going to add in that sort of thing because it will draw more attention than is needed. The OP said if YOU (the person asking for it) knew how to code, then feel free to code it in yourself, but they (the OP) aren't going to put it in.
       
    18. frosticus

      frosticus Community Developer

      Joined:
      Oct 19, 2012
      Messages:
      2,930
      Likes Received:
      58
      Trophy Points:
      48
      it would be awkward to wave to someone and they wanted to start a conversation about the fishing

      then they get shitty when you dont respond and report you for being a bot

      AM NOT CONDONING REPORTING OTHER BOTTERS. JUST ACKNOWLEDGING IT HAPPENS.
       
    19. randomstraw

      randomstraw Community Developer

      Joined:
      Jul 17, 2012
      Messages:
      1,611
      Likes Received:
      10
      Trophy Points:
      38
      1.0.5 - fixed typo
      1.0.4 - changes to cope with HB-test .750
       
      Last edited: Oct 21, 2014
    20. DKAED

      DKAED Member

      Joined:
      Dec 31, 2011
      Messages:
      170
      Likes Received:
      0
      Trophy Points:
      16
      Thanks!
       
    Thread Status:
    Not open for further replies.

    Share This Page