Skip to content

Commit

Permalink
Remove guild level/XP stuff for 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hughescr authored and tekkub committed Oct 24, 2014
1 parent 8430277 commit 30e532c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions picoGuild.lua
Expand Up @@ -63,12 +63,10 @@ function f:PLAYER_LOGIN()

self:Show()
self:RegisterEvent("GUILD_ROSTER_UPDATE")
self:RegisterEvent("GUILD_XP_UPDATE")
self:RegisterEvent("CHAT_MSG_SYSTEM")

SortGuildRoster("class")
if IsInGuild() then
QueryGuildXP()
GuildRoster()
end

Expand All @@ -89,12 +87,9 @@ end
function f:GUILD_ROSTER_UPDATE()
if IsInGuild() then
local total, online = GetNumGuildMembers()
local currentXP, remainingXP = UnitGetGuildXP("player")
local level = GetGuildLevel() + currentXP/(currentXP + remainingXP)
dataobj.text = string.format("Lv%.1f - %d/%d", math.floor(level*10)/10, online, total)
dataobj.text = string.format("%d/%d", online, total)
else dataobj.text = L["No Guild"] end
end
f.GUILD_XP_UPDATE = f.GUILD_ROSTER_UPDATE


------------------------
Expand All @@ -111,8 +106,6 @@ function dataobj.OnEnter(self)
tip:AddLine("picoGuild")

if IsInGuild() then
local currentXP, remainingXP = UnitGetGuildXP("player")
local nextLevelXP = currentXP + remainingXP

local gender = UnitSex("player")
local name, description, standingID, barMin, barMax, barValue = GetGuildFactionInfo()
Expand Down

0 comments on commit 30e532c

Please sign in to comment.