using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Styx.Helpers;
using System.Diagnostics;
using Styx.WoWInternals.WoWObjects;
using Styx.WoWInternals;
using Styx;
using System.Drawing;
using System.Threading;
using Styx.Plugins;
namespace PimpMyGuild {
public class PimpMyGuild : HBPlugin {
public override string Name { get { return "PimpMyGuild"; } }
public override string Author { get { return "Sidalol"; } }
public override Version Version { get { return _version; } }
private readonly Version _version = new Version(3, 0, 0, 0);
public override void Pulse() {
int numInvites = getNumberOfInvites();
if(numInvites > 0) {
string nextInvite = Lua.GetReturnVal<string>(string.Format("return GetNameInvite()"), 0);
Lua.DoString("GuildInvite(\"" + nextInvite + "\")");
Thread.Sleep(50);
Lua.DoString(string.Format("SpecialGuildInvite(\"{0}\")", nextInvite), 0);
Thread.Sleep(500);
}
}
private int getNumberOfInvites() {
string buttonText = Lua.GetReturnVal<string>(string.Format("if (SGI_InviteButton) and (SGI_InviteButton:IsShown()) then return SGI_InviteButtonFont:GetText(); else return 'none'; end"), 0);
if(buttonText.Contains("Invite:")) {
return Convert.ToInt32(buttonText.Remove(0, 8));
}
else {
return 0;
}
}
}
}
----------------------------
-- This functioncauses the who window not to be displayed --
function GetNameInvite()
for k,_ in pairs(SGI_QUEUE) do
return k
end
end
function SpecialGuildInvite(name)
if not SGI_DATA.lock[name] then
SGI_DATA.lock[name] = "INVITED"
end
if SGI_DATA[DATA_INDEX].settings.dropdown["SGI_WHISPER_MODE"] == 2 and SGI_DATA[DATA_INDEX].settings.checkboxes["SGI_WHISPER"] then
whisperWaiting[name] = 1
end
SGI_QUEUE[name] = nil
SendAddonMessage(ID_LOCK,name,"GUILD")
end
Ok, for those that want a updated ver until Sidalol makes an official one, here is what you do.
In your plugins\PimpMyGuild dir open up PimpMyGuild.cs, you can open it in notepad or whatever.
Replace everything in that file with this :
Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using Styx.Helpers; using System.Diagnostics; using Styx.WoWInternals.WoWObjects; using Styx.WoWInternals; using Styx; using System.Drawing; using System.Threading; using Styx.Plugins; namespace PimpMyGuild { public class PimpMyGuild : HBPlugin { public override string Name { get { return "PimpMyGuild"; } } public override string Author { get { return "Sidalol"; } } public override Version Version { get { return _version; } } private readonly Version _version = new Version(3, 0, 0, 0); public override void Pulse() { int numInvites = getNumberOfInvites(); if(numInvites > 0) { string nextInvite = Lua.GetReturnVal<string>(string.Format("return GetNameInvite()"), 0); Lua.DoString("GuildInvite(\"" + nextInvite + "\")"); Thread.Sleep(50); Lua.DoString(string.Format("SpecialGuildInvite(\"{0}\")", nextInvite), 0); Thread.Sleep(500); } } private int getNumberOfInvites() { string buttonText = Lua.GetReturnVal<string>(string.Format("if (SGI_InviteButton) and (SGI_InviteButton:IsShown()) then return SGI_InviteButtonFont:GetText(); else return 'none'; end"), 0); if(buttonText.Contains("Invite:")) { return Convert.ToInt32(buttonText.Remove(0, 8)); } else { return 0; } } } }
Download and install the latest ver 6.1c currently of SuperGuildInvite.
In your wow\interface\addons\SuperGuildInvite dir open up SuperGuildInvite.lua, same apply here, use notepad or whatever.
Scroll down a little bit in your SuperGuildInvite.lua file and find these 2 lines :
Ok, between those 2 lines, after the line with '-------*' and before the line with '-- This functio*' paste in this :Code:---------------------------- -- This functioncauses the who window not to be displayed --
Now, everytime you active superscan it will automaticly invite the ppl it finds, it allso works with the whisper delay if ppl are declining all guild invites.Code:function GetNameInvite() for k,_ in pairs(SGI_QUEUE) do return k end end function SpecialGuildInvite(name) if not SGI_DATA.lock[name] then SGI_DATA.lock[name] = "INVITED" end if SGI_DATA[DATA_INDEX].settings.dropdown["SGI_WHISPER_MODE"] == 2 and SGI_DATA[DATA_INDEX].settings.checkboxes["SGI_WHISPER"] then whisperWaiting[name] = 1 end SGI_QUEUE[name] = nil SendAddonMessage(ID_LOCK,name,"GUILD") end
Enjoy
/AknA
Ok, here is the 2 files.
Put the PimpMyGuild.cs in hb\Plugins\PimpMyGuild dir
And extract the SuperGuildInvite.zip to your wow\Interface\AddOns dir
Enjoy![]()
Ok, here is the 2 files.
Put the PimpMyGuild.cs in hb\Plugins\PimpMyGuild dir
And extract the SuperGuildInvite.zip to your wow\Interface\AddOns dir
Enjoy![]()
I don't claim this as my own, this is Sidalol's plugin, that's why I didn't release the files at first but just the code, but as ppl requested the files I released them.i did all the changes it's even better nowbot is not lagging like before thank you but u need to credit it to our friend Sidalol thank you both
I don't claim this as my own, this is Sidalol's plugin, that's why I didn't release the files at first but just the code, but as ppl requested the files I released them.
It's still says that it's Sidalol's plugin in the code, says nothing about my name
I just recoded it to work better for me, and I wanted to share it with you guys.
Hmm... do you get any errors or something gvaukjoe ?
I've run 2 account at the same time now for over an hour without having any problem what so ever.
All this plugin do now is scan the superscan window's invite button, if the number is bigger than 0,
it calls 1 functions from the addon, to find out the name of the person it find.
Plugin then invites that person to the guild and then calls another function from the addon to see if it should send a whisper or not and then updates the button, that's it.
They do have separate blacklists. If you take your characters close together in-game though they should sync blacklists. It's perfectly within the rules to invite players because they can disable guild invites if they don't want them. Spamming with whispers can lead to 3 hour ban though.
The thing is, you don't spam anyone, if a person is not in a guild, you will try to invite that person, if he's accepting guild invites, then it will whisper that person once, if that person declines your guild invite, then that person ends up on your blacklist and you will never bother him again. One whisper / person isn't spamWhispers are fine, what most people fail to see is the fact that the same message being sent in that channel is considered spam, which yes can generate a 3 hour ban, randomizing your whispers in the same channel is not spam however. I used to make macros with heaps of different messages, then just copy and paste into SGI, people can report you for spam as much as they like, when a gm sees the logs, your off Scott freewhich now gives me motivation to stalk the SGI addon author to implement a random whisper option
![]()
The thing is, you don't spam anyone, if a person is not in a guild, you will try to invite that person, if he's accepting guild invites, then it will whisper that person once, if that person declines your guild invite, then that person ends up on your blacklist and you will never bother him again. One whisper / person isn't spam![]()