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

Join BG HB API

izzy

Member
Joined
Jan 15, 2010
Messages
249
Reaction score
7
I'm trying to make a plugin that will simple Queue for a randomBG and the Leave when its over. The reason i want to do this is because i like to control where my toon goes while in a BG. The problem i have of Failure to understand in my case is ----> what am i doing wrong or what am i missing?
or am i just using / looking the wrong command?


// Queue For A RandomBG
if (!Styx.Logic.Battlegrounds.IsInsideBattleground && BgHelperSettings.Instance.QueueRandomBG)
{
Logging.Write("BgHelper: Queue'ing for Random BG");
Styx.Logic.BattlegroundType.RandomBattleground();
}
 
BattlegroundType is an enumeration type, and RandomBattleground is an enumerator -- it isn't a method. Read more about enumerations here.

You want (untested):

Code:
Styx.Logic.Battlegrounds.JoinBattlefield(Styx.Logic.BattlegroundType.RandomBattleground);

Remember you also need to test whether the queue has popped or not, and if so, to accept it.
 
Back
Top