• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] SimpleOOS

    Discussion in 'Archives' started by Emmitt, Mar 28, 2014.

    1. Emmitt

      Emmitt Member

      Joined:
      Jul 24, 2011
      Messages:
      79
      Likes Received:
      1
      Trophy Points:
      8
      This code is based off the temporary ledge farming plugin, but updated and only has one use. /oos
      This plugin will use /oos every 60-120 seconds, this can easily be changed by editing this line:
      Code:
      _resyncWait.Reset(TimeSpan.FromMilliseconds(_random.Next(60000, 120000)));
      Code:
      using System;
      using System.Collections.Generic;
      using System.Globalization;
      using System.Linq;
      using System.Text;
      
      using Loki;
      
      using Loki.Game;
      using Loki.Game.Objects;
      using Loki.TreeSharp;
      using Loki.Utilities;
      using Loki.Utilities.Plugins;
      using log4net;
      using Action = System.Action;
      
      namespace ExileBot
      {
          class simpleOOS : IPlugin
          {
                      // Set it to FALSE to disable /oos spam
                      private bool DoResync = true;
      
      
              #region Implementation of IEquatable<IPlugin>
      
              public bool Equals(IPlugin other) { return Name.Equals(other.Name); }
      
              #endregion
      
              #region Implementation of IPlugin
      
              public string Author { get { return "Emmitt"; } }
              public Version Version { get { return new Version(1, 0, 0, 1); } }
              public string Name { get { return "Simple OOS"; } }
              public string Description { get { return "Da resync"; } }
      
      
              public void OnInitialize() {}
              public void OnStop() {}
              public void OnShutdown() {}
              public void OnEnabled() {}
              public void OnDisabled() {}
              public void OnConfig() {}
              public void OnStart() {}
              #endregion
      
      
              private static readonly ILog Log = Logger.GetLoggerInstanceForType();
       
      
              private string CurrentAreaID { get { return LokiPoe.LocalData.WorldAreaName; } }
              private readonly WaitTimer _resyncWait = WaitTimer.FiveSeconds;
              private readonly Random _random = new Random();
      
      
      
              public void OnPulse()
              {
                  if (DoResync && !CurrentAreaID.Contains("Encampment") && !CurrentAreaID.Contains("Watch") && _resyncWait.IsFinished)
                  {
                      _resyncWait.Reset(TimeSpan.FromMilliseconds(_random.Next(60000, 120000)));
                      Log.Debug(string.Format("--Resync  {0}",DateTime.Now.ToString(CultureInfo.InvariantCulture)));
                      LokiPoe.Resync();
                  }
      
              }
          }
      }
      Download Simple OOS Here: View attachment simpleOOS.zip
      --just unzip into your plugin folder and you should be good to go
       
    2. kuskner

      kuskner Member

      Joined:
      Oct 12, 2013
      Messages:
      521
      Likes Received:
      2
      Trophy Points:
      18
      Thanks looks good
       
    3. Emmitt

      Emmitt Member

      Joined:
      Jul 24, 2011
      Messages:
      79
      Likes Received:
      1
      Trophy Points:
      8
      Thank you, let me know if anything is wrong with it. I know there is a bug where you enter global chat but no messages get sent there so should be fine. That is a back end change I think that needs to happen since the plugin is pretty simple
       
    4. sortep

      sortep Member

      Joined:
      Dec 20, 2014
      Messages:
      66
      Likes Received:
      0
      Trophy Points:
      6
      nvm i googled it.
       
    5. mrfuture

      mrfuture Member

      Joined:
      Nov 12, 2014
      Messages:
      86
      Likes Received:
      0
      Trophy Points:
      6
      Whats the purpose of that plugin and /oos ?
       
    6. Infinite Monkeys

      Infinite Monkeys Community Developer

      Joined:
      Jul 7, 2012
      Messages:
      224
      Likes Received:
      16
      Trophy Points:
      18
      I can't find anything on the Resync() function in the documentation, and when I try to use it with all of the same dependancies you included it apparently doesn't exist.
       
    7. Emmitt

      Emmitt Member

      Joined:
      Jul 24, 2011
      Messages:
      79
      Likes Received:
      1
      Trophy Points:
      8
      Over a year old. API has changed.
       
    8. Darox

      Darox Member

      Joined:
      Nov 7, 2014
      Messages:
      353
      Likes Received:
      2
      Trophy Points:
      18
      Don't need an additional plug in, a basic one is included in the bot.
       
    9. Infinite Monkeys

      Infinite Monkeys Community Developer

      Joined:
      Jul 7, 2012
      Messages:
      224
      Likes Received:
      16
      Trophy Points:
      18
      Whoops, I only checked the last post date, sorry!

      Trying to improve it as it takes far too long to type /oos and keeps getting me killed (no leech or potions while typing and I'm melee).
       
    10. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      I'm currently testig a AutoResync that have options & pre-requisites, gonna push it as soon as I can after testing (X mobs, uniques, same target for a while etc)
       
    11. Darox

      Darox Member

      Joined:
      Nov 7, 2014
      Messages:
      353
      Likes Received:
      2
      Trophy Points:
      18
      Thats awsome, you saw my other post, please include availability to use a macro. Could also speed up the actual typing and process of it. Bascially on my tanky char, all I need is don't use it if rare/unique mob around or > 10 whites. Other than that use on x to y time. I like the option for same target, more human like.
       
    12. Infinite Monkeys

      Infinite Monkeys Community Developer

      Joined:
      Jul 7, 2012
      Messages:
      224
      Likes Received:
      16
      Trophy Points:
      18
      Ah, nice, saves me from having to hack something together myself and I'm sure you'll do a better job of it :)
       
    13. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      The testing is decent, releasing it today
       

    Share This Page