07-11-23, 11:56 PM | #1 |
Stumped getting the correct factionID
I am reworking the code chunk in RepByZone that handles getting either Wrathion's or Sabellion's factionID whenever the player's reputation changes. Instead of returning either dragon's factionID, the code is returning the backup of Valdrakken Accord.
What should be happening:
Here is my latest commit on GitHub: https://github.com/Myrroddin/repbyzone and the buggy code is on lines 444-475 of Core-Retail.lua. |
|
07-14-23, 03:36 AM | #2 |
I figured it out by updating the pre-assigned zone and subzone lists, which were using whatever was assigned during initial login, which is probably either nil. I'll clean up the code, but here are the fixed lines.
Lua Code:
|
|
WoWInterface » Developer Discussions » Lua/XML Help » Stumped getting the correct factionID |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|