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!

[QB][A + H] Legion Invasions

Isn't there a way to make it so the bot farms herbs/mines while the invasion is going on? Rather than flying around....

Also, it is a TON of XP if we can make a combat bot for invasions. You can go from 90-100 in a few hours if we can just tag all the elites and complete the invasions...
 
I see that you are russian? My profile has some checks that do stuff like this if (name == Legion Invasion: Northern Barrens) { // do the invasion }. That is why it will never receive true that an invasion is up, this might be a bad way for me to check for invasions would be better on some kind of id, but I have no idea how to do this with the world objectives. What you can do is find this code in the profile and replace every occurence of Legion Invasion: Some Invasion with the name that displays on your map. For example this line if name == 'Legion Invasion: Tanaris' then will become if name == 'yourinvasionname' then
Code:
<CustomBehavior File="RunCode" Type="Definition">
            <=!=[=C=D=A=T=A=[
                bool isInvasionTanaris()
                {
                    Lua.DoString("SetMapByID(13)");
                    var lua = $@"
                        local scenarioName
                        local numOfLandmarks = GetNumMapLandmarks()
                        for landmarkIndex = 1, numOfLandmarks, 1 do
                            local type, name, d, ti, x, y = GetMapLandmarkInfo(landmarkIndex)
                            if type == 8 then
                                if name == 'Legion Invasion: Tanaris' then
                                    scenarioName = name
                                end
                            end
                        end
                        return scenarioName, arr
                    ";
                    var name = Lua.GetReturnValues(lua);
                    string parsedName = Convert.ToString(name[0]);
                    return parsedName.Length > 4;
                }

                bool isInvasionBarrens()
                {
                    Lua.DoString("SetMapByID(13)");
                    var lua = $@"
                        local scenarioName
                        local numOfLandmarks = GetNumMapLandmarks()
                        for landmarkIndex = 1, numOfLandmarks, 1 do
                            local type, name, d, ti, x, y = GetMapLandmarkInfo(landmarkIndex)
                            if type == 8 then
                                if name == 'Legion Invasion: Northern Barrens' then
                                    scenarioName = name
                                end
                            end
                        end
                        return scenarioName, arr
                    ";
                    var name = Lua.GetReturnValues(lua);
                    string parsedName = Convert.ToString(name[0]);
                    return parsedName.Length > 4;
                }

                bool isInvasionAzshara()
                {
                    Lua.DoString("SetMapByID(13)");
                    var lua = $@"
                        local scenarioName
                        local numOfLandmarks = GetNumMapLandmarks()
                        for landmarkIndex = 1, numOfLandmarks, 1 do
                            local type, name, d, ti, x, y = GetMapLandmarkInfo(landmarkIndex)
                            if type == 8 then
                                if name == 'Legion Invasion: Azshara' then
                                    scenarioName = name
                                end
                            end
                        end
                        return scenarioName, arr
                    ";
                    var name = Lua.GetReturnValues(lua);
                    string parsedName = Convert.ToString(name[0]);
                    return parsedName.Length > 4;
                }

                bool isInvasionWestfall()
                {
                    Lua.DoString("SetMapByID(14)");
                    var lua = $@"
                        local scenarioName
                        local numOfLandmarks = GetNumMapLandmarks()
                        for landmarkIndex = 1, numOfLandmarks, 1 do
                            local type, name, d, ti, x, y = GetMapLandmarkInfo(landmarkIndex)
                            if type == 8 then
                                if name == 'Legion Invasion: Westfall' then
                                    scenarioName = name
                                end
                            end
                        end
                        return scenarioName, arr
                    ";
                    var name = Lua.GetReturnValues(lua);
                    string parsedName = Convert.ToString(name[0]);
                    return parsedName.Length > 4;
                }

                bool isInvasionDunMorogh()
                {
                    Lua.DoString("SetMapByID(14)");
                    var lua = $@"
                        local scenarioName
                        local numOfLandmarks = GetNumMapLandmarks()
                        for landmarkIndex = 1, numOfLandmarks, 1 do
                            local type, name, d, ti, x, y = GetMapLandmarkInfo(landmarkIndex)
                            if type == 8 then
                                if name == 'Legion Invasion: Dun Morogh' then
                                    scenarioName = name
                                end
                            end
                        end
                        return scenarioName, arr
                    ";
                    var name = Lua.GetReturnValues(lua);
                    string parsedName = Convert.ToString(name[0]);
                    return parsedName.Length > 4;
                }

                bool isInvasionHillsbradFoothills()
                {
                    Lua.DoString("SetMapByID(14)");
                    var lua = $@"
                        local scenarioName
                        local numOfLandmarks = GetNumMapLandmarks()
                        for landmarkIndex = 1, numOfLandmarks, 1 do
                            local type, name, d, ti, x, y = GetMapLandmarkInfo(landmarkIndex)
                            if type == 8 then
                                if name == 'Legion Invasion: Hillsbrad' then
                                    scenarioName = name
                                end
                            end
                        end
                        return scenarioName, arr
                    ";
                    var name = Lua.GetReturnValues(lua);
                    string parsedName = Convert.ToString(name[0]);
                    return parsedName.Length > 4;
                }



            ]=]=>
        </CustomBehavior>


Thanks, worked for me!!
But two invasions I can't get to because the two german words have an "ö" and "ä" between and the xml wont accept these special letters. So what's the code for these letters?

for example: Northern Barrens in german = Nördliches Brachland
 
just switch client to english and everything is fine...

btw my dk is really bad stuck when he uses the death Gate
would be nice if you could look into that^^

or how can i switch it of that he uses the gate and takes the ship like everyone else :D?
ok got it just deleted the DK part !
 
Last edited:
Back
Top