+ Reply to Thread
Results 1 to 14 of 14

Thread: [Warlock CC] Won't range cast

  1. #1
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Default [Warlock CC] Won't range cast

    Ok, here is my code, it isn't anything special because it doesn't seem the bot reads the code correctly, or the guides are incorrectly formatted...

    If your bot works with a channeled spell, please correct my code.

    Struct.Spell DrainLife = new Struct.Spell("Drain Life", 30, 0.0f, 5.0f);

    Code:
    using System;
    using System.Threading;
    using System.Collections.Generic;
    
    public class CustomClass : API.ICustomClass
    {
        // Initialize Spell
        #region Initialize_CustomClass
    
        // Range
        float RangeTemps = 0;
        public float Range { get { return RangeTemps; } }
    
        // Startup CustomClass
        public void Initialize()
        {
            // Initialise Buff Id:
    
            while (API.Bot.IsLaunchedBot)
            {
                Fight();
                Buff();
    
                if (API.Info.PlayerInfo.IsFight)
                {
                    Thread.Sleep(10);
                }
                else
                {
                    Thread.Sleep(200);
                }
            }
        }
    
        #endregion
    
    
        // Initialize Spell
        #region Initialize_Spell
    
        // Buffs
        Struct.Spell UnendingBreath = new Struct.Spell("Unending Breath");
        Struct.Spell DetectInvisibility = new Struct.Spell("Detect Invisibility");
        Struct.Spell ShadowWard = new Struct.Spell("Shadow Ward");
    	Struct.Spell SummonFelguard = new Struct.Spell("Summon Felguard", 0, 1.0f, 5.0f);
    	Struct.Spell DemonicKnowledge = new Struct.Spell("Demonic Knowledge");
    	Struct.Spell ShadowTrance = new Struct.Spell("Shadow Trance");
    	Struct.Spell DemonicEmpowerment = new Struct.Spell("Demonic Empowerment", 0, 60.0f, 0.0f);
    	Struct.Spell ShadowBolt = new Struct.Spell("Shadow Bolt", 30, 0.0f, 0.0f);
    	Struct.Spell HealthFunnel = new Struct.Spell("Health Funnel", 0, 0.0f, 5.0f);
    
        //Spells
        Struct.Spell Shoot = new Struct.Spell("Shoot", 30);
        Struct.Spell DrainLife = new Struct.Spell("Drain Life", 30, 0.0f, 5.0f);
        Struct.Spell CurseofAgony = new Struct.Spell("Curse of Agony", 30, 28.0f);
        Struct.Spell Corruption = new Struct.Spell("Corruption", 30, 28.0f);
        Struct.Spell LifeTap = new Struct.Spell("LifeTap", 0);
    
        #endregion
    
    
        // Management Spells & Buffs
        #region Management
    
        // Management Spells
        #region Spells_Management
    
        public void Fight()
        {
            if (API.Bot.IsLaunchedBot && API.Info.PlayerInfo.IsFight && !API.Info.PlayerInfo.IsDied)
            {
                if (HealthFunnel.isReady() && API.Info.PetInfo.HealthPercent < 50)
                {
                    HealthFunnel.Launch();
                }
                if (ShadowTrance.HaveBuff())
                {
                    ShadowBolt.Launch();
                }
                if (CurseofAgony.isReady() && API.Info.TargetInfo.Get_Distance < CurseofAgony.Range && API.Info.PlayerInfo.ManaPercent > 5)
                {
                    CurseofAgony.Launch();
                }
                if (Corruption.isReady() && API.Info.TargetInfo.Get_Distance < Corruption.Range && API.Info.PlayerInfo.ManaPercent > 5)
                {
                    Corruption.Launch();
                }
                if (DemonicEmpowerment.isReady() && API.Info.PlayerInfo.ManaPercent > 5)
                {
                    DemonicEmpowerment.Launch();
                }
                if (DrainLife.isReady() && API.Info.TargetInfo.Get_Distance < DrainLife.Range && API.Info.PlayerInfo.ManaPercent > 5)
                {
                    DrainLife.Launch();
                }
            }
        }
    
        #endregion
    
    
        // Management Buffs
        #region Buffs_Management
    
        public void Buff()
        {
            if (API.Bot.IsLaunchedBot && !API.Info.PlayerInfo.isMounted && !API.Info.PlayerInfo.IsDied)
            {
                if (DemonicKnowledge.isReady() && !DemonicKnowledge.HaveBuff() && !API.Info.PlayerInfo.isMounted)
                {
    			    Thread.Sleep(1000);
                    if (DemonicKnowledge.isReady() && !DemonicKnowledge.HaveBuff() && !API.Info.PlayerInfo.isMounted)
    				{
    					SummonFelguard.Launch();
    				}
                }
                if (DetectInvisibility.isReady() && !DetectInvisibility.HaveBuff())
                {
                    DetectInvisibility.Launch();
                }
            }
        }
    
        #endregion
    
    
        #endregion
    
    }
    
    When it goes into fight, some of the time it will cast the DOT's (Curse of Agony and Corruption), but it will NEVER cast drain life and not move towards the target (obviously, if it is at the target it won't run and works fine then).

    What am I doing wrong with setting it up??

    Struct.Spell DrainLife = new Struct.Spell("Drain Life", 30, 0.0f, 5.0f);

    What other setting might I have wrong?

    Thanks

    tG

  2. #2
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Default Moves when casts

    // Range
    float RangeTemps = 30;
    public float Range { get { return RangeTemps; } }

    If the RangeTemps isn't set (and the example has it at 0), then you will run right up to the target.

    Would really be nice to see a working example of a channeled cast class...

    Still having issues with Drain Life only casting for the length of the GCD and then casting the next spell. I know I've got the duration set longer, so suggest something else.

    Really could use a little bit of support here...

    tG

  3. #3
    WowRobot User With life streety is on a distinguished road
    Join Date
    Sep 2009
    Posts
    59

    Default

    theGardener......i warn you just one time....dont spam the whole board with your accounts and posts....i mean...wait a little bit or write a pm to some mods or rival or someone....but DONT spam !!

  4. #4
    Member Malmis is on a distinguished road
    Join Date
    Sep 2009
    Posts
    41

    Default

    Is it a backwardschanneled spell? Like Penance? 'cause I think they still bug.

  5. #5
    Super Moderator Bryce will become famous soon enough
    Join Date
    Sep 2009
    Posts
    148

    Default

    yes it is backwards

  6. #6
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Default Warned??

    Quote Originally Posted by streety View Post
    theGardener......i warn you just one time....dont spam the whole board with your accounts and posts....i mean...wait a little bit or write a pm to some mods or rival or someone....but DONT spam !!
    Warn me?? Who the %$@ are you to warn me??

    Unless you are Rival, get off my case you over zealous azz.

    Now, if you had actually bothered to read/look at the posts, rather than just making a azz of yourself, you would have seen:

    (10-11-2009, 12:18 PM) I asked a specific question and posted my code.

    (10-12-2009, 11:15 AM) Then after waiting 35 HOURS, I bump it and ask for help from specific people.

    (10-14-2009, 08:11 PM) Another 57 HOURS passed, ~92 total, and still no answer, so I bump again.

    (10-14-2009, 09:56 PM) Not sitting on my butt the whole time, I see some code that actually makes things better (not fixed, but better) and post it for all to see (trying to help the community).

    (10-15-2009, 03:59 PM) Finally, after another day (total wait time ~ 5 DAYS AND 15 HOURS). I blow up my post (yes, I'm actively using multiple PAID accounts, where does it say I can't use them all to post??)

    Thanks for suggesting I PM Rival, I never would have though of that on my own...

    So, unless you have something positive to add to conversation, shut it, or get someone with a "mod" or "admin" in their title to tell me to lay off because I'm "spamming" the boards after waiting more than 5 DAYS for a little help.

    One more thing, this is the first post specifically about casting Drain Life, but I've been asking about it since warlock-cc-channeled-spells.html#post632, so that would bring the total time waiting for an answer to what... 25 DAYS!!! looking for an answer.

    Yep, that's me, spammer cause 25 days isn't long enough to wait for some help and just a troll because I have at least 3 paid accounts. I'm sure Rival is just itching to ban folks like me from WR.

    tG


    PS. I'm still hoping to get some help with this. I'm not sure what "Backwards" is (longer cast than cooldown?), but thanks for getting 1/2 step closer to an answer.
    Last edited by theGardener; 10-18-2009 at 04:58 AM. Reason: Added link to original help request

  7. #7
    WowRobot User With life streety is on a distinguished road
    Join Date
    Sep 2009
    Posts
    59

    Default

    Quote Originally Posted by theGardener View Post
    Warn me?? Who the %$@ are you to warn me??

    Unless you are Rival, get off my case you over zealous azz.

    Now, if you had actually bothered to read/look at the posts, rather than just making a azz of yourself, you would have seen:

    (10-11-2009, 12:18 PM) I asked a specific question and posted my code.

    (10-12-2009, 11:15 AM) Then after waiting 35 HOURS, I bump it and ask for help from specific people.

    (10-14-2009, 08:11 PM) Another 57 HOURS passed, ~92 total, and still no answer, so I bump again.

    (10-14-2009, 09:56 PM) Not sitting on my butt the whole time, I see some code that actually makes things better (not fixed, but better) and post it for all to see (trying to help the community).

    (10-15-2009, 03:59 PM) Finally, after another day (total wait time ~ 5 DAYS AND 15 HOURS). I blow up my post (yes, I'm actively using multiple PAID accounts, where does it say I can't use them all to post??)

    Thanks for suggesting I PM Rival, I never would have though of that on my own...

    So, unless you have something positive to add to conversation, shut it, or get someone with a "mod" or "admin" in their title to tell me to lay off because I'm "spamming" the boards after waiting more than 5 DAYS for a little help.

    One more thing, this is the first post specifically about casting Drain Life, but I've been asking about it since warlock-cc-channeled-spells.html#post632, so that would bring the total time waiting for an answer to what... 25 DAYS!!! looking for an answer.

    Yep, that's me, spammer cause 25 days isn't long enough to wait for some help and just a troll because I have at least 3 paid accounts. I'm sure Rival is just itching to ban folks like me from WR.

    tG


    PS. I'm still hoping to get some help with this. I'm not sure what "Backwards" is (longer cast than cooldown?), but thanks for getting 1/2 step closer to an answer.
    ok we will see.....we will see...

    and if you are such an ass like that , you get never help.....
    i know how it is when you are waiting for help every day...this sucks....yes...hope you find an answer for you question...
    Last edited by streety; 10-18-2009 at 08:41 AM.

  8. #8
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Default

    Quote Originally Posted by streety View Post
    ok we will see.....we will see...

    and if you are such an ass like that , you get never help.....
    i know how it is when you are waiting for help every day...this sucks....yes...hope you find an answer for you question...
    I hoped you'd actually read the posts and times (25 days with no answer) and realize you'd made a mistake about me, but no, now I'm an "ass" and it is "ok we will see...we will see..." Is that more threats? wow, nice to see your support, we need more "helpful" people like you around here.

    And if you can't get help after 25 days, I guess I'm not expecting any, but at the same time, read my posts, I've tried to help out where I can (theGardener's posts).

    Thanks for the empathy about finding an answer for my question though. It is appreciated.

    tG

    PS. If you are as all powerful as you seem to believe, how about using that influence and ask Rival to take 10 minutes and post a response of how channeled spells like drain life work (or don't). That would be really helpful. Or you can just respond with more threats. Your call.

  9. #9
    Super Moderator Bryce will become famous soon enough
    Join Date
    Sep 2009
    Posts
    148

    Default

    everybody calm down, no insults anymore...no matter who started

    theGardener, please try this. not the best solution but should work

    I don't know if !API.Info.PlayerInfo.IsDied also included channeling spells...please try it out

    For the case that its not included I added a sleep to your drain life. Also removed senseless stuff etc.. (I would not use manapercent > 5 for mana check)

    Code:
    using System;
    using System.Threading;
    public class CustomClass : API.ICustomClass
    {
        float RangeTemps = 0;
    
        public float Range { get { return RangeTemps; } }
        public void Initialize()
        {
            while (API.Bot.IsLaunchedBot)
            {
                Buff();
                Fight();
            }
        }
    
        // Buffs
        Struct.Spell UnendingBreath = new Struct.Spell("Unending Breath");
        Struct.Spell DetectInvisibility = new Struct.Spell("Detect Invisibility");
        Struct.Spell ShadowWard = new Struct.Spell("Shadow Ward");
    	Struct.Spell SummonFelguard = new Struct.Spell("Summon Felguard");
    	Struct.Spell DemonicKnowledge = new Struct.Spell("Demonic Knowledge");
    	Struct.Spell ShadowTrance = new Struct.Spell("Shadow Trance");
    	Struct.Spell DemonicEmpowerment = new Struct.Spell("Demonic Empowerment", 100, 60);
    	Struct.Spell ShadowBolt = new Struct.Spell("Shadow Bolt", 30);
    	Struct.Spell HealthFunnel = new Struct.Spell("Health Funnel");
    
        //public Spell(Name, Range, Cooldown, Duration);
        //Spells
        Struct.Spell Shoot = new Struct.Spell("Shoot", 30);
        Struct.Spell DrainLife = new Struct.Spell("Drain Life", 30);
        Struct.Spell CurseofAgony = new Struct.Spell("Curse of Agony", 30);
        Struct.Spell Corruption = new Struct.Spell("Corruption", 30);
        Struct.Spell LifeTap = new Struct.Spell("LifeTap");
    
        public void Fight()
        {
            if (API.Bot.IsLaunchedBot && API.Info.PlayerInfo.IsFight && !API.Info.PlayerInfo.IsDied && !API.Info.PlayerInfo.isCast)
            {
                if (API.Info.PetInfo.HealthPercent < 50)
                {
                    HealthFunnel.Launch();
                }
                if (ShadowTrance.HaveBuff())
                {
                    ShadowBolt.Launch();
                }
                if (API.Info.TargetInfo.Get_Distance < CurseofAgony.Range && API.Info.PlayerInfo.ManaPercent > 5 && !API.Info.TargetInfo.HaveBuff("Curse of Agony"))
                {
                    CurseofAgony.Launch();
                }
                if (API.Info.TargetInfo.Get_Distance < Corruption.Range && API.Info.PlayerInfo.ManaPercent > 5 && !API.Info.TargetInfo.HaveBuff("Corruption"))
                {
                    Corruption.Launch();
                }
                if (DemonicEmpowerment.isReady() && API.Info.PlayerInfo.ManaPercent > 5)
                {
                    DemonicEmpowerment.Launch();
                }
                if (API.Info.TargetInfo.Get_Distance < DrainLife.Range && API.Info.PlayerInfo.ManaPercent > 5)
                {
                    DrainLife.Launch();
                    Thread.Sleep(5000);               
                }
            }
        }
    
        public void Buff()
        {
            if (API.Bot.IsLaunchedBot && !API.Info.PlayerInfo.isMounted && !API.Info.PlayerInfo.IsDied)
            {
                if (!DemonicKnowledge.HaveBuff())
                {
                    SummonFelguard.Launch();		
                }
    
                if (!DetectInvisibility.HaveBuff())
                {
                    DetectInvisibility.Launch();
                }
            }
        }
    }
    
    Last edited by Bryce; 10-18-2009 at 08:33 PM.

  10. #10
    WowRobot User With life streety is on a distinguished road
    Join Date
    Sep 2009
    Posts
    59

    Default

    Quote Originally Posted by theGardener View Post
    I hoped you'd actually read the posts and times (25 days with no answer) and realize you'd made a mistake about me, but no, now I'm an "ass" and it is "ok we will see...we will see..." Is that more threats? wow, nice to see your support, we need more "helpful" people like you around here.

    And if you can't get help after 25 days, I guess I'm not expecting any, but at the same time, read my posts, I've tried to help out where I can (theGardener's posts).

    Thanks for the empathy about finding an answer for my question though. It is appreciated.

    tG

    PS. If you are as all powerful as you seem to believe, how about using that influence and ask Rival to take 10 minutes and post a response of how channeled spells like drain life work (or don't). That would be really helpful. Or you can just respond with more threats. Your call.
    Yes i read the posts ..and you dont need to create 2 more accounts for just push your thread up.....just push your thread and then delete your post and post again.....no need for more accounts....i did not threated you....i love to help people .... but i dont like spammers....

  11. #11
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Default

    First, thanks for the constructive help!!

    Quote Originally Posted by Bryce View Post
    I don't know if !API.Info.PlayerInfo.IsDied also included channeling spells...please try it out
    This was in the sample code, so I just went with it.

    Quote Originally Posted by Bryce View Post
    For the case that its not included I added a sleep to your drain life.
    I found 4500 to be the best sleep for my latency, and would properly be dealt with when the spell is defined.

    Quote Originally Posted by Bryce View Post
    Also removed senseless stuff etc.. (I would not use manapercent > 5 for mana check)
    I did this because if the character runs out of mana, I want it to wand/shoot. The other part wasn't working, so I hadn't added the shoot to this version.

    Quote Originally Posted by Bryce View Post
    float RangeTemps = 0;

    public float Range { get { return RangeTemps; } }
    If I don't change this to "RangeTemps = 30;" then my toon will always keep moving closer to the target.

    Code:
    using System;
    using System.Threading;
    public class CustomClass : API.ICustomClass
    {
        float RangeTemps = 0;
    
        public float Range { get { return RangeTemps; } }
        public void Initialize()
        {
            while (API.Bot.IsLaunchedBot)
            {
                Buff();
                Fight();
            }
        }
    
        // Buffs
        Struct.Spell UnendingBreath = new Struct.Spell("Unending Breath");
        Struct.Spell DetectInvisibility = new Struct.Spell("Detect Invisibility");
        Struct.Spell ShadowWard = new Struct.Spell("Shadow Ward");
    	Struct.Spell SummonFelguard = new Struct.Spell("Summon Felguard");
    	Struct.Spell DemonicKnowledge = new Struct.Spell("Demonic Knowledge");
    	Struct.Spell ShadowTrance = new Struct.Spell("Shadow Trance");
    	Struct.Spell DemonicEmpowerment = new Struct.Spell("Demonic Empowerment", 100, 60);
    	Struct.Spell ShadowBolt = new Struct.Spell("Shadow Bolt", 30);
    	Struct.Spell HealthFunnel = new Struct.Spell("Health Funnel");
    
        //public Spell(Name, Range, Cooldown, Duration);
        //Spells
        Struct.Spell Shoot = new Struct.Spell("Shoot", 30);
        Struct.Spell DrainLife = new Struct.Spell("Drain Life", 30);
        Struct.Spell CurseofAgony = new Struct.Spell("Curse of Agony", 30);
        Struct.Spell Corruption = new Struct.Spell("Corruption", 30);
        Struct.Spell LifeTap = new Struct.Spell("LifeTap");
    
        public void Fight()
        {
            if (API.Bot.IsLaunchedBot && API.Info.PlayerInfo.IsFight && !API.Info.PlayerInfo.IsDied && !API.Info.PlayerInfo.isCast)
            {
                if (API.Info.PetInfo.HealthPercent < 50)
                {
                    HealthFunnel.Launch();
                }
                if (ShadowTrance.HaveBuff())
                {
                    ShadowBolt.Launch();
                }
                if (API.Info.TargetInfo.Get_Distance < CurseofAgony.Range && API.Info.PlayerInfo.ManaPercent > 5 && !API.Info.TargetInfo.HaveBuff("Curse of Agony"))
                {
                    CurseofAgony.Launch();
                }
                if (API.Info.TargetInfo.Get_Distance < Corruption.Range && API.Info.PlayerInfo.ManaPercent > 5 && !API.Info.TargetInfo.HaveBuff("Corruption"))
                {
                    Corruption.Launch();
                }
                if (DemonicEmpowerment.isReady() && API.Info.PlayerInfo.ManaPercent > 5)
                {
                    DemonicEmpowerment.Launch();
                }
                if (API.Info.TargetInfo.Get_Distance < DrainLife.Range && API.Info.PlayerInfo.ManaPercent > 5)
                {
                    DrainLife.Launch();
                    Thread.Sleep(5000);               
                }
            }
        }
    
        public void Buff()
        {
            if (API.Bot.IsLaunchedBot && !API.Info.PlayerInfo.isMounted && !API.Info.PlayerInfo.IsDied)
            {
                if (!DemonicKnowledge.HaveBuff())
                {
                    SummonFelguard.Launch();		
                }
    
                if (!DetectInvisibility.HaveBuff())
                {
                    DetectInvisibility.Launch();
                }
            }
        }
    }
    
    [/QUOTE]

    Thanks so much for the help!

    tG

  12. #12
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Default

    Quote Originally Posted by streety View Post
    Yes i read the posts ..and you dont need to create 2 more accounts for just push your thread up.....just push your thread and then delete your post and post again.....no need for more accounts....i did not threated you....i love to help people .... but i dont like spammers....
    A reasonable response. Thanks.

    I didn't create more accounts to spam, for every instance of WR running, you have to have a separate account on this forum. I have 3 (soon to be 4) running right now, so I just used what I had already.

    tG

  13. #13
    Super Moderator Bryce will become famous soon enough
    Join Date
    Sep 2009
    Posts
    148

    Default

    If I don't change this to "RangeTemps = 30;" then my toon will always keep moving closer to the target.
    Yes of course, but I did not look at that part

    I did this because if the character runs out of mana, I want it to wand/shoot. The other part wasn't working, so I hadn't added the shoot to this version
    There has to be a way to use Life Tap properly. I will check it out

  14. #14
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Default Life Tap

    Quote Originally Posted by Bryce View Post
    There has to be a way to use Life Tap properly. I will check it out
    I'm looking at a way to add a timer to lifetap, so you don't end up clicking it all the time, but more often. In anycase the mana vs life compare works pretty well as I use my pet for most of the damage (so I'm free to farm while it attacks stuff).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts