Page 1 of 1

Finding Id #s

Posted: Wed Oct 17, 2018 3:24 pm
by Lordcrist
I know how to [Link Your Guild], but I want to make a Macro with [Link Your Guild] and someone said I needed the Guild Id. How do I find that?

Re: Finding Id #s

Posted: Thu Oct 18, 2018 5:21 pm
by Luuca
I'm not sure. Maybe ask on the forums?

Re: Finding Id #s

Posted: Thu Oct 18, 2018 6:26 pm
by sullemunk
Luuca wrote: Thu Oct 18, 2018 5:21 pm I'm not sure. Maybe ask on the forums?
Isn't this the forums?

Re: Finding Id #s

Posted: Thu Oct 18, 2018 7:21 pm
by Luuca
sullemunk wrote: Thu Oct 18, 2018 6:26 pm
Luuca wrote: Thu Oct 18, 2018 5:21 pm I'm not sure. Maybe ask on the forums?
Isn't this the forums?
Image

Re: Finding Id #s

Posted: Thu Oct 18, 2018 7:54 pm
by sullemunk
well, back to topic:
Copy and paste this into your chat:

Code: Select all

/script TextLogAddEntry("Chat", 0,towstring(GameData.Guild.m_GuildName)..L": "..towstring(GameData.Guild.m_GuildID))
and it will print out your guild ID in the Chatbox

Re: Finding Id #s

Posted: Sun Oct 21, 2018 4:08 pm
by kauyon1
sullemunk wrote: Thu Oct 18, 2018 7:54 pm well, back to topic:
Copy and paste this into your chat:

Code: Select all

/script TextLogAddEntry("Chat", 0,towstring(GameData.Guild.m_GuildName)..L": "..towstring(GameData.Guild.m_GuildID))
and it will print out your guild ID in the Chatbox
What would the script be to have your [Link to Guild] work in a macro then?

Re: Finding Id #s

Posted: Sun Oct 21, 2018 4:53 pm
by sullemunk
Short quick version (sends it to the current chat textline)

Code: Select all

/script  EA_ChatWindow.InsertGuildLink(GetDatabaseGuildData( GameData.Guild.m_GuildID))
Longer, more custimazion options version (sends it directly to the chat window)

Code: Select all

/script SendChatText(L"/say <LINK data=\"GUILD:"..towstring(GameData.Guild.m_GuildID)..L"\" text=\""..L"["..towstring(GameData.Guild.m_GuildName)..L"]"..L"\" color=\"0,255,0\">", L"")

Re: Finding Id #s

Posted: Sun Oct 21, 2018 7:21 pm
by kauyon1
THANK YOU!