GroupKickByName question
I added and tested my use of GroupInviteByName(name), had no issues.
When I added GroupKickByName(name), the function was called, but the name was not kicked. This is what I am using, the Kicking debug was shown. SLASH_COMMANDS["/tntinv"] = function(name) GroupInviteByName(name) end SLASH_COMMANDS["/tntkick"] = function(name) d("|cFF0000Kicking " .. name) GroupKickByName(name) end The party window does not display the @name, which is what I think it wants. Am I doing the kick wrong? |
If I was to guess GroupKickByName(name) uses a different format of name than GroupInviteByName(name) does. A "rawName".
It looks like IsPlayerInGroup(rawName) may also use the same format. Try experimenting with the rawName being the characters name and then the account name. I bet only one of those works for both IsPlayerInGroup and GroupKickByName. Just found this which may help Lua Code:
|
It seems kick by name expects raw character name, with gender markup. If that's true, you might have to look the "pretty" name up yourself:
Lua Code:
Btw there's builtin /invite that does the same thing as yours. But no /kick counterpart. |
Quote:
I'll try your ideas, thanks. |
Quote:
|
When I looked into this for adding the kick feature for AutoInvite, I just gave up and wrote my own:
Lua Code:
So if you get stuck with merlight's suggestion feel free to use something like that. |
All times are GMT -6. The time now is 10:21 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI