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

Battleground CapturePoint

ix0u

New Member
Joined
May 19, 2010
Messages
18
Reaction score
0
Hi all,

First of all thank you for this great bot and the extensive work you do here.
Since i feel the PVP Bot is still "basic" i'm on my way to develop a enhanced version like the one released here :
http://www.buddyforum.de/showthread.php?7046-BETA-Warsong-Gulch-Battleground-Actions!

But i don't find a way to retrieve the state of a captured point in Eots for example (or AV). Seeking in the API i found the Styx.WoWGameObjectType.CapturePoint but nowhere else it is used.

What is a Styx.Logic.WoWLandMark ? It looks like what i'm seeking but how could i determine if it is captured by the alliance or by the Horde ?
(If i'm right, then i could retrieve the list of all Landmarks via the Styx.Logic.Landmarks.LandmarkList)

I do apologise i'm not used to the API and since no intellisense is provided nor good documentation quite a bit harassing to play with :)
 
Hi all,

First of all thank you for this great bot and the extensive work you do here.
Since i feel the PVP Bot is still "basic" i'm on my way to develop a enhanced version like the one released here :
http://www.buddyforum.de/showthread.php?7046-BETA-Warsong-Gulch-Battleground-Actions!

But i don't find a way to retrieve the state of a captured point in Eots for example (or AV). Seeking in the API i found the Styx.WoWGameObjectType.CapturePoint but nowhere else it is used.

What is a Styx.Logic.WoWLandMark ? It looks like what i'm seeking but how could i determine if it is captured by the alliance or by the Horde ?
(If i'm right, then i could retrieve the list of all Landmarks via the Styx.Logic.Landmarks.LandmarkList)

I do apologise i'm not used to the API and since no intellisense is provided nor good documentation quite a bit harassing to play with :)

Documentation is attached to the release post.
 
Example:
Code:
Battlegrounds.LandMarks.Refresh();
foreach(WoWLandMark landmark in Battlegrounds.LandMarks.LandmarkList)
{
    slog("Name: {0}, Description: {1}, Entry: {2}", landmark.Name, landmark.Description, landmark.Entry);
}
Description will be:
Code:
Horde Controlled
Alliance Controlled
Not Controlled
Other valid properties of WoWLandMark:
Code:
AreaId  
Description  
Entry  
Flags  
IsValid  
Location  
MapId  
Name  
NormalIcon  
ShowInBattleMap  
WorldState
 
Example:
Code:
Battlegrounds.LandMarks.Refresh();
foreach(WoWLandMark landmark in Battlegrounds.LandMarks.LandmarkList)
{
    slog("Name: {0}, Description: {1}, Entry: {2}", landmark.Name, landmark.Description, landmark.Entry);
}
Description will be:
Code:
Horde Controlled
Alliance Controlled
Not Controlled
Other valid properties of WoWLandMark:
Code:
AreaId  
Description  
Entry  
Flags  
IsValid  
Location  
MapId  
Name  
NormalIcon  
ShowInBattleMap  
WorldState
IIRC WorldState contains that. It has a special value when it's alliance controlled, horde controlled, not controlled or just destroyed.
 
Thank you very much for this valuable tips.
Maybe an enum for the WorldState would be helpful here instead of the uint, it is more "user friendly" :)
 
Thank you very much for this valuable tips.
Maybe an enum for the WorldState would be helpful here instead of the uint, it is more "user friendly" :)
It is, but it requires us to reverse it first.
 
Back
Top