Jump to content

Load Profile Code


Pudge

Recommended Posts

Hello everybody, i need some help with my code....
I use this method to load quest profile from plugin or in Runcode:

public static void LoadProfile(string file)
    {
        System.Threading.Tasks.Task.Factory.StartNew(() =>
        {
            Logging.Write("[QuestHelper]: loading profile " + file);
            Quester.Bot.QuesterSetting.CurrentSetting.ProfileName = file;
            Quester.Bot.QuesterSetting.CurrentSetting.Save();
            Thread.Sleep(2000);
            robotManager.Products.Products.ProductRestart();
        });
    }

But i always get next error after executing code:

[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.Idle already launched, ignore it.
[D] 21:45:05 - [FSM] State   already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.Trainers already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.Talents already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.FlightMasterDiscoverState already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.ToTown already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.FlightMasterTakeTaxiState already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.ProspectingState already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.MillingState already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.Farming already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.Looting already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.Regeneration already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.FarmingRange already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.LootingRange already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.BattlePetState already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.IsAttacked already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.MyMacro already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.Resurrect already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.Pause already launched, ignore it.
[D] 21:45:05 - [FSM] State wManager.Wow.Bot.States.Relogger already launched, ignore it.

 

Аfter these lines in the log, the bot stops working and just stay.

I cant understand what is wrong with this code and how to make it work as it should, I will be glad of any help.

 

 

 

 

 

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