Skip to content

Commit 28d2259

Browse files
committed
merge conflict
2 parents 462f319 + 5336adc commit 28d2259

7 files changed

+67
-43
lines changed

AutoResponse.lua

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ local function RespondToInvite(_, author)
3434
if addon.db.char.autoRejectInvites == true and listedLFG then
3535
for i = 1, STATICPOPUP_NUMDIALOGS do
3636
if _G["StaticPopup" .. i].which == "PARTY_INVITE" then
37-
print(1)
3837
local player = _G["StaticPopup" .. i].text.text_arg1:gsub(" invites you.+", "")
3938
--dont reject recently spoken to players or friends
4039
if addon.recentPlayers[player] == nil and addon.friendList[player] == nil then

Core.lua

+39-26
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,13 @@ local function DrawListings(self)
562562
button.btn:SetScript("OnClick", function()
563563
addon.SendPlayerInfo(listing.author, nil, nil, listing.fullName, listing.resultID)
564564
listing.messageSent = true
565+
listing.senderName = myname
565566
end)
567+
--clear messages sent on switching characters
568+
if listing.messageSent and myname ~= listing.senderName then
569+
listing.messageSent = nil
570+
listing.senderName = nil
571+
end
566572
--Change
567573
if listing.messageSent then
568574
button.btn:SetText("|TInterface\\AddOns\\" ..
@@ -1949,6 +1955,7 @@ function addon:OnInitialize()
19491955
charSheetGear = true,
19501956
announceInstanceReset = true,
19511957
showedv161InfoPopup = false,
1958+
lastShowedInfoPopup = 1.63,
19521959
}
19531960
}
19541961

@@ -2833,8 +2840,8 @@ function addon.SetupConfig()
28332840
addon.db.global.lastServer = currentServer
28342841

28352842

2836-
if not addon.db.global.showedv161InfoPopup then
2837-
addon.db.global.showedv161InfoPopup = true
2843+
if addon.db.global.lastShowedInfoPopup < addon.version then
2844+
addon.db.global.lastShowedInfoPopup = addon.version
28382845
local PopupFrame = nil
28392846
local POPUP_WINDOW_WIDTH = 400
28402847
local POPUP_WINDOW_HEIGHT = 450
@@ -2871,12 +2878,12 @@ function addon.SetupConfig()
28712878
local PopupGroupieTitle = PopupFrame:CreateFontString("FontString", "OVERLAY", "GameFontNormalMed1")
28722879
PopupGroupieTitle:SetPoint("TOP", PopupFrame, "TOP", 0, -36)
28732880
PopupGroupieTitle:SetWidth(POPUP_WINDOW_WIDTH - 32)
2874-
PopupGroupieTitle:SetText("Groupie 1.61")
2881+
PopupGroupieTitle:SetText("Groupie 1.64")
28752882
--Info Text
28762883
local PopupMsg = PopupFrame:CreateFontString("FontString", "OVERLAY", "GameFontHighlight")
28772884
PopupMsg:SetPoint("TOPLEFT", PopupFrame, "TOPLEFT", 16, -64)
28782885
PopupMsg:SetWidth(POPUP_WINDOW_WIDTH - 32)
2879-
PopupMsg:SetText("LFG Auto-Response has been Disabled by default on Start-up; to Enable it just Right click the Groupie Mini-map Icon.\n\nFixed a few other bugs.\n---\nGroupie 1.60\n\nHola Amigo, we've got some changes for you.\n\n1) LFG Auto-Response is a new feature that responds to your Friends and Guildies when they create 5-man groups. It's enabled by default. To turn it off, or change what sort of groups it responds to, check out the Options Interface. You can also toggle LFG Auto Response by Right Clicking on the Groupie Mini-map Icon.\n\n2) We've re-worked the \"challenge\" messages when you're being invited to a group, or someone requests to join your group. By default, we've disabled these messages when someone invites you, and kept on the \"What role are you?...\" messages when someone requests to join your group. These messages don't fire at all when someone messages you before inviting or requesting to join, and you can tweak the behavior in the Options Interface.\n\nCheers!")
2886+
PopupMsg:SetText("1.64\n\nHey Everyone,\n\nGroupie is switching to a new \"Charm Validation\" technique and getting rid of the ugly hashes -- like \"[#Ag4f]\" at the end of messages.\n\nInstead we're using 3 target markers. The idea came from user Haste on our Discord.\n\nYou may see some \"Fake News\" responses from people who haven't updated yet. Hopefully it won't take too long to get everyone updated.\n\nCheers!")
28802887
PopupMsg:SetJustifyH("LEFT")
28812888
--Edit Box for Discord Link
28822889
local PopupEditBox = CreateFrame("EditBox", "GroupieEditBoxPopup", PopupFrame, "InputBoxTemplate")
@@ -3072,29 +3079,30 @@ function addon.UpdateCharacterSheet(ignoreILVL, ignoreGS)
30723079
--1st Line : Show Talents
30733080
--2nd Line : Show Average Item Level
30743081
--3rd Line : Show Gear Score
3075-
if addon.db.global.charSheetGear then
3076-
--Calculate talents
3077-
local spec1, spec2, spec3 = CI:GetTalentPoints("player")
3078-
local talentStr = format("%d / %d / %d", spec1, spec2, spec3)
3079-
--Calculate Item level
3080-
local ilvl = addon.MyILVL()
3081-
if ilvl then
3082-
if ilvl > 0 then
3083-
addon.playerILVL = ilvl
3084-
end
3085-
end
3086-
--Calculate gearscore
3087-
LGS:PLAYER_EQUIPMENT_CHANGED() --Workaround for PEW event in library being too early
3088-
CI:DoInspect("player")
3089-
local guid, gearScore = LGS:GetScore("player")
3090-
if gearScore and gearScore.GearScore and gearScore.GearScore > 0 then
3091-
addon.playerGearScore = gearScore.GearScore
3092-
end
3093-
local colorStr = ""
3094-
if gearScore.Color then
3095-
colorStr = "|c" .. gearScore.Color:GenerateHexColor()
3082+
3083+
--Calculate talents
3084+
local spec1, spec2, spec3 = CI:GetTalentPoints("player")
3085+
local talentStr = format("%d / %d / %d", spec1, spec2, spec3)
3086+
--Calculate Item level
3087+
local ilvl = addon.MyILVL()
3088+
if ilvl then
3089+
if ilvl > 0 then
3090+
addon.playerILVL = ilvl
30963091
end
3097-
--Display on character sheet
3092+
end
3093+
--Calculate gearscore
3094+
LGS:PLAYER_EQUIPMENT_CHANGED() --Workaround for PEW event in library being too early
3095+
CI:DoInspect("player")
3096+
local guid, gearScore = LGS:GetScore("player")
3097+
if gearScore and gearScore.GearScore and gearScore.GearScore > 0 then
3098+
addon.playerGearScore = gearScore.GearScore
3099+
end
3100+
local colorStr = ""
3101+
if gearScore.Color then
3102+
colorStr = "|c" .. gearScore.Color:GenerateHexColor()
3103+
end
3104+
--Display on character sheet
3105+
if addon.db.global.charSheetGear then
30983106
CharSheetSummaryFrame:SetText(format("%s\nItem-level : %d\nGearScore : %s%d", talentStr, ilvl,
30993107
colorStr, gearScore.GearScore))
31003108
end
@@ -3173,6 +3181,11 @@ function addon:OnEnable()
31733181
--Turn LFG mode off on group join
31743182
addon.icon:ChangeTexture("Interface\\AddOns\\" .. addonName .. "\\Images\\icon64.tga", "GroupieLDB")
31753183
addon.LFGMode = false
3184+
3185+
for author, listing in pairs(addon.db.global.listingTable) do
3186+
listing.messageSent = nil
3187+
listing.senderName = nil
3188+
end
31763189
end)
31773190
--Send version check to players joining group/raid
31783191
addon:RegisterEvent("CHAT_MSG_SYSTEM", function(...)

Globals.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ addon.groupieUnflippedDungeonPatterns = {
814814
["Halls of Reflection"] = "hor reflection",
815815

816816
--["Naxxramas"] = "",
817-
["Obsidian Sanctum"] = "os obsidian obssanc obsanc obsidiansanctum",
817+
["Obsidian Sanctum"] = "os obsidian obssanc obsanc obsidiansanctum os0d os1d os2d os3d",
818818
["Vault of Archavon"] = "voa archavon vault",
819819
["Eye of Eternity"] = "eoe eye maly malygos",
820820
--["Onyxia's Lair"] = "",

Groupie.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Interface: 30400
22
## Title: Groupie
33
## Notes: A better LFG tool for Classic WoW.
4-
## Version: 1.63
4+
## Version: 1.64
55
## Author: Gogo, LemonDrake, Kynura, Raegen
66
## SavedVariables: GroupieDB
77
## X-Curse-Project-ID: 661450

Helpers.lua

+10-6
Original file line numberDiff line numberDiff line change
@@ -722,14 +722,18 @@ function addon.MyILVL()
722722

723723
if tempItemLink then
724724
local name, _, _, iLevel, _, _, _, _, itemType = GetItemInfo(tempItemLink)
725-
if slotNum == 16 and itemType == "INVTYPE_2HWEAPON" then
726-
--If the weapon is 2 handed, and the offhand slot is empty, we sum the weapon's itemlevel twice
727-
if GetInventoryItemLink("player", 17) == nil then
728-
iLevelSum = iLevelSum + iLevel
725+
if iLevel then
726+
if slotNum == 16 and itemType == "INVTYPE_2HWEAPON" then
727+
--If the weapon is 2 handed, and the offhand slot is empty, we sum the weapon's itemlevel twice
728+
if GetInventoryItemLink("player", 17) == nil then
729+
iLevelSum = iLevelSum + iLevel
730+
end
729731
end
730-
end
731732

732-
iLevelSum = iLevelSum + iLevel
733+
iLevelSum = iLevelSum + iLevel
734+
else
735+
return 0
736+
end
733737
end
734738
end
735739
end

Listener.lua

+4
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,10 @@ local function WhisperListener(_, msg, longAuthor, ...)
605605
end
606606
end
607607
end
608+
if msg == WARNING_MESSAGE then
609+
SendChatMessage("Actually... you're still on an old version of Groupie that doesn't recognize the new \"Charm Validation\" method. Please update! (Sent by Groupie)."
610+
, "WHISPER", "COMMON", longAuthor)
611+
end
608612
end
609613
end
610614

RightClick.lua

+12-8
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,17 @@ function addon.SendPlayerInfo(targetName, dropdownMenu, which, fullName, resultI
8484
end
8585
if addon.playerILVL ~= nil and addon.playerILVL > 0 then
8686
lvlStr = "Item-level " .. tostring(addon.playerILVL)
87+
else
88+
lvlStr = "Level " .. tostring(mylevel)
8789
end
8890
elseif addon.db.char.LFGMsgGearType == 3 then
8991
if addon.playerGearScore == nil or addon.playerGearScore < 1 then
9092
addon.UpdateCharacterSheet()
9193
end
9294
if addon.playerGearScore ~= nil and addon.playerGearScore > 0 then
9395
lvlStr = "GearScore " .. tostring(addon.playerGearScore)
96+
else
97+
lvlStr = "Level " .. tostring(mylevel)
9498
end
9599
end
96100

@@ -116,13 +120,13 @@ function addon.SendPlayerInfo(targetName, dropdownMenu, which, fullName, resultI
116120
------------
117121
--Old Hash--
118122
------------
119-
local msgHash = addon.StringHash(myname .. groupieMsg)
120-
groupieMsg = format("%s [#%s]", groupieMsg, msgHash)
123+
--local msgHash = addon.StringHash(myname .. groupieMsg)
124+
--groupieMsg = format("%s [#%s]", groupieMsg, msgHash)
121125
------------
122126
--New Hash--
123127
------------
124-
--local msgHash = addon.RTHash(myname .. groupieMsg)
125-
--groupieMsg = format("%s %s", groupieMsg, msgHash)
128+
local msgHash = addon.RTHash(myname .. groupieMsg)
129+
groupieMsg = format("%s %s", groupieMsg, msgHash)
126130

127131
--Sending Current Spec Info
128132
if which == "BN_FRIEND" then
@@ -149,13 +153,13 @@ function addon.SendWCLInfo(targetName, dropdownMenu, which)
149153
------------
150154
--Old Hash--
151155
------------
152-
local msgHash = addon.StringHash(myname .. groupieMsg)
153-
groupieMsg = format("%s [#%s]", groupieMsg, msgHash)
156+
--local msgHash = addon.StringHash(myname .. groupieMsg)
157+
--groupieMsg = format("%s [#%s]", groupieMsg, msgHash)
154158
------------
155159
--New Hash--
156160
------------
157-
--local msgHash = addon.RTHash(myname .. groupieMsg)
158-
--groupieMsg = format("%s %s", groupieMsg, msgHash)
161+
local msgHash = addon.RTHash(myname .. groupieMsg)
162+
groupieMsg = format("%s %s", groupieMsg, msgHash)
159163

160164

161165
if which == "BN_FRIEND" then

0 commit comments

Comments
 (0)