Guild Note Group Inviter
I know nothing about lua and was wondering if someone can help me fix some issue I'm having.
So the addon is supposed to invite people that match the phrase in the command to their guild note
E.I... '/rinv weekday' will invite anyone with weekday in their guild note.
So first off I took this addon
and edited the RosterInvite.lua to the following.
Once again any help will be great!
~ Cheers Bamboozle
So from the way you are saying it functions you need to make two changes.
1. You need to pattern match the extra stuff out of the variable that is created when looking at guild notes. For example, below is how I grab multiple inputs from the slash command. It puts the first word in "command", and then the rest into "rest". You can most likely use something similar when scanning guild notes. So if you have them put "weekday" or "weekend" as always the first word in their guild note, you can probably work from that.
2. After grabbing the first word from their note and storing it in its own variable, run a string.lower() on the variable and it will remove the capitals and make it work.
Wouldn't string.find/strfind() be easier?
I have similar code for both slash command argument matching and guild member iteration, so I threw together something that does what you want, case insensitive. You can invite anyone matching one or more arguments, so if you have people organized as "member", "trial", "weekday", "weekend", and so on, you can do /gnoteinv weekend member and it'll invite everyone with "weekend" or "member" in their notes. If you want to invite everyone, use /gnoteinv all. Nothing happens if there's no arguments and the code will tell you if no one matched your arguments as well. I even added some flair with class colored names.
You can change the slash command in the top line.
Go to https://addon.bool.no, paste the code below into the big box, name this whatever you want in the top box, then download and install like any other addon. You can drop the other addon altogether or reinstall it to default for its original rank invite function.
As a final note, the way this is implemented, you must have the notes spaced, which I assumed isn't an issue. "Weekend raider 939" will match weekend, but "Weekendraider939" will not.
Thank you Kanegasi and also thanks for showing me addon.bool.no
|All times are GMT -6. The time now is 12:11 AM.|
vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI