Go to Page... |
Thread Tools | Display Modes |
02-05-14, 10:56 AM | #1 |
Addon that automatically whispers people when they join group.
I am looking for an add-on that automatically whispers people a preset message when they join my group.
The use of the add-on would be to inform people of what the group is for (in case they've made a mistake) and provide relevant information (such as voice server details). It would be very helpful for this to be done automatically so that the leader can spend more time organising the group or LFMing. Does anyone know of an add-on that has this feature? If no such addon exists, would anyone want to create it? Note: this was initially posted at http://eu.battle.net/wow/en/forum/topic/9051726863 . I have still not found a solution since I posted there and it was suggested I try asking here. |
|
02-05-14, 12:09 PM | #2 |
If you don't find an add-on that does this, this might be a nice addition to an add-on I have
__________________
SanityCheck - If you've ever said the words "Sorry, I forgot" then you need this add-on. Remember, every time you post a comment on an add-on, a kitten gets its wings! |
|
02-05-14, 12:43 PM | #3 |
I don't think an addon like this exists.
|
|
02-06-14, 04:03 AM | #4 |
I thought this would be a lot simpler to implement, but then I was reminded about cross-realm and all the issues that brings. I wrote something up that might work:
lua Code:
PLEASE NOTE: I am not sure if this code will work with player names using unicode characters. Last edited by Sharparam : 02-06-14 at 04:56 PM. Reason: Updated code with savedvars and slash command |
|
02-06-14, 06:27 AM | #5 |
Is wipe() a standard function? Never heared of it.
|
|
02-06-14, 06:33 AM | #6 |
It's a function in the WoW API to clear a table's values. I believe it's not available in standard Lua.
|
|
02-06-14, 06:56 AM | #7 |
Wow. Thanks. Whish I had heared of it a few weeks ago.
|
|
02-06-14, 04:19 PM | #8 |
Thank-you all for your comments.
F16Gaming, thank-you very much for your help. Unfortunately, I'm receiving the following error: Code:
Date: 2014-02-06 22:02:23 ID: 1 Error occured in: Global Count: 1 Message: ..\AddOns\AutoMessager\AutoMessager.lua line 63: bad argument #1 to 'format' (string expected, got nil) Debug: [C]: format() AutoMessager\AutoMessager.lua:63: AutoMessager\AutoMessager.lua:27 AutoMessager\AutoMessager.lua:89: AutoMessager\AutoMessager.lua:77 AutoMessager\AutoMessager.lua:147: AutoMessager\AutoMessager.lua:145 Locals: (*temporary) = "%s-%s" (*temporary) = nil (*temporary) = "Zenedar" (*temporary) = "string expected, got nil" AddOns: Swatter, v5.18.5433 (PassionatePhascogale) WowheadLooter, v50014 NPCScan, v5.4.2.2 NPCScanOverlay, v5.4.1.4 AtlasLootLoader, vv7.07.01 AucAdvanced, v5.18.5433 (PassionatePhascogale) AucFilterBasic, v5.18.5433 (PassionatePhascogale) AucFilterOutlier, v5.18.5433.5347(5.18/embedded) AucMatchUndercut, v5.18.5433.5364(5.18/embedded) AucScanData, v5.18.5433 (PassionatePhascogale) AucStatHistogram, v5.18.5433 (PassionatePhascogale) AucStatiLevel, v5.18.5433 (PassionatePhascogale) AucStatPurchased, v5.18.5433 (PassionatePhascogale) AucStatSales, v5.18.5433.5376(5.18/embedded) AucStatSimple, v5.18.5433 (PassionatePhascogale) AucStatStdDev, v5.18.5433 (PassionatePhascogale) AucStatWOWEcon, v5.18.5433.5323(5.18/embedded) AucUtilAHWindowControl, v5.18.5433.5347(5.18/embedded) AucUtilAppraiser, v5.18.5433.5427(5.18/embedded) AucUtilAskPrice, v5.18.5433.5347(5.18/embedded) AucUtilAutoMagic, v5.18.5433.5415(5.18/embedded) AucUtilCompactUI, v5.18.5433.5427(5.18/embedded) AucUtilEasyBuyout, v5.18.5433.5427(5.18/embedded) AucUtilFixAH, v5.18.5433 (PassionatePhascogale) AucUtilItemSuggest, v5.18.5433.5417(5.18/embedded) AucUtilPriceLevel, v5.18.5433.5427(5.18/embedded) AucUtilScanButton, v5.18.5433.5403(5.18/embedded) AucUtilScanFinish, v5.18.5433.5347(5.18/embedded) AucUtilScanProgress, v5.18.5433.4979(5.18/embedded) AucUtilScanStart, v5.18.5433.5347(5.18/embedded) AucUtilSearchUI, v5.18.5433.5373(5.18/embedded) AucUtilSimpleAuction, v5.18.5433.5415(5.18/embedded) AucUtilVendMarkup, v5.18.5433.4828(5.18/embedded) AutoMessager, v Babylonian, v5.1.DEV.332(/embedded) BattlegroundTargets, v50400-1 BeanCounter, v5.18.5433 (PassionatePhascogale) Configator, v5.1.DEV.344(/embedded) DBMCore, v DBMInterrupts, v5.4.2 DBMRaidLeadTools, v DBMSpellTimers, v DebugLib, v5.1.DEV.337(/embedded) Enchantrix, v5.18.5433 (PassionatePhascogale) EnchantrixBarker, v5.18.5433 (PassionatePhascogale) Fatality, v2.4a Gatherer, v4.4.0 GladiatorlosSA, v2.0 Gladius, v5.1-06 HelloWorld, v1.0.0 Informant, v5.18.5433 (PassionatePhascogale) LibExtraTip, v5.12.DEV.355(/embedded) LibSharedMedia30, v3.0-81 LoseControl, v5.41 Omen, v3.1.8 OmniCC, v5.4.3 oqueue, v1.7.4 Paste, v1.1.8 Postal, v3.5.1 RaidRoll, v RaidRollEPGP, v RaidRollLootTracker, v RangeDisplay, vv4.2.3 Recount, v SlideBar, v5.18.5433 (PassionatePhascogale) Stubby, v5.18.5433 (PassionatePhascogale) TellMeWhen, v6.2.6 TipHelper, v5.12.DEV.351(/embedded) TomTom, vv50400-1.0.0 TriviaBot, v2.8.8 TriviaBotQuestionMaker, v1.4 WIM, v3.6.12 BlizRuntimeLib_enUS v5.4.2.50400 <eu> (ck=a6e) The only change I have made it is to adjust the message to a 1-line string consisting of 183 ASCII characters. I have a couple of questions:
Further help would be much appreciated. |
|
02-06-14, 04:56 PM | #9 |
You will have to post your AutoMessage.lua as it seems to be different from the code I posted (line numbers are different). I couldn't find where it would be thrown by looking at the code i posted.
I'll update my previous post with a version that saves setting and has basic slash command functionality (variable listed at top of code has to be added to the TOC's list of SavedVariables or SavedVariablesPerCharacter). |
|
02-06-14, 05:18 PM | #10 | |
(1) Scoping issues abound. You will get many errors about attempts to call nil values. (2) There is no "party5" unit, and you don't need to hardcode the list of party units like that. (3) There's no need to factor code out into a separate function if you're only going to call that function in one place. Just put the code in that place instead, and save yourself the overhead of another function call. (4) The default UI provides a GetUnitName function that takes a unit token and returns a name-server string you can pass directly to SendChatMessage, so there's no need to check realm names and manually construct such a string yourself. Here's a revised version that should fix all those problems, and also adds a slash command for setting the message and toggling it on and off: Lua Code:
If you want it to be disabled by default, change the "active = true" at the top to "active = false". If you want the mesage to save between sessions, change the "local message" at the top to "AGW_Message", change all other instances of "message" to "AGW_Message", and add a "## SavedVariables: AGW_Message" line to your TOC file.
__________________
Retired author of too many addons. Message me if you're interested in taking over one of my addons. Don’t message me about addon bugs or programming questions. Last edited by Phanx : 02-06-14 at 07:26 PM. |
||
02-06-14, 07:06 PM | #11 |
That's what I get for dry-coding :P
I didn't really take optimizing into mind though, as this isn't code that gets called 20+ times a second. Didn't know about GetUnitName, that's a neat function. |
|
02-06-14, 07:15 PM | #12 |
Sorry about the line number discrepancy, F16Gaming. Newlines seem to be inserted whenever I copy/paste from the lua code section. I can avoid this by quoting the post and copying the code from there.
The error message for your code is then: Code:
Date: 2014-02-07 01:07:50 ID: 2 Error occured in: Global Count: 3 Message: ..\AddOns\AutoMessager\AutoMessager.lua line 38: bad argument #1 to 'format' (string expected, got nil) Debug: [C]: format() AutoMessager\AutoMessager.lua:38: AutoMessager\AutoMessager.lua:20 AutoMessager\AutoMessager.lua:51: AutoMessager\AutoMessager.lua:45 AutoMessager\AutoMessager.lua:80: AutoMessager\AutoMessager.lua:79 Locals: (*temporary) = "%s-%s" (*temporary) = nil (*temporary) = "Zenedar" (*temporary) = "string expected, got nil" AddOns: Swatter, v5.18.5433 (PassionatePhascogale) WowheadLooter, v50014 NPCScan, v5.4.2.2 NPCScanOverlay, v5.4.1.4 AtlasLootLoader, vv7.07.01 AucAdvanced, v5.18.5433 (PassionatePhascogale) AucFilterBasic, v5.18.5433 (PassionatePhascogale) AucFilterOutlier, v5.18.5433.5347(5.18/embedded) AucMatchUndercut, v5.18.5433.5364(5.18/embedded) AucStatHistogram, v5.18.5433 (PassionatePhascogale) AucStatiLevel, v5.18.5433 (PassionatePhascogale) AucStatPurchased, v5.18.5433 (PassionatePhascogale) AucStatSales, v5.18.5433.5376(5.18/embedded) AucStatSimple, v5.18.5433 (PassionatePhascogale) AucStatStdDev, v5.18.5433 (PassionatePhascogale) AucStatWOWEcon, v5.18.5433.5323(5.18/embedded) AucUtilAHWindowControl, v5.18.5433.5347(5.18/embedded) AucUtilAppraiser, v5.18.5433.5427(5.18/embedded) AucUtilAskPrice, v5.18.5433.5347(5.18/embedded) AucUtilAutoMagic, v5.18.5433.5415(5.18/embedded) AucUtilCompactUI, v5.18.5433.5427(5.18/embedded) AucUtilEasyBuyout, v5.18.5433.5427(5.18/embedded) AucUtilFixAH, v5.18.5433 (PassionatePhascogale) AucUtilItemSuggest, v5.18.5433.5417(5.18/embedded) AucUtilPriceLevel, v5.18.5433.5427(5.18/embedded) AucUtilScanButton, v5.18.5433.5403(5.18/embedded) AucUtilScanFinish, v5.18.5433.5347(5.18/embedded) AucUtilScanProgress, v5.18.5433.4979(5.18/embedded) AucUtilScanStart, v5.18.5433.5347(5.18/embedded) AucUtilSearchUI, v5.18.5433.5373(5.18/embedded) AucUtilSimpleAuction, v5.18.5433.5415(5.18/embedded) AucUtilVendMarkup, v5.18.5433.4828(5.18/embedded) AutoGroupWhisper, v AutoMessager, v Babylonian, v5.1.DEV.332(/embedded) BattlegroundTargets, v50400-1 BeanCounter, v5.18.5433 (PassionatePhascogale) Configator, v5.1.DEV.344(/embedded) DBMCore, v DBMInterrupts, v5.4.2 DBMRaidLeadTools, v DBMSpellTimers, v DebugLib, v5.1.DEV.337(/embedded) Enchantrix, v5.18.5433 (PassionatePhascogale) EnchantrixBarker, v5.18.5433 (PassionatePhascogale) Fatality, v2.4a Gatherer, v4.4.0 GladiatorlosSA, v2.0 Gladius, v5.1-06 HealBot, v5.4.2.0 HealBotTips, v5.4.2.0 HelloWorld, v1.0.0 Informant, v5.18.5433 (PassionatePhascogale) Jamba, v5.4.0 JambaAdvancedLoot, v5.4.0 JambaDisplayTeam, v5.4.0 JambaFollow, v5.4.0 JambaFTL, v5.4.0 JambaItemUse, v5.4.0 JambaMacro, v5.4.0 JambaProc, v5.4.0 JambaPurchase, v5.4.0 JambaQuest, v5.4.0 JambaQuestWatcher, v5.4.0 JambaSell, v5.4.0 JambaTalk, v5.4.0 JambaTarget, v5.4.0 JambaTaxi, v5.4.0 JambaToon, v5.4.0 JambaTrade, v5.4.0 LibExtraTip, v5.12.DEV.355(/embedded) LibSharedMedia30, v3.0-81 LoseControl, v5.41 Omen, v3.1.8 OmniCC, v5.4.3 oqueue, v1.7.4 Paste, v1.1.8 Postal, v3.5.1 RaidRoll, v RaidRollEPGP, v RaidRollLootTracker, v RangeDisplay, vv4.2.3 Recount, v SlideBar, v5.18.5433 (PassionatePhascogale) Stubby, v5.18.5433 (PassionatePhascogale) TellMeWhen, v6.2.6 TipHelper, v5.12.DEV.351(/embedded) TomTom, vv50400-1.0.0 TriviaBot, v2.8.8 TriviaBotQuestionMaker, v1.4 WIM, v3.6.12 BlizRuntimeLib_enUS v5.4.2.50400 <eu> (ck=bf3) Code:
Date: 2014-02-07 01:07:50 ID: 1 Error occured in: Global Count: 2 Message: ...terface\AddOns\AutoGroupWhisper\AutoGroupWhisper.lua line 20: attempt to call local 'numGroupMembers' (a number value) Debug: ...terface\AddOns\AutoGroupWhisper\AutoGroupWhisper.lua:20: ...terface\AddOns\AutoGroupWhisper\AutoGroupWhisper.lua:8 Locals: self = <unnamed> { 0 = <userdata> } event = "GROUP_ROSTER_UPDATE" unitBase = "party" numGroupMembers = 0 (*temporary) = 1 (*temporary) = 0 (*temporary) = "attempt to call local 'numGroupMembers' (a number value)" active = true whispered = <table> { } message = "Welcome to the group!" AddOns: Swatter, v5.18.5433 (PassionatePhascogale) WowheadLooter, v50014 NPCScan, v5.4.2.2 NPCScanOverlay, v5.4.1.4 AtlasLootLoader, vv7.07.01 AucAdvanced, v5.18.5433 (PassionatePhascogale) AucFilterBasic, v5.18.5433 (PassionatePhascogale) AucFilterOutlier, v5.18.5433.5347(5.18/embedded) AucMatchUndercut, v5.18.5433.5364(5.18/embedded) AucStatHistogram, v5.18.5433 (PassionatePhascogale) AucStatiLevel, v5.18.5433 (PassionatePhascogale) AucStatPurchased, v5.18.5433 (PassionatePhascogale) AucStatSales, v5.18.5433.5376(5.18/embedded) AucStatSimple, v5.18.5433 (PassionatePhascogale) AucStatStdDev, v5.18.5433 (PassionatePhascogale) AucStatWOWEcon, v5.18.5433.5323(5.18/embedded) AucUtilAHWindowControl, v5.18.5433.5347(5.18/embedded) AucUtilAppraiser, v5.18.5433.5427(5.18/embedded) AucUtilAskPrice, v5.18.5433.5347(5.18/embedded) AucUtilAutoMagic, v5.18.5433.5415(5.18/embedded) AucUtilCompactUI, v5.18.5433.5427(5.18/embedded) AucUtilEasyBuyout, v5.18.5433.5427(5.18/embedded) AucUtilFixAH, v5.18.5433 (PassionatePhascogale) AucUtilItemSuggest, v5.18.5433.5417(5.18/embedded) AucUtilPriceLevel, v5.18.5433.5427(5.18/embedded) AucUtilScanButton, v5.18.5433.5403(5.18/embedded) AucUtilScanFinish, v5.18.5433.5347(5.18/embedded) AucUtilScanProgress, v5.18.5433.4979(5.18/embedded) AucUtilScanStart, v5.18.5433.5347(5.18/embedded) AucUtilSearchUI, v5.18.5433.5373(5.18/embedded) AucUtilSimpleAuction, v5.18.5433.5415(5.18/embedded) AucUtilVendMarkup, v5.18.5433.4828(5.18/embedded) AutoGroupWhisper, v AutoMessager, v Babylonian, v5.1.DEV.332(/embedded) BattlegroundTargets, v50400-1 BeanCounter, v5.18.5433 (PassionatePhascogale) Configator, v5.1.DEV.344(/embedded) DBMCore, v DBMInterrupts, v5.4.2 DBMRaidLeadTools, v DBMSpellTimers, v DebugLib, v5.1.DEV.337(/embedded) Enchantrix, v5.18.5433 (PassionatePhascogale) EnchantrixBarker, v5.18.5433 (PassionatePhascogale) Fatality, v2.4a Gatherer, v4.4.0 GladiatorlosSA, v2.0 Gladius, v5.1-06 HealBot, v5.4.2.0 HealBotTips, v5.4.2.0 HelloWorld, v1.0.0 Informant, v5.18.5433 (PassionatePhascogale) Jamba, v5.4.0 JambaAdvancedLoot, v5.4.0 JambaDisplayTeam, v5.4.0 JambaFollow, v5.4.0 JambaFTL, v5.4.0 JambaItemUse, v5.4.0 JambaMacro, v5.4.0 JambaProc, v5.4.0 JambaPurchase, v5.4.0 JambaQuest, v5.4.0 JambaQuestWatcher, v5.4.0 JambaSell, v5.4.0 JambaTalk, v5.4.0 JambaTarget, v5.4.0 JambaTaxi, v5.4.0 JambaToon, v5.4.0 JambaTrade, v5.4.0 LibExtraTip, v5.12.DEV.355(/embedded) LibSharedMedia30, v3.0-81 LoseControl, v5.41 Omen, v3.1.8 OmniCC, v5.4.3 oqueue, v1.7.4 Paste, v1.1.8 Postal, v3.5.1 RaidRoll, v RaidRollEPGP, v RaidRollLootTracker, v RangeDisplay, vv4.2.3 Recount, v SlideBar, v5.18.5433 (PassionatePhascogale) Stubby, v5.18.5433 (PassionatePhascogale) TellMeWhen, v6.2.6 TipHelper, v5.12.DEV.351(/embedded) TomTom, vv50400-1.0.0 TriviaBot, v2.8.8 TriviaBotQuestionMaker, v1.4 WIM, v3.6.12 BlizRuntimeLib_enUS v5.4.2.50400 <eu> (ck=bf3) Last edited by Dimmulux : 02-06-14 at 07:23 PM. |
|
02-06-14, 07:20 PM | #13 |
To fix that error in Phanx's code, remove the parantheses on line 20:
lua Code:
lua Code:
|
|
02-06-14, 07:27 PM | #14 | |
(Fixed the code in my post, thanks.)
__________________
Retired author of too many addons. Message me if you're interested in taking over one of my addons. Don’t message me about addon bugs or programming questions. |
||
02-07-14, 07:27 PM | #15 |
Thank-you both very much for your help. I've been using the add-on all evening and it's been working great.
|
|
WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Addon that automatically whispers people when they join group. |
«
Previous Thread
|
Next Thread
»
|
Thread Tools | |
Display Modes | |
|
|