What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Plugin] SimpleOOS

Emmitt

Member
Joined
Jul 24, 2011
Messages
79
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
 
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
 
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.
 
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.
Don't need an additional plug in, a basic one is included in the bot.
 
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).

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)
 
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)
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.
 
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)
Ah, nice, saves me from having to hack something together myself and I'm sure you'll do a better job of it :)
 
Back
Top