• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [PimpMyGuild] - The ultimate guild recruiter! Updated for 5.0.4!

    Discussion in 'Archives' started by Sidalol, Jun 3, 2012.

    Thread Status:
    Not open for further replies.
    1. gvaukjoe

      gvaukjoe New Member

      Joined:
      Oct 27, 2010
      Messages:
      418
      Likes Received:
      9
      Trophy Points:
      0
      Please, update the plugin as the latest version 6.1 is out
       
    2. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      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 :
      Code:
      ----------------------------
      
      -- This functioncauses the who window not to be displayed --
      
      Ok, between those 2 lines, after the line with '-------*' and before the line with '-- This functio*' paste in this :
      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
      
      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.
      Enjoy :)

      /AknA
       
      Last edited: Sep 16, 2012
    3. lolboll

      lolboll New Member

      Joined:
      Mar 26, 2011
      Messages:
      56
      Likes Received:
      0
      Trophy Points:
      0
      I Botted on my 2 accounts using this plugins after 1 week i got 150 members in my guild :)
       
    4. gvaukjoe

      gvaukjoe New Member

      Joined:
      Oct 27, 2010
      Messages:
      418
      Likes Received:
      9
      Trophy Points:
      0
      Can you please uploade your .cs file.
      thanks
       
    5. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      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 :)

      *Edit, I've updated my files to prevent a strange infinitive loop that occured for someone, it's on the next page.*
       
      Last edited: Sep 17, 2012
    6. wowochkin

      wowochkin New Member

      Joined:
      Jan 9, 2012
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      0
      Hello guys,
      my previous post was not answered, so i try again.
      The question is what part of the cofr must be rewritten for localization? For example^ my client is russian so we use р- instead of r- for racefilter and к- instead of c- for lvl filters. Thanks!
       
    7. xxxstar123

      xxxstar123 Member

      Joined:
      Aug 3, 2012
      Messages:
      393
      Likes Received:
      0
      Trophy Points:
      16
      i did all the changes it's even better now :) bot is not lagging like before thank you but u need to credit it to our friend Sidalol thank you both
       
    8. Oynky

      Oynky New Member

      Joined:
      Oct 13, 2011
      Messages:
      59
      Likes Received:
      0
      Trophy Points:
      0
      Thanks. The original version lagged my char alot, every waypoint +2 secs...
      Yours doesnt! Thanks alot
       
    9. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      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.
       
    10. xxxstar123

      xxxstar123 Member

      Joined:
      Aug 3, 2012
      Messages:
      393
      Likes Received:
      0
      Trophy Points:
      16
      And you are great thank you

       
    11. gvaukjoe

      gvaukjoe New Member

      Joined:
      Oct 27, 2010
      Messages:
      418
      Likes Received:
      9
      Trophy Points:
      0
      Bad news.... I do not know if this is due to the latest update of HB, but with the two files you uploaded, and HB updated, if I am starting the scan, it start to invite, and I am doing BG random in the same time, it goes inside the 1st BG, then HB stop. I start it manually and every x minutes, it stops...... ? So not working anymore



      EDITING :

      I can confirm that the latest HB + the 2 files on page 1, is working perfectly as it was.... something wrong with the 2 files uploaded..... sorry mate... but does not seems to works more thatn 4-5 min then hb stopped.
       
      Last edited: Sep 17, 2012
    12. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      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.
       
      Last edited: Sep 17, 2012
    13. gvaukjoe

      gvaukjoe New Member

      Joined:
      Oct 27, 2010
      Messages:
      418
      Likes Received:
      9
      Trophy Points:
      0

      No errors whatsoever, it just stop HB, nothing else... Shame as the latest SGI 6.1 is so much better.... But if I cannot run a BG in Random mode in the same time, this mean that I will invite people for 3-5 min max then stop inviting... and eventually be disconnected.....

      With the 2 initials files on Page 1, working spot on, and I got now over 464member since last wednesday, Guild now lvl 25 and each night, more than 30 users connected... so, good
       
    14. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      Hmm... strange, I'll go over the code again and see if there is any improvements I can do to it, sounds like you for some strange reason ends up in a loop. Going to add another Function the SGI addon then to see if it will solve it for you, I'll upload new files in a few mins, just have to beta test em myself first as well :)
       
    15. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      Ok, I've made some slight changes, if you don't have superscan running it won't do anything and shouldn't cause any lag what so ever.
      If superscan is running then it will scan the Invite:0 button, if that number goes above 0 then it makes a check with the addon to actually count the table there as well, if allso that count returns a value over 0 then it will get the name of the one who's first in the table, invite that person to the guild, check with addon if you should send a whisper and allso removes that person from the table, go back to step one :)
      I hope this solves your strange bug with a infinitive loop. Report back if it doesn't and I bang my head against the keyboard again and see if some new idea falls out through my ear.

      And here are the 2 new files.
      Extract PimpMyGuild.zip to the hb\Plugins directory
      Extract SuperGuildInvite.zip to your wow\Interface\AddOns directory

      Allso make sure you don't have a PimpMyGuild.cs in the HB\Plugins directory, it should be in HB\Plugins\PimpMyGuild directory.

      *Edit, removed the files and added the new ones to the post below*

      Enjoy
      /AknA
       
      Last edited: Sep 17, 2012
    16. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      Sorry for another post but at 3am I came up with a even better way to do it :)
      Now it should be 0% chance of getting stuck in a loop, plugin shouldn't cause any lag what so ever to HB client as it only check with addon, it doesn't contain any pauses in it anymore as it's not needed anymore. There is no changes to the addon this time but I still include both files and edit the post above :)
      It should run smooth for everyone now and shouldn't interfere with anything else (I hope).

      Extract PimpMyGuild.zip to the hb\Plugins directory
      Extract SuperGuildInvite.zip to your wow\Interface\AddOns directory

      Enjoy
      /AknA
       

      Attached Files:

    17. namook

      namook Member

      Joined:
      May 5, 2012
      Messages:
      414
      Likes Received:
      3
      Trophy Points:
      18
      Whispers 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 free:) which now gives me motivation to stalk the SGI addon author to implement a random whisper option:)
       
    18. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      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 :)
       
    19. namook

      namook Member

      Joined:
      May 5, 2012
      Messages:
      414
      Likes Received:
      3
      Trophy Points:
      18
      You don't spam that one person however you are spamming the channel, which can result in a 3 hour ban using the same message, if that one fool or fools reports you for spam, that's how they get around it (spamming the channel with the same message), change your whispers or rig it in a way to only send that whisper, then on your next invite it will send your next custom whisper, but I am already bothering the addon author about all that, I love picking on curse.com:), there is an in game policy which does state spamming a channel etc and yes I have seen people make many reports of their bans, for just sending the same guild invite message in that one channel, make it random they have nothing on you simple. I generally like to whisper people first, rather than after I invite them just to bare in mind.
       
      Last edited: Sep 18, 2012
    20. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      Yeah, I actually agree, even if you only whisper one person with the message, you still "spamm" the whisper channel (due to different ppl) with the same message....
      Thing is, to add several custom whispers shouldn't be THAT hard to fix.
      Should be able to actually make custom whispers as a table instead of just a string, then just random one of the whispers saved to the table to send.
      I'll look into it when I'm bored, most likely like 4am tonight when I'm tired like hell, I do the best coding then when my brain is all mushy :p
       
      Last edited: Sep 18, 2012
    Thread Status:
    Not open for further replies.

    Share This Page