Need help with this script!
I need it to announce the 4x random numbers to guildchat instead of to DEFAULT_CHAT_FRAME, but i simply can't figure out how, managed to easily set it to just /s, but doing "SendChatMessage" instead of the other one, but i can't figure out how to announce to Guild.
/script local a,msg={},"Weekly Lotto Numbers are:" for b = 1,4 do local c = math.random(10) while a[c] do c = math.random(10) end a[c]=1 msg=msg.." "..c end DEFAULT_CHAT_FRAME:AddMessage(msg) This is for a personal Guild Lotter, Yes it is LEGAL i've got pic from a GM here Thanks in advance! Mimfoe. |
Looking up SendChatMessage on wowpedia showed this link : http://www.wowpedia.org/API_SendChatMessage
Code:
/script SendChatMessage("Hello Bob!", "WHISPER", "Common", "Bob"); |
Quote:
|
Code:
/script local a,msg={},"Weekly Lotto Numbers are:" for b = 1,4 do local c = math.random(10) while a[c] do c = math.random(10) end a[c]=1 msg=msg.." "..c end SendChatMessage(msg, "GUILD") |
You're my hero
|
All times are GMT -6. The time now is 10:22 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI