Jump to content

Recommended Posts

  • 10 months later...
On 2/27/2020 at 3:12 PM, Droidz said:

call method Reset() of the quest class

I badly understand, plaese write it IN DETAIL like:

        var p = Quest.QuesterCurrentContext.Profile as Quester.Profile.QuesterProfile;
        if (p != null)
        {
            for (int i = 0; i < p.QuestsSorted.Count; i++)
            {
                if (p.QuestsSorted.Action == wManager.Wow.Class.QuestAction.StepName && p.QuestsSorted.NameClass == stepName)
                {
                    Quest.QuesterCurrentContext.CurrentStep = i;
                    break;
                }
            }
        }

I've the step TEST type Follow Path.

In the Steps, Action list:

[0] Pulse > TEST

[1] RunCode > here need the code for reset TEST step

 

use code like

wManager.Wow.Class.QuestClass quest;
var r = wManager.Wow.Helpers.Quest.QuesterCurrentContext.QuestsClasses.TryGetValue("TEST", out quest);
if (r && quest != null)
{
    quest.Reset();
}

(replace TEST by name of you quest)

But it is more easy to use "Reset" in quest order editor

5 hours ago, Droidz said:

use code like


wManager.Wow.Class.QuestClass quest;
var r = wManager.Wow.Helpers.Quest.QuesterCurrentContext.QuestsClasses.TryGetValue("TEST", out quest);
if (r && quest != null)
{
    quest.Reset();
}

(replace TEST by name of you quest)

But it is more easy to use "Reset" in quest order editor

Thanks. I think what the code help to me, but dont.. 

I use it:

        EventsLuaWithArgs.OnEventsLuaWithArgs += (LuaEventsId id, List<string> args) =>
        {
            if (id == wManager.Wow.Enums.LuaEventsId.PLAYER_DEAD)
                robotManager.Products.Products.ProductRestart();
        };

Sometimes happens next:

[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Idle already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.MovementLoop already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Grinding already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Trainers already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Talents already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterDiscoverState already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.ToTown already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterTakeTaxiState already launched, ignore it

I tried use next code:

robotManager.Events.LoggingEvents.OnAddLog += delegate(robotManager.Helpful.Logging.Log log)
        {
            if (log != null)
            {
                if (log.Text.Contains("[FSM] State wManager.Wow.Bot.States.Idle already launched, ignore i"))
                    Lua.LuaDoString("ForceQuit()");//close wow
            }
        };

But dont help.

How to restart a bot if this error appears?

I mean How will bot to know what happens this:

[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Idle already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.MovementLoop already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Grinding already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Trainers already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Talents already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterDiscoverState already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.ToTown already launched, ignore it.
[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterTakeTaxiState already launched, ignore it


the main thing here is to clarify to the bot that this error occurred and after that close the game

 

  • 3 years later...
On 4/17/2019 at 11:02 PM, ishowme888 said:

Already done, thank you

Hi there, it has been so many years, I don't trust hope that you might still see this reply, but how did you fix it? I have the exactly same problem, using gatherer profile.

what action code did you put in the last line to reset the waypoints?

 

thx

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...