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);
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).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 }
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


LinkBack URL
About LinkBacks


Reply With Quote

...
SEO by vBSEO 3.5.0 RC2