Jump to content

Check Faction level Help


Andoido

Recommended Posts

Hey fellas.

Looking for some help with checking faction level for your  toon.

For instance:

The Mag'Har (Outland Nagrand reputation) - I want to do an IF statment that says

IF > The Mag'Har Faction != Neutral

How would you write that , in lua or c#

Thanks, please get back tome!

Link to comment
Share on other sites

local factionIndex = 1
local lastFactionName
repeat
  local name, description, standingId, bottomValue, topValue, earnedValue, atWarWith,
    canToggleAtWar, isHeader, isCollapsed, hasRep, isWatched, isChild = GetFactionInfo(factionIndex)
  if name == lastFactionName then break end
  lastFactionName  = name
  -- YOUR CODE HERE --
  factionIndex = factionIndex + 1
until factionIndex > 200

 

Link to comment
Share on other sites

  • 2 weeks later...
for factionIndex = 1, GetNumFactions() do
  name, description, standingId, bottomValue, topValue, earnedValue, atWarWith,
    canToggleAtWar, isHeader, isCollapsed, hasRep, isWatched, isChild = GetFactionInfo(factionIndex)
  if isHeader == nil then return true end

 

Link to comment
Share on other sites

Aye, its all good and such but without an IsComplete statment for the quest profile its rubbish =( i need to effectivly tell the bot when to stop grinding mobs

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...