Andoido 75 Posted April 26, 2019 Share Posted April 26, 2019 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 More sharing options...
TheSmokie 242 Posted April 26, 2019 Share Posted April 26, 2019 This should provide all info for you to use a if lua code. https://wowwiki.fandom.com/wiki/API_GetFactionInfo Link to comment https://wrobot.eu/forums/topic/11126-check-faction-level-help/#findComment-53111 Share on other sites More sharing options...
TheSmokie 242 Posted April 26, 2019 Share Posted April 26, 2019 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 https://wrobot.eu/forums/topic/11126-check-faction-level-help/#findComment-53112 Share on other sites More sharing options...
TheSmokie 242 Posted May 9, 2019 Share Posted May 9, 2019 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 https://wrobot.eu/forums/topic/11126-check-faction-level-help/#findComment-53437 Share on other sites More sharing options...
Andoido 75 Posted May 9, 2019 Author Share Posted May 9, 2019 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 https://wrobot.eu/forums/topic/11126-check-faction-level-help/#findComment-53455 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now