View Single Post
04-25-24, 02:46 PM   #6
Sharpedge
A Theradrim Guardian
 
Sharpedge's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2022
Posts: 68
That didn't help. So back to the drawing board lol. It is probably something real simple too lol.

EDIT: I ran this when I first logged in and it shows the rating at 0. But just as soon as I went Group Finder/Player vs Player and did a /reload it showed the right rating. So something is going on here. Also whenever I switch to another toon it will show the previous toons rating.

Code:
local function TestPvPIndices()
    for i = 1, 10 do  
        local rating, seasonBest, weeklyBest, seasonPlayed, seasonWon, weeklyPlayed, weeklyWon, cap = GetPersonalRatedInfo(i)
        if rating then
            print("Index " .. i .. ":")
            print("   Current Rating: " .. rating)
            print("   Season Best: " .. seasonBest)
            print("   Weekly Best: " .. weeklyBest)
            print("   Season Played: " .. seasonPlayed)
            print("   Season Won: " .. seasonWon)
            print("   Weekly Played: " .. weeklyPlayed)
            print("   Weekly Won: " .. weeklyWon)
            print("   Cap: " .. cap)
        else
            print("Index " .. i .. ": No data available")
        end
    end
end

TestPvPIndices()

Last edited by Sharpedge : 04-25-24 at 08:17 PM.
  Reply With Quote