What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Working on a Plug-In Looking for some help...

Demolished

New Member
Joined
Aug 19, 2012
Messages
34
Reaction score
0
I have the bot setup to accept invites when in the lobby, but once he gets in the game the profile that should be loaded isn't loaded and the character just sits there. Is there a command in the api to load a profile, or "start botting" so to say? The only workaround I've found is to try to set the game creation time at about the same amount of time it would take to get in game, but this isn't the greatest way for me, is there an alternative?
 
Code:
        public void OnEnabled()
        {
            WriteToLog("Plugin Enabled");
            GameEvents.OnGameJoined += GameJoined;
        }
        public void OnDisabled()
        {
            WriteToLog("Plugin Disabled");
            GameEvents.OnGameLeft -= GameJoined;
        }
        public static void GameJoined(object sender, EventArgs e)
        {
            Zeta.Bot.ProfileManager.Load("path to profile\profile.xml", true);
        }

Maybe something like that?
 
Back
Top