What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Plugin] Guild Inviter

Status
Not open for further replies.
not tested but the wow api SendChatMEssage should do the trick

SendChatMessage("your invite text here" ,"WHISPER", ,"name of person being invited"); the space between "whisper" and "name of..." is where the language goes...


i have no plans on testing more than that, but i am sure someone can find the line with
Lua.DoString("GuildInvite(\"" + curPerson.Key + "\")"); and figure out that is where the invite is sent out...

Si it should look like this?


Logging.Write("GuildInviting :" + curPerson.Key);
Lua.DoString("GuildInvite(\"" + curPerson.Key + "\")");
SendChatMessage("your invite text here" ,"WHISPER",Common,"name of person being invited");
writeInvitedPerson(curPerson.Value);
break;
 
Si it should look like this?


Logging.Write("GuildInviting :" + curPerson.Key);
Lua.DoString("GuildInvite(\"" + curPerson.Key + "\")");
SendChatMessage("your invite text here" ,"WHISPER",Common,"name of person being invited");
writeInvitedPerson(curPerson.Value);
break;

I believe you would have to replace name of person being inveited with the similar reference used thoughout

SendChatMessage("your invite text here" ,"WHISPER",Common,"Name");
 
Last edited:
I advise everyone using this that when the guild is full (1k members?) i found that about 600 had like 20-30days offline.. so made this little macro to kick them all by macro..

/run for i=1,GetNumGuildMembers(true) do local years,months,days,hours = GetGuildRosterLastOnline(i); if days >= 10 then local name,rank = GetGuildRosterInfo(i);GuildUninvite(name); end end

Kicks everyone over 10days offline from guild, regardless off rank(doesnt work if the player has over 1 month offline tho, didnt have anyone but cba :D) just add and months => 1 to that code and it should work
 
I advise everyone using this that when the guild is full (1k members?) i found that about 600 had like 20-30days offline.. so made this little macro to kick them all by macro..

/run for i=1,GetNumGuildMembers(true) do local years,months,days,hours = GetGuildRosterLastOnline(i); if days >= 10 then local name,rank = GetGuildRosterInfo(i);GuildUninvite(name); end end

Kicks everyone over 10days offline from guild, regardless off rank(doesnt work if the player has over 1 month offline tho, didnt have anyone but cba :D) just add and months => 1 to that code and it should work

this macro didnt work

/run for i=1,GetNumGuildMembers(true) do local years,months,days,hours = GetGuildRosterLastOnline(i); if days >= 10 then local name,rank = GetGuildRosterInfo(i);GuildUninvite(name); end end

can you post a working macro?
 
/run local limit=30 for i=1,GetNumGuildMembers(1)do local y,m,d,h=GetGuildRosterLastOnline(i)y,m,d,h,n=y or 0,m or 0,d or 0,h or 0,GetGuildRosterInfo(i)if ((y*12)+m)*30.5+d>=limit then GuildUninvite(n)end end

This will kick any player 30 day OR MORE offline
 
/run local limit=30 for i=1,GetNumGuildMembers(1)do local y,m,d,h=GetGuildRosterLastOnline(i)y,m,d,h,n=y or 0,m or 0,d or 0,h or 0,GetGuildRosterInfo(i)if ((y*12)+m)*30.5+d>=limit then GuildUninvite(n)end end

This will kick any player 30 day OR MORE offline

Could you edit it to include rank aswell ?, would be awesum, really looking that kind of macro :D .. dont want to kick officer alt's etc :)
 
Could you edit it to include rank aswell ?, would be awesum, really looking that kind of macro :D .. dont want to kick officer alt's etc :)

Maybe this will work

Kick any1 over 30 or more days and below a certain rank

/run local limit=30 for i=1,GetNumGuildMembers(1)do local name,_,rank,y,m,d,h=GetGuildRosterLastOnline(i)y,m,d,h,n=y or 0,m or 0,d or 0,h or 0,GetGuildRosterInfo(i)if ((y*12)+m)*30.5+d>=limit rank > 5 then GuildUninvite(n)end end

find

rank = 5

in the macro and change it to a different rank

1 GM
2 officer
3 ect ect ect
 
I would not recommend having the plugin whisper people as well. I got a 3 hour suspension for spamming when I tried that XD .

I got my guild capped at 1000 in about 16 hrs after sending 1st invites.
I made a macro that kicks any members that are offline, above a rank and have earned 0 weekly exp.
This example will kick all ranks higher then rank 2. if you want to change that then change the 2 in r>2

This macro is responsible for gkicking 200 members instantly. The spam was so massive it lagged my computer for a few seconds


PHP:
/run for i =1,GetNumGuildMembers() do local n,_,r,_,_,_,_,_,o = GetGuildRosterInfo(i) local x = GetGuildRosterContribution(i) if x == 0 and r > 2 and o ~= 1 then print ('removing '..n..' due to inactivity') GuildUninvite(n) end end
 
I don't think I modified it at all, but when it searches for classes, it gets to "Death Knight" and instead searches "Death Knights" returning zero results. I removed the "s" and it works like a charm now.
 
Doesnt seem to work for me. It cannot construct an instance of guildInvite. Anyone know how to fix this?
 
Last edited:
I would not recommend having the plugin whisper people as well. I got a 3 hour suspension for spamming when I tried that XD .

I got my guild capped at 1000 in about 16 hrs after sending 1st invites.
I made a macro that kicks any members that are offline, above a rank and have earned 0 weekly exp.
This example will kick all ranks higher then rank 2. if you want to change that then change the 2 in r>2

This macro is responsible for gkicking 200 members instantly. The spam was so massive it lagged my computer for a few seconds


PHP:
/run for i =1,GetNumGuildMembers() do local n,_,r,_,_,_,_,_,o = GetGuildRosterInfo(i) local x = GetGuildRosterContribution(i) if x == 0 and r > 2 and o ~= 1 then print ('removing '..n..' due to inactivity') GuildUninvite(n) end end

PLease release your version with wispering! Its fine aslong as u dont leave it running 24/7
 
PHP:
/run for i =1,GetNumGuildMembers() do local n,_,r,_,_,_,_,_,o = GetGuildRosterInfo(i) local x = GetGuildRosterContribution(i) if x == 0 and r > 2 and o ~= 1 then print ('removing '..n..' due to inactivity') GuildUninvite(n) end end

Edited it to suit my needs, but THANKS ALLOT highvoltz, first macro I could get to work, I'm not sure how your's is much different from others I've tried, cause as far as i can see they are identical. Anyway, here's my version:

/run for i =1,GetNumGuildMembers() do local n,rn,r,l,_,_,_,_,o = GetGuildRosterInfo(i) local y,m,d,h = GetGuildRosterLastOnline(i) if d > 6 and l < 10 and rn == "Peons" and o ~= 1 then print ('removing '..n..' due to inactivity') GuildUninvite(n) end end

Will kick if:
6+days offline,
Under lvl 10
Have the rank Peons (the rank of my random 'slaves' ;D )

REMEMBER TO OPEN GUILD ROSTER AND SORT BY LAST ONLINE (With Offliners @Top)

If you need to play arround with who it will kick with different setting's, just remove "GuildUninvite(n)" and it will just print the name's of the those it intend's to kick.
Credit mostly goes to HighVoltz for the macro.
 
Whisper

Add this line to Whisper be sure to change the message:
Code:
Lua.DoString(String.Format("SendChatMessage('{0}', 'WHISPER', nil, '{1}')", Lua.Escape("[B]CHANGE THIS MESSAGE[/B][B]"[/B]), Lua.Escape(curPerson.Key)));
 
Status
Not open for further replies.
Back
Top