• Visit Rebornbuddy
  • [Plugin] Alerter (PM and Masters)

    Discussion in 'Archives' started by ExVault, Oct 17, 2014.

    1. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
    2. Nepthys

      Nepthys Community Developer

      Joined:
      Oct 13, 2014
      Messages:
      89
      Likes Received:
      1
      Trophy Points:
      0
      did I just write a plugin that already exists? bahahaha yay redundancy ^_^
       
    3. mrfuture

      mrfuture Member

      Joined:
      Nov 12, 2014
      Messages:
      86
      Likes Received:
      0
      Trophy Points:
      6
      Just downloading your alerter, let's see how it goes.
       
    4. mrfuture

      mrfuture Member

      Joined:
      Nov 12, 2014
      Messages:
      86
      Likes Received:
      0
      Trophy Points:
      6
      So the bot stops at strongbox, but there is a problem with playing sound:

      "Alert Found Chemist Strongbox"
      ......


      No sound is played until i stop the bot. Then sound is played. Not before.

      Also, no matter what strongboxes i check, bot still stops at all of them.
      He is not opening all strongboxes, no matter what strongboxes i ignore.

      So the core is working awesome :D

      Edit: Ok i figured it out, lets be clear:


      1. Plugin is stopping at all strongboxes, no matter what you check.
      2.. Plugin is ignoring "global chests to ignore" from "grindbot settings". Plugin is not opening any strongboxes.
      3. If we check example: chemist strongbox in plugin settings, and then we find chemist strongbox we got:

      Code:
      StrongboxAlerter] Alert Found Chemist's Strongbox
      [StrongboxAlerterTask] The current chest to open is [31739] Chemist's Strongbox at {554, 897}.
      [StrongboxAlerter] Alert Found Chemist's Strongbox
      
      Character is "afk" waiting near strongbox, but sound is not played, we have to manually stop the bot to make the sound play.

      4. If we uncheck example: chemist strongbox, and we find chemist strongbox:

      Code:
      [StrongboxAlerterTask] The current chest to open is [31739] Chemist's Strongbox at {554, 897}.
      [StrongboxAlerterTask] The current chest to open is [31739] Chemist's Strongbox at {554, 897}.
      [StrongboxAlerterTask] The current chest to open is [31739] Chemist's Strongbox at {554, 897}.
      [StrongboxAlerterTask] The current chest to open is [31739] Chemist's Strongbox at {554, 897}.
      [StrongboxAlerterTask] The current chest to open is [31739] Chemist's Strongbox at {554, 897}.
      [StrongboxAlerterTask] The current chest to open is [31739] Chemist's Strongbox at {554, 897}.
      [StrongboxAlerterTask] The current chest to open is [31739] Chemist's Strongbox at {554, 897}.
      [StrongboxAlerterTask] The current chest to open is [31739
      
      Character is "afk" waiting near strongbox, sound is not played even when we stop the bot.

      5. Not working well with stuck detection plugin (afk is counted as stuck).


      I hope i was clear, pretty hard to explain with my english.

      Thanks !
       
      Last edited: Dec 31, 2014
    5. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      Yes the core of it is there, agreed.
      You can hardcode the plugin, that is set values without adding/changing the gui component.
      I was thinking of adding a simple timer to control how long the bot will wait after sending an alert. But I cannot code anymore today... I'm going into outer space...

      wimm
       
    6. Nepthys

      Nepthys Community Developer

      Joined:
      Oct 13, 2014
      Messages:
      89
      Likes Received:
      1
      Trophy Points:
      0
    7. mrfuture

      mrfuture Member

      Joined:
      Nov 12, 2014
      Messages:
      86
      Likes Received:
      0
      Trophy Points:
      6
      Code:
      [StrongboxAlerterTask] The current chest to open is [22769] Blacksmith's Strongbox at {879, 257}.
      [StrongboxAlerterTask] Now moving towards the chest 22769 because it is 34.30103 away (can't see).
      [FinishCurrentAction] Waiting for the action to finish Move.
      [FinishCurrentAction] Waiting for the action to finish Move.
      [FinishCurrentAction] Waiting for the action to finish Move.
      [FinishCurrentAction] Waiting for the action to finish Move.
      [FinishCurrentAction] Waiting for the action to finish Move.
      [FinishCurrentAction] Waiting for the action to finish Move.
      [FinishCurrentAction] Waiting for the action to finish Move.
      [FinishCurrentAction] Waiting for the action to finish Move.
      [StrongboxAlerter] Alert Found Blacksmith's Strongbox
      thing
      after thing
      [IdTask] We cannot id items out of town/hideout. Skipping this task until an area change or restart.
      [WithdrawTask] We cannot withdraw items out of town/hideout. Skipping this task until an area change or restart.
      
      Not opened when ignored, opened when not ignored in grindbot settings.

      No sound is played. Bot is not stopping at strongbox.
       
      Last edited: Jan 1, 2015
    8. Nepthys

      Nepthys Community Developer

      Joined:
      Oct 13, 2014
      Messages:
      89
      Likes Received:
      1
      Trophy Points:
      0
      I deleted the strongboxalerter folder and reinstalled again from the recent link, still seems to work ok for me
      to clarify:

      in 'strongboxalerter' tab tick the boxes you want a sound to play on. currently it will say 'strongbox found'
      in 'basicgrindbot' under 'globalcheststoignore' tick any strongboxes you don't want to be opened automatically by the bot (so anything you want to roll manually)

      if the sound is still not playing, make sure you have \plugins\strongboxalerter\sounds\strongbox.wav, and that you can play the file in windows media player or something

      if still not working for you, let me know :)
       
    9. mrfuture

      mrfuture Member

      Joined:
      Nov 12, 2014
      Messages:
      86
      Likes Received:
      0
      Trophy Points:
      6
      I will check it again soon, thanks.
       
    10. chlopiec

      chlopiec Member

      Joined:
      Jun 29, 2014
      Messages:
      60
      Likes Received:
      1
      Trophy Points:
      6
      Would it be possible to provide a visual cue instead of audio? I bot on mute so something like this would be great.
       
    11. vjxy123

      vjxy123 New Member

      Joined:
      Oct 6, 2012
      Messages:
      156
      Likes Received:
      0
      Trophy Points:
      0
      can u add alert when someone send a party message or when someone join my party

      and if I stand in town do nothing,how to run this plugin if possible?
       
    12. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      Visual cue.. hmm. All the magic happens on line 402:
      PlaySound("strongbox.wav");

      So that can be left but the alerting can be extended with.. the DemonBuddy LEGEN.. DARY!.. alerter code. Let me find it. Aha, the beloved GilesTrinity plugin..
      The code can be found here https://www.thebuddyforum.com/demon...rinity/93720-trinity-questtools-download.html within the TrinityPlugin-n.n.nn.zip

      The code, for Android, looks like this:
      Code:
      if (notificationType == "android")
                  {
                      string url = "https://www.notifymyandroid.com/publicapi/notify";
                      string apiKey = Trinity.Settings.Notification.AndroidKey;
                      url += "?apikey=" + HttpUtility.UrlEncode(apiKey.Trim()) +
                                    "&application=" + HttpUtility.UrlEncode("Trinity") +
                                    "&description=" + HttpUtility.UrlEncode(notice.Description) +
                                    "&event=" + HttpUtility.UrlEncode(notice.Event) +
                                    "&priority=" + HttpUtility.UrlEncode(notice.Priority.ToString());
      
                      var updateRequest =
                          (HttpWebRequest)WebRequest.Create(url.ToString());
                      updateRequest.ContentLength = 0;
                      updateRequest.ContentType = "application/x-www-form-urlencoded";
                      updateRequest.Method = "POST";
                      //updateRequest.Timeout = 5000;
                      var postResponse = default(WebResponse);
                      try
                      {
                          postResponse = updateRequest.GetResponse();
                      }
                      finally
                      {
                          if (postResponse != null)
                              postResponse.Close();
                      }
                  }
      wimm
       
      Last edited: Jan 8, 2015
    13. Trokkalicious

      Trokkalicious Member

      Joined:
      Dec 25, 2014
      Messages:
      95
      Likes Received:
      0
      Trophy Points:
      6
      Such an friggin awesome script!
      I bet using this and doing some missions actually decrease your ban-risk.
      I mean if you bot to level 70+ without doing one or many of these missions it sure as hell look suspicious!
       
    14. mrfuture

      mrfuture Member

      Joined:
      Nov 12, 2014
      Messages:
      86
      Likes Received:
      0
      Trophy Points:
      6
      Yes its working, thanks a lot, can you please pm me your paypal
       
    15. mrfuture

      mrfuture Member

      Joined:
      Nov 12, 2014
      Messages:
      86
      Likes Received:
      0
      Trophy Points:
      6
      Ups, its not working with Map Runner :)
       
    16. vjxy123

      vjxy123 New Member

      Joined:
      Oct 6, 2012
      Messages:
      156
      Likes Received:
      0
      Trophy Points:
      0
      if run 4bot in one computer.how did I know which bot meet the master
       
    17. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      Depends on how you are running those 4 bots... if you are running them with their own install of EB, then simply change the notification sound file but keep the sound file name.
      e.g. bot 1 you record a wav file saying 'bot 1' or play a distinctive sound. Or you can edit the plugin code.

      wimm
       
    18. darkbluefirefly

      darkbluefirefly Community Developer

      Joined:
      Nov 8, 2013
      Messages:
      1,927
      Likes Received:
      18
      Trophy Points:
      38
      Hey ,
      I just saw this thread. One way you can do it is add your sounds to a folder, each based on configuration file for the profile.
      IE the profile you use when attaching the bot, to do this, find the file named,
      "/Plugins/Alerter/Alerter.cs" and open it in any editor.
      Find this string
      Code:
       var sp = new SoundPlayer(PathToSounds + filename);
      change it to

      Code:
      var sp = new SoundPlayer(PathToSounds + Configuration.Instance.Name + filename);
      Then inside "/Plugins/Alerter/Sounds/"
      Make a folder for each configuration you have and add the sound to it, copying the original filename for each different sound, unless you modified it.
      Ie Look inside [Exile Buddy Folder]/Settings/ for the configuration names.

      I hope that makes sense, if someone else who has better explaining skills the me could elaborate it would be awesome.
      Good Luck.
       
    19. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      I feel some kind of happiness :) I was the author of this addition in collaboration with Giles ! :D poor Giles :( I miss this guy.
       
    20. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      toNyx, excellent, I really liked this addition.. not because i was getting mega GG loots but from the tech integration pov.

      Are you putting this into alerter? If not then I will for Android

      wimm
       

    Share This Page