Jump to content

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
https://wrobot.eu/forums/topic/11126-check-faction-level-help/
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

 

  • 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

 

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...