Wikia

WoWWiki

API GuildUninvite

Talk0
101,311pages on
this wiki
Revision as of 14:56, December 28, 2010 by Emwowwiki (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
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;

Around Wikia's network

Random Wiki