April 26, 20196 yr 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!
April 26, 20196 yr This should provide all info for you to use a if lua code. https://wowwiki.fandom.com/wiki/API_GetFactionInfo
April 26, 20196 yr 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
May 9, 20196 yr 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
May 9, 20196 yr Author 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
Create an account or sign in to comment