Jump to content

About This File

Free C# fight class for Vanilla Aff / Demonology Warlock's.  Built towards working with my vanilla levelling profiles

 

The idea behind this was to make a FC's that will go 1-60 where you dont need to populate the action bars with spells after training.

This FC is about when you would expect from a levelling lock FC.

Works best with instant cast corruption + improved voidwalker torment.  Once you have the Voidwalker spell at lvl 10- you NEED a wand.

Upon targeting an NPC it will send the pet in.  The rotation will keep immolate / Curse of Agony / Coruption on the target.  If you have Siphon life it will swap out immolate for that spell.

Stack a bot with high stam / spirit and a wand- should be good to go.

Should use unending breath when swimming

Will attempt to keep a healthstone in your bags + use if in combat at 50% health.

Will also use all consumable scrolls!  Stamina, spirit and intellect will be cast on you, armour, strength and agility will get send to the pet.

If you have any suggestions / bugs / recommendations drop me a PM and i can look into it.


What's New in Version 1.5   See changelog

Released

1.1.0

Changed wanding behaviour and some lower level skills.

Pet will now attack before you do.  no longer waits for you to engage.

1.2.0

Removed some isspell usable and changed pet attack

1.2.1

Added underwater breathing

1.3

Added health stone support

Fixed some "wait While channelling" logic which should stop drain life / soul thrashing

Added scroll useage.  Will buff you / pet if you have a scroll in your inventory.

Added fear

1.4

Added sacrifice

Added shadowburn

Fixed healthstone Item ID's

1.5

Fixed healthstone ID's (again)

Added back in show trance proc

played around with wanding- changed situational wanding,

Fixed health funnel glitch


User Feedback

Recommended Comments



Buha

Posted

Hey!

If the toon gets attacked he doesnt use Drain Life and melee attacks instead of using Shoot.

eeny

Posted

On 10/9/2018 at 11:31 PM, Buha said:

Hey!

If the toon gets attacked he doesnt use Drain Life and melee attacks instead of using Shoot.

I wrote the range limit in for a reason. I can't remember what reason, I take it out and see if It comes back 

vegeta87

Posted

my toon is currently  lvl  8,    after   immolate and  corruption   the bot doesnt use my wand it  just stays  there  trying  to  right click

angelo

Posted

any1 else got the problem that the warlock doesnt use spells against elementals?

no matter wich kind of.. got problems with the elementals in Ashenvale and now also with the earth elementals in Badlands..

My Char just send pet to attack but didnt do anything.. in Badlands he uses only Siphron Life.. no other DOT.. 

Didnt test the Siphron Life spell in Ashenvale because i was to low level.

grettings

eeny

Posted

3 hours ago, angelo said:

any1 else got the problem that the warlock doesnt use spells against elementals?

no matter wich kind of.. got problems with the elementals in Ashenvale and now also with the earth elementals in Badlands..

My Char just send pet to attack but didnt do anything.. in Badlands he uses only Siphron Life.. no other DOT.. 

Didnt test the Siphron Life spell in Ashenvale because i was to low level.

grettings

Downloaded and tried the newest version currently up?

An older one would check if the target was DOT-able and not cast on those targets.

vasilicutza

Posted

On 10/12/2018 at 2:57 AM, vegeta87 said:

my toon is currently  lvl  8,    after   immolate and  corruption   the bot doesnt use my wand it  just stays  there  trying  to  right click

have the same problem, any ideas how to toggle wand on?

eeny

Posted

1 hour ago, vasilicutza said:

have the same problem, any ideas how to toggle wand on?

warlock_by_Eeny.cs
Try this one

vasilicutza

Posted

hi eeny,

 

since sometimes it pulls 2 mobs is there a way to fear the second one? if hte bot is fighting 1 mob, then the 2nd one comes, select the 2nd and fear it, go bag to first1 and kill, then handle second. please let me know if you can make this work, thanks a lot 

also is there a way to stop making it pull more than 1? i tried the "max units near target" but no results

vanbotter

Posted (edited)

Heya Eeny

Great profile, there is 1 thing i can see missing... can we have the voidwalker cast suffering please when there's 2 mobs within 10 yards of the player? or even if just when there's 2 mobs would be nice so he tanks them both ?

Ta

VB

 

Edit:

 

I added suffering into the multi mob combat section and defined it at the top, seems to work, although void walker is often very low on mana so can't really cast it.

 

        //if one or more mobs on us and we're fairly healthly, target & pet attack
        if (EnemiesAttackingMeCount() >= 1 && ObjectManager.Me.HealthPercent <= 60 && ObjectManager.Pet.IsAlive) {
            //Target closest enemy attacking us
            var closestEnemy = ObjectManager.GetWoWUnitHostile().Where(e => e.IsAttackable && e.IsTargetingMe).OrderBy(e => e.GetDistance2D).FirstOrDefault();
            if (closestEnemy != null) {
                Logging.Write("Targeting closest enemy, lets see what happens");
                Interact.InteractGameObject(closestEnemy.GetBaseAddress);
                System.Threading.Thread.Sleep(400);
                Lua.LuaDoString("PetAttack();");    
                Suffering.Launch();
                System.Threading.Thread.Sleep(700);
            }        
        }

Edited by vanbotter
vanbotter

Posted

Can i also suggest this change, adding fight.infight to the life-tap in the buff section. Otherwise he stands up and starts life tapping while drinking/eating ?

 

		// Lifetap
        if (LifeTap.KnownSpell && ObjectManager.Me.HealthPercent >= 60 && ObjectManager.Me.ManaPercentage < 40 && Fight.InFight)
        {
         
			LifeTap.Launch();
		
        }

 

vanbotter

Posted

Had a little play with the main combat call loop too. I noticed i was pulling aggro too much and ending up having to eat a lot (even though im specced 19 points in demonology). This costs a lot of money leveling.... this seems to work quite well.

Originally, after the pet attacking i made it sleep for 3s. Trouble is if something else attacks you, you do nothing for 3s... also sometimes your pet is more than 3s away. Its bloody slow that voidwalker! ...so that's commented out now.

I added in the target is <=99% life so actually we don't start fighting unless the target has been hit by your voidwalker. this makes it really hard to pull aggro off it. you're not gaining aggro while the voidy walks that 20+ yards after you've cast COA anymore.

I then added in another call to the combat rotation for if enemies attacking me is >0, meaning we pulled something so else somehow so we best fight straight away!

What is weird is, the condition fight.infight should already behave like this but it doesn't. I think whats happening is as soon as the voidwalker is engaged with petattack then the fight.infight is already returning a positive so the bot is launching the combatrotation.

Thank you so much for this FC though, much better than the Fight Class Creator thing i was messing around with before. Shame Drain Soul talent is bugged to only trigger if the killing blow is done by the drain soul damage, not other dots or pet. Means its pointless coding it in or using it.

 

if (!ObjectManager.Me.IsDeadMe)
                    {
                        PetManager();
                        Buff();
                        Healstone();
                        UseScroll();
                        if (ObjectManager.Pet.IsValid && ObjectManager.Me.Target > 0 && ObjectManager.Target.IsAttackable)
                        {
                            Lua.LuaDoString("PetAttack();");
                            //Thread.Sleep(Usefuls.Latency + 3000);
                        }
                        if (Fight.InFight && ObjectManager.Me.Target > 0 && ObjectManager.Target.HealthPercent <= 99) //Check mob is <100% life to ensure pet has got to and hitting mob
                        {
                            CombatRotation();
                        }
                        
                        //incase we pull by accident
                        if (EnemiesAttackingMeCount() > 0) //something attacking me already? lets do this!
                        {
                            CombatRotation();
                        }
                    }

 

 

 

Lastly, i added in another drain life call, basically, pet has aggro the whole fight now so if somehow we're a bit low on life then lets take some of the mobs down until shadowburn criteria is hit. By the time it gets to us, it'll be in shadowburn territory. 

 

        //if target isn't hitting us and its low on health, lets take some!
        if (DrainLife.KnownSpell && ObjectManager.Me.ManaPercentage > 40 && ObjectManager.Me.HealthPercent <= 80 && ObjectManager.Target.HealthPercent >= 15 && ObjectManager.Target.HealthPercent <= 30 && ObjectManager.Target.GetDistance < 24 && ObjectManager.Target.IsTargetingMe)
        {
            DrainLife.Launch();
            Thread.Sleep(Usefuls.Latency);
            Usefuls.WaitIsCasting();

         }

vanbotter

Posted

Added this to the buff section and defined at the top. consume shadows is to heal the pet, if on autocast it consumes a lot of pet mana. Pet casts it way way too often. If not on auto cast pet sometimes dies if theres a lot of mobs around. this will make it cast consume shadows out of combat if <30% life

 

        // Consume Shadows
        if (ConsumeShadows.KnownSpell && !ObjectManager.Pet.HaveBuff("Consume Shadows") && ObjectManager.Pet.HealthPercent <=30 && ObjectManager.Pet.IsValid && ObjectManager.Me.IsAlive )
        {
            ConsumeShadows.Launch();
        }

intended91

Posted

[F] 18:29:58 - [FightClass] Loading Fight class: C:\Users\inten\OneDrive\Skrivebord\WRobot\WRobot\FightClass\warlock_by_EenyV2.cs [E] 18:30:00 - Compilator Error : c:\Users\inten\AppData\Local\Temp\5enxqawg\5enxqawg.0.cs(674,76) : error CS0117: 'wManager.Wow.Helpers.SpellManager' indeholder ikke en definition af 'GetSpellSlotId'

pengchuan225

Posted

On 10/12/2018 at 7:57 AM, vegeta87 said:

my toon is currently  lvl  8,    after   immolate and  corruption   the bot doesnt use my wand it  just stays  there  trying  to  right click

The same problem has not been solved yet

bot cannot Shoot with wand


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...