not sure what you mean, you don’t even need to put that script in a macro, just run it straight from the chat window before you insert your guild link into a macro
Did the 9.-0.1 patch break it? I’ve tried using both versions of your commands and it always defaults the guild invite to the /say channel even after using the Unregister command. Barring that, is there a straight / command like /cast that can be used in a macro?
EDIT: Finally got it to work, apparently longer guild names get problematic.
I updated the code so that it is lighter on characters and you can adjust the channel that you want to put it in.
/run SendChatMessage(""..GetClubFinderLink(club.clubFinderGUID, club.name).." YOUR TEXT HERE","CHANNEL",nil,1)
replace the “YOUR TEXT HERE” part with what you want to say and change the number at the end of the string to allow you to print the message with a link to your guild application into the desired channel.
when you click the macro the output will format the message to [Guild:Your Guild] YOUR TEXT HERE. If you want to put text at the front just insert your text between the “” in front of …GetClub string. Make sure you leave the “” in front or at the end or the macro will fail to execute.
‘Message: [string “SendChatMessage(”"…GetClubFinderLink(club…"]:1: attempt to index global ‘club’ (a nil value)
Time: Sat Dec 12 17:55:09 2020
Count: 2
Stack: [string “SendChatMessage(”"…GetClubFinderLink(club…"]:1: attempt to index global ‘club’ (a nil value)
[string “=[C]”]: ?
[string “SendChatMessage(”"…GetClubFinderLink(club.clubFinderGUID, club.name)…" is recruiting for heroic and mythic progression! In need of R Shaman and ranged spellcaster DPS, but anyone can apply! Whisper me for more information.",“CHANNEL”,nil, 1)"]:1: in main chunk
[string “=[C]”]: in function RunScript' [string "@Interface\FrameXML\ChatFrame.lua"]:2182: in function ?’
[string “@Interface\FrameXML\ChatFrame.lua”]:5093: in function ChatEdit_ParseText' [string "@Interface\FrameXML\ChatFrame.lua"]:4757: in function ChatEdit_SendText’
[string “@Interface\FrameXML\ChatFrame.lua”]:3049: in function <Interface\FrameXML\ChatFrame.lua:3042>
[string “=[C]”]: in function UseAction' [string "@Interface\FrameXML\SecureTemplates.lua"]:345: in function handler’
[string “@Interface\FrameXML\SecureTemplates.lua”]:654: in function <Interface\FrameXML\SecureTemplates.lua:602>
[string “=[C]”]: ?
[string “@Interface\FrameXML\SecureHandlers.lua”]:266: in function <Interface\FrameXML\SecureHandlers.lua:263>
[string “=[C]”]: ?
[string “@Interface\FrameXML\SecureHandlers.lua”]:296: in function <Interface\FrameXML\SecureHandlers.lua:279>
[string “=(tail call)”]: ?
still working on it. It seems like the dataset needed is not there without loading it first after you login.
So what I have done as a work around for now is you can run the original script above after you open your guild interface. that seems to load the variable data required. here it is again below. you should see it message as a say. then you can run my revision and it will post it until you quit and reopen the game. It will at least let you add more characters. Going to keep at it as I have time cause this is something that bothers me. lol
/run local club = ClubFinderGetCurrentClubListingInfo(C_Club.GetGuildClubId()); SendChatMessage("test "..GetClubFinderLink(club.clubFinderGUID, club.name).." link")
so in summary, for now, perform the following.
Step1: Open your guild information by pressing j
Step2: Make a macro with the following in it: (Adjust the information however you would like for the message.)
/run local club = ClubFinderGetCurrentClubListingInfo(C_Club.GetGuildClubId()); SendChatMessage(""..GetClubFinderLink(club.clubFinderGUID, club.name).." LF active players to join us for casual raiding. Apply or PST. ","CHANNEL",nil,1)
This should now run in the whatever channel you specified at the end of the string.
working to make the functionality a little better. after you do this my option to add more text should work as well. Doing some testing right now actually.
I found that this link works when you post it in chat, hit enter to send it in chat, then it works. If you just link it to the chat bar, and try to link it to the macro bar, it won’t work, but once it has been sent, in say, general or any other chat, it will let you click it for linking to the macro. Just messed around for a bit to figure it out, worked for me, hope this helps.