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

HawkEye2 - A Hunter CustomClass

Status
Not open for further replies.
Heres some suggested code changes:

BeastMaster.cs
Code:
This:
if (Me.Pet.HealthPercent < Hunter._settings.PetMendAt && !Me.Pet.Buffs.ContainsKey("Mend Pet") && SpellManager.KnownSpells.ContainsKey("Mend Pet") && !SpellManager.KnownSpells["Mend Pet"].Cooldown)

To:
if (Me.Pet.HealthPercent < Hunter._settings.PetMendAt && !Me.Pet.Buffs.ContainsKey("Mend Pet") && SpellManager.KnownSpells.ContainsKey("Mend Pet") && !SpellManager.KnownSpells["Mend Pet"].Cooldown && Me.GotAlivePet)
Reason: Attempts to cast Mend Pet if pet is dead.

Hunter.cs
Code:
This:            
slog("Need Drink");
Styx.Logic.Common.Rest.Feed();

To:
                slog("Need Drink");
                if (SpellManager.KnownSpells.ContainsKey("Aspect of the Viper") && SpellManager.CanCastSpell("Aspect of the Viper") && !Me.Buffs.ContainsKey("Aspect of the Viper"))
                {
                    slog("Casting Aspect of Viper to speed up process");
                    SpellManager.CastSpell("Aspect of the Viper");
                }
            

                Styx.Logic.Common.Rest.Feed();
Reason: Speeds up drinking process, leading to faster killing (especially if you don't have any drink in your bag, so your not relying completely on mp5)


Also, for food ID's... heres the list thats inside the eRefreshment plugin. Its not split into meats or anything like that... but its a start.
Code:
public string detectFood()
        {
            List<string> foods = new List<string>();
            string food;
            if (ObjectManager.Me.Level >= 80)
            {
                foods.Add("43523");
                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }

            if (ObjectManager.Me.Level >= 75)
            {
                foods.Add("35947");
                foods.Add("35948");
                foods.Add("35950");
                foods.Add("35951");
                foods.Add("35952");
                foods.Add("35953");
                foods.Add("38706");
                foods.Add("40202");
                foods.Add("41729");
                foods.Add("42429");
                foods.Add("42431");
                foods.Add("42434");
                foods.Add("42778");
                foods.Add("42779");
                foods.Add("43087");
                foods.Add("44049");
                foods.Add("44071");
                foods.Add("44072");
                foods.Add("44607");
                foods.Add("44722");
                foods.Add("44940");
                foods.Add("45932");


                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }

            if (ObjectManager.Me.Level >= 74)
            {
                foods.Add("43518");
                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }

            if (ObjectManager.Me.Level >= 70)
            {
                foods.Add("34125");
                foods.Add("34747");
                foods.Add("34748");
                foods.Add("34749");
                foods.Add("34750");
                foods.Add("34751");
                foods.Add("34752");
                foods.Add("34753");
                foods.Add("34754");
                foods.Add("34755");
                foods.Add("34756");
                foods.Add("34757");
                foods.Add("34758");
                foods.Add("34759");
                foods.Add("34760");
                foods.Add("34761");
                foods.Add("34762");
                foods.Add("34763");
                foods.Add("34764");
                foods.Add("34765");
                foods.Add("34766");
                foods.Add("34767");
                foods.Add("34768");
                foods.Add("34769");
                foods.Add("39691");
                foods.Add("42428");
                foods.Add("42430");
                foods.Add("42432");
                foods.Add("42433");
                foods.Add("42942");
                foods.Add("42993");
                foods.Add("42994");
                foods.Add("42995");
                foods.Add("42996");
                foods.Add("42997");
                foods.Add("42998");
                foods.Add("42999");
                foods.Add("43000");
                foods.Add("43001");
                foods.Add("43004");
                foods.Add("43005");
                foods.Add("43015");
                foods.Add("43268");
                foods.Add("43478");
                foods.Add("43480");
                foods.Add("44953");


                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }
            if (ObjectManager.Me.Level >= 65)
            {
                foods.Add("22019");
                foods.Add("29394");
                foods.Add("29448");
                foods.Add("29449");
                foods.Add("29450");
                foods.Add("29451");
                foods.Add("29452");
                foods.Add("29453");
                foods.Add("30355");
                foods.Add("30357");
                foods.Add("30358");
                foods.Add("30359");
                foods.Add("30361");
                foods.Add("32685");
                foods.Add("32686");
                foods.Add("32722");
                foods.Add("33048");
                foods.Add("33052");
                foods.Add("33053");
                foods.Add("33443");
                foods.Add("33449");
                foods.Add("33451");
                foods.Add("33452");
                foods.Add("33454");
                foods.Add("33825");
                foods.Add("33872");
                foods.Add("34062");
                foods.Add("34780");
                foods.Add("35949");
                foods.Add("37252");
                foods.Add("37452");
                foods.Add("38428");
                foods.Add("40356");
                foods.Add("40358");
                foods.Add("40359");
                foods.Add("44608");
                foods.Add("44609");
                foods.Add("44749");


                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }

            if (ObjectManager.Me.Level >= 55)
            {
                foods.Add("20031");
                foods.Add("21023");
                foods.Add("22895");
                foods.Add("24008");
                foods.Add("24009");
                foods.Add("24338");
                foods.Add("24539");
                foods.Add("27651");
                foods.Add("27655");
                foods.Add("27656");
                foods.Add("27657");
                foods.Add("27658");
                foods.Add("27659");
                foods.Add("27660");
                foods.Add("27661");
                foods.Add("27662");
                foods.Add("27663");
                foods.Add("27664");
                foods.Add("27665");
                foods.Add("27666");
                foods.Add("27667");
                foods.Add("27854");
                foods.Add("27855");
                foods.Add("27856");
                foods.Add("27857");
                foods.Add("27858");
                foods.Add("27859");
                foods.Add("28486");
                foods.Add("28501");
                foods.Add("29292");
                foods.Add("29393");
                foods.Add("29412");
                foods.Add("30155");
                foods.Add("30458");
                foods.Add("30610");
                foods.Add("31672");
                foods.Add("31673");
                foods.Add("32721");
                foods.Add("33866");
                foods.Add("33867");
                foods.Add("33874");
                foods.Add("38427");
                foods.Add("41751");


                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }
            if (ObjectManager.Me.Level >= 51)
            {
                foods.Add("19301");

                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }
            if (ObjectManager.Me.Level >= 45)
            {
                foods.Add("12216");
                foods.Add("12218");
                foods.Add("16971");
                foods.Add("18045");
                foods.Add("21215");
                foods.Add("8076");
                foods.Add("8932");
                foods.Add("8948");
                foods.Add("8950");
                foods.Add("8952");
                foods.Add("8953");
                foods.Add("8957");
                foods.Add("11415");
                foods.Add("11444");
                foods.Add("13724");
                foods.Add("13810");
                foods.Add("13893");
                foods.Add("13933");
                foods.Add("13934");
                foods.Add("13935");
                foods.Add("16171");
                foods.Add("18254");
                foods.Add("18255");
                foods.Add("19225");
                foods.Add("20452");
                foods.Add("21031");
                foods.Add("21033");
                foods.Add("22324");
                foods.Add("23160");
                foods.Add("35563");
                foods.Add("35565");


                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }
            if (ObjectManager.Me.Level >= 35)
            {
                foods.Add("21217");
                foods.Add("3927");
                foods.Add("4599");
                foods.Add("4601");
                foods.Add("4602");
                foods.Add("4608");
                foods.Add("6887");
                foods.Add("8075");
                foods.Add("9681");
                foods.Add("12215");
                foods.Add("12217");
                foods.Add("13755");
                foods.Add("13927");
                foods.Add("13928");
                foods.Add("13929");
                foods.Add("13930");
                foods.Add("13931");
                foods.Add("13932");
                foods.Add("16168");
                foods.Add("16766");
                foods.Add("17222");
                foods.Add("17408");
                foods.Add("18635");
                foods.Add("19306");
                foods.Add("21030");
                foods.Add("21552");
                foods.Add("33004");


                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }
            if (ObjectManager.Me.Level >= 25)
            {
                foods.Add("3728");
                foods.Add("20074");
                foods.Add("1487");
                foods.Add("1707");
                foods.Add("3729");
                foods.Add("3771");
                foods.Add("4457");
                foods.Add("4539");
                foods.Add("4544");
                foods.Add("4594");
                foods.Add("4607");
                foods.Add("6038");
                foods.Add("8364");
                foods.Add("12210");
                foods.Add("12212");
                foods.Add("12213");
                foods.Add("12214");
                foods.Add("13546");
                foods.Add("13851");
                foods.Add("16169");
                foods.Add("17407");
                foods.Add("18632");
                foods.Add("19224");


                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }
            if (ObjectManager.Me.Level >= 15)
            {
                foods.Add("1082");
                foods.Add("2685");
                foods.Add("5478");
                foods.Add("5526");
                foods.Add("21072");
                foods.Add("5479");
                foods.Add("422");
                foods.Add("1017");
                foods.Add("1114");
                foods.Add("3663");
                foods.Add("3664");
                foods.Add("3665");
                foods.Add("3666");
                foods.Add("3726");
                foods.Add("3727");
                foods.Add("3770");
                foods.Add("4538");
                foods.Add("4542");
                foods.Add("4593");
                foods.Add("4606");
                foods.Add("5480");
                foods.Add("5527");
                foods.Add("7228");
                foods.Add("12209");
                foods.Add("16170");
                foods.Add("19305");


                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }
            if (ObjectManager.Me.Level >= 5)
            {
                foods.Add("1401");
                foods.Add("414");
                foods.Add("724");
                foods.Add("733");
                foods.Add("1113");
                foods.Add("2287");
                foods.Add("2682");
                foods.Add("2683");
                foods.Add("2684");
                foods.Add("2687");
                foods.Add("3220");
                foods.Add("3662");
                foods.Add("4537");
                foods.Add("4541");
                foods.Add("4592");
                foods.Add("4605");
                foods.Add("5066");
                foods.Add("5095");
                foods.Add("5476");
                foods.Add("5477");
                foods.Add("5525");
                foods.Add("6316");
                foods.Add("6890");
                foods.Add("16167");
                foods.Add("17119");
                foods.Add("17406");
                foods.Add("18633");
                foods.Add("19304");
                foods.Add("22645");
                foods.Add("24072");
                foods.Add("27636");


                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }

            if (ObjectManager.Me.Level >= 0)
            {
                foods.Add("961");
                foods.Add("1326");
                foods.Add("3448");
                foods.Add("6522");
                foods.Add("6657");
                foods.Add("6807");
                foods.Add("11584");
                foods.Add("19696");
                foods.Add("19994");
                foods.Add("19995");
                foods.Add("19996");
                foods.Add("20516");
                foods.Add("21235");
                foods.Add("21254");
                foods.Add("24105");
                foods.Add("27635");
                foods.Add("28112");
                foods.Add("33924");
                foods.Add("43488");
                foods.Add("43490");
                foods.Add("43491");
                foods.Add("43492");
                foods.Add("44114");
                foods.Add("44228");
                foods.Add("44791");
                foods.Add("46691");
                foods.Add("46887");
                foods.Add("117");
                foods.Add("787");
                foods.Add("2070");
                foods.Add("2679");
                foods.Add("2680");
                foods.Add("2681");
                foods.Add("2888");
                foods.Add("4536");
                foods.Add("4540");
                foods.Add("4604");
                foods.Add("4656");
                foods.Add("5057");
                foods.Add("5349");
                foods.Add("5472");
                foods.Add("5473");
                foods.Add("5474");
                foods.Add("6290");
                foods.Add("6299");
                foods.Add("6888");
                foods.Add("7097");
                foods.Add("7806");
                foods.Add("7807");
                foods.Add("7808");
                foods.Add("11109");
                foods.Add("12224");
                foods.Add("16166");
                foods.Add("17197");
                foods.Add("17198");
                foods.Add("17344");
                foods.Add("19223");
                foods.Add("20857");
                foods.Add("23495");
                foods.Add("23756");
                foods.Add("30816");
                foods.Add("44836");
                foods.Add("44837");
                foods.Add("44838");
                foods.Add("44839");
                foods.Add("44840");
                foods.Add("44854");
                foods.Add("44855");
                foods.Add("46690");
                foods.Add("46784");
                foods.Add("46793");
                foods.Add("46796");
                foods.Add("46797");

                if ((food = findFood(foods)) != "")
                {
                    return food;
                }
                foods.Clear();
            }
            return "";
        }
thanks for all your hard work, i appreciate it, i cant use the last part, because it does need to be sorted into lists, or it would be trying to feed meat to something that only eats fish .
 
problem

Using the new hb 1.9.5 Not sure if its caused by the new version or not as i have not used hawkeye on the last version
snippet
Code:
[5:51:22 PM:84] Spell_C::CastSpell(1978, 0, 0x0, 0)
[5:51:22 PM:127] Changed POI to: Type: None, Loc: <0, 0, 0>
[5:51:22 PM:478] Can't cast Serpent Sting
[5:51:22 PM:739]  Object reference not set to an instance of an object. - From: -qk7i3du   at HawkEye2.Hunter.BMCombat() in c:\Users\haiden\Desktop\tool\CustomClasses\HawkEye2\BeastMaster.cs:line 88
   at HawkEye2.Hunter.Combat() in c:\Users\haiden\Desktop\tool\CustomClasses\HawkEye2\Hunter.cs:line 418
   at Levelbot.Actions.Combat.ActionCombat.Run(Object context)

Does not seem to cast Serpent sting as the log says, and also seems to go afk every known again, but i guess thats the bot full log attached.

Edit: It seems to cast serpent sting even though the log says it can not. Although the Bot going afk seems to be your cc...not sure how, But i rolled to last version of bot, and it runs fine, Tested my lock with ski's warlock profile and tested the hunter with the default hunter profile neither ever go afk. Tried testing it with fpsware's but the bot produces few erros trying to load his.
 

Attachments

Last edited:
Using the new hb 1.9.5 Not sure if its caused by the new version or not as i have not used hawkeye on the last version
snippet
Code:
[5:51:22 PM:84] Spell_C::CastSpell(1978, 0, 0x0, 0)
[5:51:22 PM:127] Changed POI to: Type: None, Loc: <0, 0, 0>
[5:51:22 PM:478] Can't cast Serpent Sting
[5:51:22 PM:739]  Object reference not set to an instance of an object. - From: -qk7i3du   at HawkEye2.Hunter.BMCombat() in c:\Users\haiden\Desktop\tool\CustomClasses\HawkEye2\BeastMaster.cs:line 88
   at HawkEye2.Hunter.Combat() in c:\Users\haiden\Desktop\tool\CustomClasses\HawkEye2\Hunter.cs:line 418
   at Levelbot.Actions.Combat.ActionCombat.Run(Object context)

Does not seem to cast Serpent sting as the log says, and also seems to go afk every known again, but i guess thats the bot full log attached.

Edit: It seems to cast serpent sting even though the log says it can not. Although the Bot going afk seems to be your cc...not sure how, But i rolled to last version of bot, and it runs fine, Tested my lock with ski's warlock profile and tested the hunter with the default hunter profile neither ever go afk. Tried testing it with fpsware's but the bot produces few erros trying to load his.

If you have Visual Studio (a compiler) installed, you can open up the source code, and attach the debugger to find out exactly what object reference is causing the error =P
 
Using the new hb 1.9.5 Not sure if its caused by the new version or not as i have not used hawkeye on the last version
snippet
Code:
[5:51:22 PM:84] Spell_C::CastSpell(1978, 0, 0x0, 0)
[5:51:22 PM:127] Changed POI to: Type: None, Loc: <0, 0, 0>
[5:51:22 PM:478] Can't cast Serpent Sting
[5:51:22 PM:739]  Object reference not set to an instance of an object. - From: -qk7i3du   at HawkEye2.Hunter.BMCombat() in c:\Users\haiden\Desktop\tool\CustomClasses\HawkEye2\BeastMaster.cs:line 88
   at HawkEye2.Hunter.Combat() in c:\Users\haiden\Desktop\tool\CustomClasses\HawkEye2\Hunter.cs:line 418
   at Levelbot.Actions.Combat.ActionCombat.Run(Object context)

Does not seem to cast Serpent sting as the log says, and also seems to go afk every known again, but i guess thats the bot full log attached.

Edit: It seems to cast serpent sting even though the log says it can not. Although the Bot going afk seems to be your cc...not sure how, But i rolled to last version of bot, and it runs fine, Tested my lock with ski's warlock profile and tested the hunter with the default hunter profile neither ever go afk. Tried testing it with fpsware's but the bot produces few erros trying to load his.
the CC is currently working fine for me with the latest version, no going afk, so try clearing your wow caches, and make sure your keybindings are default,
 
It doesn't seem to be using Aspect of the Dragonhawk, instead it uses Aspect of the Hawk. I am a BM hunter using version .04. Can you add it in sometime in the future? ty other than that this CC is working great.
 
It doesn't seem to be using Aspect of the Dragonhawk, instead it uses Aspect of the Hawk. I am a BM hunter using version .04. Can you add it in sometime in the future? ty other than that this CC is working great.
what level is the skill acquired? im level 60, and 64 on my tests now,
 
Could this get me from 1-60 without having to correct it in anyway?
 
New Version 0.6, Get it while its awesome.

It is awesome, for all but one thing - if I set pull distance to value larger than 30 he does not move into range by himself just stands there and does nothing.
 
I believe this code should fix your problem (if i understood it correctly). Its taken (and edited for relevant code only) my my huge project =)

Just send it (target.GetPosition(), [Max distance for spells], false) and it should approach the mob.
Code:
static public void GetInRange(WoWPoint point, float distance, bool returnImmediatly)
        {
if (ObjectManager.Me.IsMoving)
                return;
            if (point.Distance(ObjectManager.Me.GetPosition()) > distance)
            WoWMovement.ClickToMove(point, distance);
            while (!returnImmediatly && ObjectManager.Me.IsMoving)
            {
                Thread.Sleep(100);
            }
        }
 
I've been looking through all the files and I am having trouble finding one so that I can make it say instead of 1-10 don't check for tame pets to call pet. to 1-81 just because I am farming atm and my pet is killing everything in one shot meaning i dont get anything.
 
I've been looking through all the files and I am having trouble finding one so that I can make it say instead of 1-10 don't check for tame pets to call pet. to 1-81 just because I am farming atm and my pet is killing everything in one shot meaning i dont get anything.
youll want to change the rest sections, but the Combat is built around your pet. so chances are it will only try and melee.
 
youll want to change the rest sections, but the Combat is built around your pet. so chances are it will only try and melee.

I see thanks, for now I am just going to tame a turtle and keep it at 75 and not put any points in the tree just so it does minimal damage.
 
Amazing work also would like to increase the range > 30 just unsure where to enter the code!
 
I'm having a truely bizarre problem. Just installed this CC and all is well apart from the pet food. I've entered the name of the meat my pet eats and HB is spamming :

Feeding Pet Explosive Rocket
Pet Not Happy, Needs to be Feed

a) I don't have any explosive rockets in my bag
b) Even if i did, i don't think my pet would eat them

I've tried ticking the box to auto detect the meat but it still want to feed my cat rockets ! lol.
 
Status
Not open for further replies.
Back
Top