• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • FlagReturn - Return TP and WSG Flags

    Discussion in 'Archives' started by mastahg, Aug 21, 2011.

    1. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83

      Attached Files:

      Last edited: Mar 30, 2023
      75david72 likes this.
    2. myslex

      myslex Member

      Joined:
      Apr 1, 2010
      Messages:
      36
      Likes Received:
      0
      Trophy Points:
      6
      Thanks for this, looks really promising, however im getting this complie error upon HB Launch:

      Compiler errors:
      File: FlagCapture.cs Line: 28 Error: 'mastahg.FlagReturner' does not implement inherited abstract member 'Styx.Plugins.PluginClass.HBPlugin.Pulse()'

      fyi :)
       
    3. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83
      Fixed, had uploaded the wrong version.
       
    4. myslex

      myslex Member

      Joined:
      Apr 1, 2010
      Messages:
      36
      Likes Received:
      0
      Trophy Points:
      6
      Thanks!

      Will def try this one out. +rep
       
      Last edited: Aug 21, 2011
    5. doorcat

      doorcat New Member

      Joined:
      Aug 12, 2011
      Messages:
      19
      Likes Received:
      0
      Trophy Points:
      1
      omg. so many thanks <3
      used to use this other hack to return flags.
      the main feature of the hack got patched so there where no new updates.
      this is such a game winner for rateds.
      I will be so happy when WSG or TP pops up in rateds.
      again so much thanks.

      question.
      is it possible to pick up a dropped flag from your team.
      eg. your healing your tank. then your tank gets globaled by a ret rogue rofl. would be nice to pick up the dropped flag. be like rofl jks ninja'd :p
       
    6. mastaflex

      mastaflex New Member

      Joined:
      Aug 14, 2011
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      0
      Yes please add this feature :) thank you
       
    7. doorcat

      doorcat New Member

      Joined:
      Aug 12, 2011
      Messages:
      19
      Likes Received:
      0
      Trophy Points:
      1
      forgot to ask. how do i turn only this plugin on. i dont want the bot to do anything. i want 100% control of character just this plugin on.
      thanks
       
    8. Litesung

      Litesung Member

      Joined:
      May 21, 2011
      Messages:
      90
      Likes Received:
      0
      Trophy Points:
      6
      I suggest using Combat Bot with only that plugin enabled then, while manually queuing yourself into BGs.
       
    9. doorcat

      doorcat New Member

      Joined:
      Aug 12, 2011
      Messages:
      19
      Likes Received:
      0
      Trophy Points:
      1
      will that attack and stuff? or will i have full control with that
       
    10. amputations

      amputations Active Member

      Joined:
      Jan 6, 2011
      Messages:
      2,262
      Likes Received:
      11
      Trophy Points:
      38
      Well it depends if you choose a CC (custom class) for your character or not.
       
    11. mastaflex

      mastaflex New Member

      Joined:
      Aug 14, 2011
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      0
      Do you have to press start to get this to work or just have the plugin enabled?
       
    12. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83
      Bot has to be running.
       
    13. hansiwursti

      hansiwursti New Member

      Joined:
      Aug 9, 2011
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      Hello mastahg,
      i tried to "translate" your plugin to german but it doesnt work. the bot wont click the flag, when its dropped. iam no coder, so i really dont have a clue why its not working.
      could you have a look at the translated version and tell me please why it is not working?
      Thanks in advance!

      View attachment FlagCapture.cs
       
    14. laria

      laria Well-Known Member

      Joined:
      Jan 15, 2010
      Messages:
      5,386
      Likes Received:
      36
      Trophy Points:
      48
      why does it have to be "translated" anyway? cant we just loop through the objects within a certain distance and if we have a match to our flag-id, interact with it`?
       
    15. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83
      The way it works is by filtering BG chat channels for when a flag has been dropped, when that is detected it then scans for nearby flags.

      Edit:
      The reason I do it this way, was that i found using a timer or pulse was not reacting fast enough to give good enough results.
       
      Last edited: Sep 15, 2011
    16. punisher775

      punisher775 New Member

      Joined:
      Dec 10, 2010
      Messages:
      414
      Likes Received:
      3
      Trophy Points:
      0
      How fast is this? Can it click faster than a human?
       
    17. Stormchasing

      Stormchasing Community Developer

      Joined:
      Jan 15, 2011
      Messages:
      4,029
      Likes Received:
      48
      Trophy Points:
      48
      edit your cs file to log the variables
      PHP:
                  String[] Parts TheReg.Split(Message);
                  
      String Player Parts[1];
                  
      String Faction Parts[2];
                  
      String Action Parts[3];
      maybe it's splitting wrong (array isn't filled correct), if this happens then the conditions aren't working

      maybe add something like that
      PHP:
                          Log(String.Format("Player: {0}, Faction:{1},Action:{2}",Player,Faction,Action));
                          for (var 
      0Parts.lengthx++)
                          {

                              
      Log(String.Format("[FlagReturner] {0} {1} {2}"DateTime.NowxParts[x]));
                          }
      after this line
      PHP:
                          Log("Flagge nicht gefunden");
      Report back what is written there, maybe we can find a solution for german...
      if not working with translating, maybe we can add a event handler for "CHAT_MSG_BG_SYSTEM_ALLIANCE" and "CHAT_MSG_BG_SYSTEM_HORDE" this should be as fast as searching for string in Combatlog

      The events are fired this way:

      ""CHAT_MSG_BG_SYSTEM_ALLIANCE"
      Fired for alliance specific events in the battleground such as assaulting a graveyard.
      arg1
      Battleground Message (eg. "The Alliance has taken the Blacksmith!") "
       
    18. quel

      quel Member

      Joined:
      Oct 19, 2010
      Messages:
      844
      Likes Received:
      7
      Trophy Points:
      18
      Works fucking wonders :D... nice one m8. +rep
       
    19. chameleon

      chameleon New Member

      Joined:
      Oct 30, 2010
      Messages:
      98
      Likes Received:
      0
      Trophy Points:
      0
      So is there a way to run this thru HB in the background but still maintain control of your character? I.e What ever happened to the "Do Nothing" bot?
       
    20. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83
      The only lines that need editing for other languages are

      Code:
      static String Reg = "The (Horde|Alliance) Flag was (picked up|dropped) by (.+)!";
      
      and

      Code:
                  if (Faction == MyFaction && Action == "dropped" && Me.IsAlive)
      
      and maybe
      Code:
      FactionFlag = MyFaction + " Flag";
      
      Currently this does scan the battleground chat to work, it does this by adding its even handler via

      Code:
                  WoWChat.AllianceBattleground += WoWChat_Battleground;
                  WoWChat.HordeBattleground += WoWChat_Battleground;
                  WoWChat.NeutralBattleground  += WoWChat_Battleground;
      
      I'll make a custom class for use with lazyraider that has all combat functions removed from it for people who want to control the bot and just have the flag be grabbed.
       

    Share This Page