Jump to content

Dungeon path finding problem


ishowme888

Recommended Posts

I recorded a mission mode dungeon script. The first time I followed my recording to find a way, the second time I didn't follow my recording path. Restarting wrobot can solve this problem, I want to know where I am wrong.

Link to comment
Share on other sites

  • 10 months later...
On 4/17/2019 at 4:33 PM, Droidz said:

Hello, use step type reset (to reset your follow path quest before to run it again)

How can i callout the command with C#? Write the code please. 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

  • 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

Link to comment
Share on other sites

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...