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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Plugin] AutoDungeonQueue - queues you for dungeons but nothing else

exemplar

New Member
Joined
Mar 16, 2010
Messages
167
CATACLYSM READY

Requested by toxic-xi here

It will just queue whatever settings you have already set (dungeons, roles etc). And it will accept the proposal. It is a plugin, so install it as one.

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Styx.Plugins.PluginClass;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using System.Threading;
using Styx.Helpers;

namespace Styx.Bot.Plugins
{
    class AutoDungeonQueue : HBPlugin
    {
        public override string Author { get { return "exemplar"; } }
        public override string ButtonText { get { return null; } }
        public override string Name { get { return "AutoDungeonQueue"; } }
        public override Version Version { get { return new Version(0, 1); } }
        public override bool WantButton { get { return false; } }

        public override void Pulse()
        {
            LocalPlayer me = ObjectManager.Me;
            if (!me.IsInInstance && !IsLFGDeserter())
            {
                if (!InLFDQueue())
                {
                    JoinLFDQueue();
                    Thread.Sleep(3 * 1000);
                }
                else if (IsLFGProposal() && !HasRespondedToLFGProposal())
                {
                    AcceptLFGProposal();
                    Thread.Sleep(3 * 1000);
                }
            }
        }

        private bool InLFDQueue()
        {
            return GetLFDMode() == "queued" || IsLFGProposal();
        }

        private string GetLFDMode()
        {
            string s = Lua.GetReturnVal<string>("local m,s = GetLFGMode(); return m;", 0);
            return s == null ? "none" : s;
        }

        private void JoinLFDQueue()
        {
            Logging.Write("[AutoDungeonQueue] Queuing up");
            Lua.DoString("LFDQueueFrame_Join()");
        }

        private bool IsLFGProposal()
        {
            return GetLFDMode() == "proposal";
        }

        private bool HasRespondedToLFGProposal()
        {
            return Lua.GetReturnVal<int>("local a,b,c,d,e,f,g,h,i,j,k = GetLFGProposal(); return g;", 0) == 1;
        }

        private void AcceptLFGProposal()
        {
            Logging.Write("[AutoDungeonQueue] Accepting Proposal");
            Lua.DoString("AcceptProposal()");
        }

        private bool IsLFGDeserter()
        {
            return Lua.GetReturnVal<bool>("return UnitHasLFGDeserter('player')", 0);
        }

    }
}
 
Last edited:
so, would this, paired with the combat/heal bot work similarly to Instancebuddy, but I could run maybe a tank and just handle the movement? Sounds fun!
 
so, would this, paired with the combat/heal bot work similarly to Instancebuddy, but I could run maybe a tank and just handle the movement? Sounds fun!

wait.. so you're gonna sit at your computer waiting for it to que, then just run around the instance following everyone having the bot attack random things?

@OP I haven't tried this yet but does it follow the group(not /follow but like the heal bot CCs or RAF combat assist kind of follow)? and if so I think to make it look less bottish you should include a jumping script on a random timer so it jumps around a lot and make it so you could program it to say annoying things like "thanks for the free xp guys!", "don't die!" "healers OOM, JKJKJKJKJK" "LoL" and other things like that in random order and have it so you could choose how many times per instance run to say each one etc.
 
The parameters of the request were that it should only queue the instance and join when it pops. I understand that the intention was that the user would run a grindbot outside of instances, and manually control it inside, so no additional logic will be added.
 
wait.. so you're gonna sit at your computer waiting for it to que, then just run around the instance following everyone having the bot attack random things?

@OP I haven't tried this yet but does it follow the group(not /follow but like the heal bot CCs or RAF combat assist kind of follow)? and if so I think to make it look less bottish you should include a jumping script on a random timer so it jumps around a lot and make it so you could program it to say annoying things like "thanks for the free xp guys!", "don't die!" "healers OOM, JKJKJKJKJK" "LoL" and other things like that in random order and have it so you could choose how many times per instance run to say each one etc.

I was just thinking that it may make it easier for me to multibox, by having the bot handle the que and combat, and all i have to do is move toward mobs. One step closer to getting 5 bots to farm heroics for me :)
 
Back
Top