Fandom

WoWWiki

API GuildUninvite

104,762pages on
this wiki
Add New Page
Talk0 Share
WoW API < GuildUninvite

Removes a member of the guild.

GetNumGuildMembers(player);

ParametersEdit

player 
String - The name of one member of the guild

ExamplesEdit

Kick Joe Edit

Makro to kick the member "Joe":

/script GuildUninvite("Joe");

Kick inactive Edit

Code for kicking inactiv long offline players

GuildRoster();
local i=1;
while ( i < 1000 ) do 
  local player,rank,rankIndex,level,class,zone,gnote,offinote,online,status,
        classFileName,achievementPoints,achievementRank,isMobile = GetGuildRosterInfo(i);
  if(not online)then 
    local year,month,day,hour=GetGuildRosterLastOnline(i);
    if(level<59 and rankIndex>8 and year>6 and gnote=="" and offinote=="")then
      GuildUninvite(player);
      i=i-1;
    end;
  end;
  i=i+1;
end;

Kick Makro Edit

Makro for searching the first 99 displayed members in the GuildRoster and kick all that fullfill all the following conditions:

  • below level 81
  • GuildRankIndex is 6
  • long offline since more than 8 days
  • no guild note
  • no officer note

Open guild roster and sort for "Last Online" before starting the makro.

/script i=99;while(i>0)do c,_,r,l,_,_,t,o,n=GetGuildRosterInfo(i);if(not n)then _,_,d,h=GetGuildRosterLastOnline(i);if(l<81 and r==6 and d>8 and t=="" and o=="")then GuildUninvite(c);end;end;i=i-1;end;

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.