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

"Use for offline plugins"

Allow you to launch plugins while this account offline
 
Can you give more details, plz?

А поподробнее? А то расплывчато как-то )
 
Can you give more details, plz?
Allow you to launch plugins while this account offline.
You can create global plugin, that will control another accounts\ modify accounts in account manager

Check functions:
Code:
public Account Core.AddNewAccount(server);
public List<Account> Core.GetAccounts();

And Account class:
Code:
//Change info in account manager
public string name;
public string login;
public string password;
public bool useProxy;
public string proxyIp;
public string proxyLogin;
public string proxyPassword;
public string proxyPort;
//Login\logout\delete
public void Login();
public void Logout();
public void Delete();

//Get access to core of this account
public Core GetCore()

Small example:
Code:
foreach (var a in GetAccounts())
{
	if (a.name == "NewAccount_120")
  {         
		var anotherCore = a.GetCore();
    if (anotherCore == null)  
			a.Login();      
    else
    {
			Log(anotherCore.gameState.ToString());
      if (anotherCore.gameState == GameState.Ingame)
				Log(anotherCore.me.name + "  " + anotherCore.me.level);
    } 
  }
}
 
Back
Top