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

[Request] Code for menu

Mani929

New Member
Joined
Oct 7, 2014
Messages
11
Reaction score
0
hello all .

Anyone know the code of the following commands:

Pick charater and log in to game-

Log out from game to charater selection
 
Last edited:
hello all .

Anyone know the code of the following commands:

Pick charater and log in to game-

Log out from game to charater selection
I think you'r looking for something like this:
Code:
using System;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using ArcheBuddy.Bot.Classes;

namespace RelogNamespace
{
    public class RelogClass : Core
    {                    
        public void PluginRun()
        {
			while (true)
			{
				if (gameState == GameState.ServerSelect)
				{
					//Find our game world
					var myWorld = getWorlds().Find(w => w.name == "Orchidna");
					if (myWorld == null || (myWorld != null && !myWorld.EnterGameServer()))
					{
						Log("Invalid game world name or error while we try to enter game server!");
						return;
					}
					//Wait while we enter game world
					while (gameState != GameState.CharacterSelect)
						Thread.Sleep(500);
					//Get our character (in this example first character from all that you have on this game world
					var chararcters = myWorld.getCharacters();
					if (chararcters.Count == 0 || (chararcters.Count > 0 && !chararcters[0].EnterGame()))
					{
						Log("No characters on this world or error while we try to enter game!");
						return;
					}
				}
				Thread.Sleep(1000);
			}
			
		}
	}
}

SOURCE: https://www.thebuddyforum.com/archebuddy-forum/archebuddy-plugins/177814-simple-plugins-example.html By Out.
 
Thanks man :) if there anyway to know the Log Out from game command?
 
LeaveWorldToCharacterSelect()
LeaveCharacterSelectToWorldSelect()
 
just use the first of those commands, and it will exit to char select.
 
Back
Top