is there a way the bot do /oos when stuck in loop patern,its always unblock after i hit my /oos macro. or a plugin thx
You can call: Code: LokiPoe.Resync(); I've not tested to see if there is ant current logic that would conflict with this being called while the bot is moving, but it'll be reworked if necessary.
http://www.thebuddyforum.com/exileb...79-plugin-temporary-plugin-running-ledge.html Used to do oos, but I doubt it is still working. Someone might use the code for a plugin /oos command only.
There's some things the bot doesn't support well yet that make using this not as easy as it should be. Some changes are being worked on to allow user code to work with the bot logic "paused", in a sense, temporarily so code like this can run.
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, 0); } } 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("town") && _resyncWait.IsFinished) { _resyncWait.Reset(TimeSpan.FromMilliseconds(_random.Next(15000, 45000))); Log.Debug(string.Format("--Resync {0}",DateTime.Now.ToString(CultureInfo.InvariantCulture))); LokiPoe.Resync(); } } } } Just paste the attached file into your plugins folder. The logic probably could be improved. If you don't want it on simply true the flag to false View attachment simpleOOS.zip Code: resyncWait.Reset(TimeSpan.FromMilliseconds(_random.Next(15000, 45000))); may want to change this line since you don't want to be spamming the hell out of the server every 15-45seconds Edit: This code is from the plugin stated above just reworked to fit with the current api and ripped out all the useless stuff.
very nice script but its also entering global chat for some reason i am not really sure if it actually using /oos command but for sure it enters global chat can you remove this ?
I can't handle an issue like that seems how I am just calling a provided function, and I don't know of a way to interact with the chat box so easy fix for you. Remove yourself global. Also what does the message look like when it goes into global? #.OOS? or something Edit: Just ran a test sitting in global...resynced fine redid test in trade...resynced fine not sure what the problem is
It doesnt says something in global chat but for some reason activates it ( i mean i can see other chating in there) well its ok if you dont know how maybe someone else can tell why is this happening
It's not that I don't know how, it's the fact that I can't modify the function given for us to use /oos it's really mot that big of deal but as there isn't a plugin except this one there are bound to be bugs lol Edit: www.thebuddyforum.com/exilebuddy-forum/exilebuddy-profiles/155225-plugin-simpleoos.html Made a separate thread dedicated to the plugin