Settings Autostart
Hello.
I'm in the try to automate the char select and plugin start, and i noticed in Settings the Autostart option.
Is this option working? it doesen't seem to let me run this plugin, or any other:
Pls can you Clarify a little the autologin situation?
I think we still miss a couple of connections, and is totally ok with me, i love this tool you let me use and i buyed 3 extra lifetime, but pls let me know your roadmap to autologin,relogin on disconnect... i know you are working on somthing.
Tnx guys and keep the goody coming
i love you!
Hello.
I'm in the try to automate the char select and plugin start, and i noticed in Settings the Autostart option.
Is this option working? it doesen't seem to let me run this plugin, or any other:
Code:
using System;
using System.Drawing;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
namespace DefaultNameSpace
{
public class DefaultClass : Core
{
public static string GetPluginAuthor()
{
return "Alcor75";
}
public static string GetPluginVersion()
{
return "1.0.0.0";
}
public static string GetPluginDescription()
{
return "ABRelogger";
}
public bool SelectServer(string _server)
{
//Find our game world
var myWorld = getWorlds().Find(w => w.name == _server);
if (myWorld == null || (myWorld != null && !myWorld.EnterGameServer()))
{
Log("Invalid game world name or error while we try to enter game server!");
return false;
}
return true;
}
public bool SelectChar()
{
var myWorld = getWorlds().Find(w => w.name == this.serverName());
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 false;
}
Thread.Sleep(1000);
return true;
}
//Call on plugin start
public void PluginRun()
{
while (true)
{
Log(pluginPath);
switch (gameState)
{
case GameState.CharacterSelect:
SelectChar();
break;
case GameState.ConnectingToGameServer:
break;
case GameState.Ingame:
if (!isPluginRun("AntiAFK\\AntiAFK.dll"))
{
RunPlugin("AntiAFK\\AntiAFK.dll");
Thread.Sleep(1000);
}
if (!isPluginRun("Questing\\AutoExp.dll"))
{
RunPlugin("Questing\\AutoExp.dll");
Thread.Sleep(1000);
}
break;
case GameState.LoadingGameWorld:
break;
case GameState.NotLogged:
break;
case GameState.ServerSelect:
break;
case GameState.WaitingQueue:
break;
default:
//Log(gameState.ToString());
break;
}
Thread.Sleep(1000);
}
}
//Call on plugin stop
public void PluginStop()
{
Log(GetLastError().ToString());
}
}
}
Pls can you Clarify a little the autologin situation?
I think we still miss a couple of connections, and is totally ok with me, i love this tool you let me use and i buyed 3 extra lifetime, but pls let me know your roadmap to autologin,relogin on disconnect... i know you are working on somthing.
Tnx guys and keep the goody coming

Last edited: