Raid invite macro
Hello!
"All max level character will be invited to raid in 10 sec. Please leave your groups." I'm looking for a script to be able to to do mass invites for guildies similar to DBM's mass invite above, but with another guild chat warning text and other level range. Fore example "For the X event discussed on the forum, all players between level 70 and 80 will be invite in 10 sec." -> then the script invites all guildies in that level range in 10 sec. Is that possible to do with a script? I really dont want to install justanoherusefuladdon since I got plenty already. Thanks! |
I feel like the script required would be too large to fit into just one macro. I would just look for an auto-invite addon of some sort.
I've found AutoInvite by Martag. The only thing is this one invites by whispering a keyword, such as "inv" or "invite." |
Something like this?
http://addon.ziuo.net/ Quote:
Code:
local delay = 0 or with AceTimer, provided you have Ace3 loaded/embeded. The message has a limited length though Code:
/run SendChatMessage("Hello World!","GUILD")LibStub("AceTimer-3.0"):ScheduleTimer(function()for i=1,GetNumGuildMembers()do local a,_,_,b,_,_,_,_,c=GetGuildRosterInfo(i)if c and(b>=70 and b<=80)then InviteUnit(a)end end end,10) -- Neither of those 2 example scripts cope with changing from a party to a raid though :( |
This modification of Ketho's code should handle party-to-raid conversions. If you're already in a party when the mass invites go out, it will convert the party to a raid. If you're not in a party yet, it will wait until someone accepts the invite, and then convert the party to a raid.
I also added the ability to configure the delay time in the slash command: Code:
/rinv 15 Raid invites coming in 15 seconds! Code:
local WAIT_TIME = 10 |
Thank both of you for the reply!
Is there any dependency to induce the addon to work that I made at http://addon.ziuo.net ? Because it seems not working. It reports wrong command for bot /rinv and /raidinvite All I have to do is copy-paste the code (with the starting line "local WAIT_TIME = 10") to the "LUA file" editbox on addon.ziuo.net and choose a name above at "Addon folder name" editbox or should I use "Show advanced TOC options" also or something else I missed out? How can I get it to work? |
Do you have "Load Outdated AddOns" checked? The addon creator you linked to has the incorrect interface number in the TOC. It's 40300, not 40330. You can either tell your game client to load the addon or change the number in the TOC while on that site.
|
Of course, I use some other outdated addons aswell. It used to be working but it doesn't.
Edit: Ok, I figured out that the first script (Ketho's script) is working, the second script (Phanx' one) is not working for me. Is the Phanx' one only an affix to Ketho's script or is it a complete rewrite that I can copy+paste into the http://addon.ziuo.net script field? |
Quote:
|
When I type either /rinv or /raidinvite, wow does not recognize it. Replies "Type '/help' for a listing of a few commands" error message.
|
There was a missing parenthesis. Here is a corrected version:
Code:
local WAIT_TIME = 10 Also, for future reference, when testing code, or trying to figure out why an addon isn't working right, you should install BugSack or a similar error catching tool so you can see any Lua errors that are occurring. Just enabling Lua errors in the Blizzard interface options isn't enough, because that won't show you errors that occur during the initial loading sequence (like those caused by missing parentheses). |
The new one is working as intended, thank you very much!
However, when the invites begin and it reaches the 4th invite then I got some "Your party is full." message for the 5th, 6th, etc.. I had to manually invite the rest again who weren't invited since the party was full. (Actually the party wasn't full, it was empty (only me) because nobody has accepted the first 4 invites because they were in a group.) Could switching the order (convert party to raid then invite members) solve that problem? |
Hmm, I see the problem. You actually can't send more than one party's worth of invites until you convert to a raid. It's definitely solvable, though. I'll see what I can come up with.
|
All times are GMT -6. The time now is 05:27 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI