Hey All,
Just started making a new guild and am having problems with this, Have the addon and plugin installed via SVN as stated on the initial page however the plugin doesnt seem to load anything, no button on minimap and when i go /sgi options it gives me a box with no info in the middle, is this currently broken or am i doing something wrong?
I'm looking to update some files to get all the functions back.
I have the greeting message working, i'm looking for the whisper function now and i'll look for the fixed frame issues later.
Will post fix today. Its my mother birthday atm so i do it just after![]()
Works really great for me !
Just one question, how can I move the superscan window ? It's not annoying when botting, but if I want to scan and click manually while farming dungeons etc, it's pretty annoying !
using System;
using Styx.CommonBot;
using Styx.Plugins;
using Styx.WoWInternals;
namespace PimpMyGuild {
public class PimpMyGuild : HBPlugin {
public override string Name { get { return "PimpMyGuild"; } }
public override string Author { get { return "Sidalol and AknA"; } }
public override Version Version { get { return _version; } }
private readonly Version _version = new Version(4, 0, 0, 1);
private static string _lastInvite = "";
private static string _nextInvite = "";
private static bool _initialized;
public override void OnEnable() {
if(_initialized) {
return;
}
_initialized = true;
BotEvents.OnBotStarted += BotEvent_OnBotStarted;
}
public void BotEvent_OnBotStarted(EventArgs args) {
Lua.DoString("SGI:StartSuperScan()");
}
public override void Pulse() {
var countInvites = Lua.GetReturnVal<int>(string.Format("return PMGCount()"), 0);
if(countInvites <= 0) {
return;
}
_nextInvite = Lua.GetReturnVal<string>(string.Format("return PMGGetNameInvite()"), 0);
if(_nextInvite == _lastInvite) {
return;
}
Lua.DoString("GuildInvite(\"" + _nextInvite + "\")");
Lua.DoString("SGI:SendGuildInvite(LeftButton)");
Lua.DoString(string.Format("PMGGuildInvite(\"{0}\")", _nextInvite), 0);
_lastInvite = _nextInvite;
}
}
}
-- Start of PMG Stuff
function PMGCount()
local i = 0
if type(SGI_QUEUE) ~= "table" then
return i
end
for k,_ in pairs(SGI_QUEUE) do
i = i + 1
end
return i
end
function PMGGetNameInvite()
for k,_ in pairs(SGI_QUEUE) do
return k
end
end
function PMGGuildInvite(name)
if not SGI_DATA.lock[name] then
SGI_DATA.lock[name] = "INVITED"
end
if SGI_DATA[DATA_INDEX].settings.dropdown["DROPDOWN_INVITE_MODE"] == 2 then
whisperWaiting[name] = 1
end
SGI_QUEUE[name] = nil
SendAddonMessage(ID_LOCK,name,"GUILD")
end
-- End PMG Stuff