Jump to content

zze

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by zze

  1. internal void Rotation()
        {
            while (_running)
            {
                try
                {
                    if (!ObjectManager.Me.IsDeadMe)
                    {
    
                      if (!ObjectManager.Pet.IsValid && !ObjectManager.Me.IsMounted)
                            {
                                // Thread.Sleep(300);
                                Fight.StopFight();
                                MovementManager.StopMove();
                                PSpawn();   // pet spawner
                            }
    
                        Buff();
                        if (Fight.InFight && ObjectManager.Me.Target > 0)
                        {
                            Pull();
                            CombatRotation();
                        }
                      
                      .....................

      its not after the fight but seems to have fixed it just carrying out to the next target without resummoning ?

  2. I am trying to get the bots logic to loop through a little better in the sense of checking itself after each fight,

    I would like to have it stop itself after each fight for check of (do I have a pet, is my hp/mp above X %) that kinda thing

    so far I've tried something like

     internal void Rotation()
        {
            while (_running)
            {
                try
                {
                    if (!ObjectManager.Me.IsDeadMe)
                    {
    
                      if (!ObjectManager.Pet.IsAlive)
                      {
                       PSpawn();    //Pet spawner
                       return;
                      }
    
                        Buff();
                        if (Fight.InFight && ObjectManager.Me.Target > 0)
                        {
                            Pull();
                            CombatRotation();
                        }
                      
                      .....................

    which seems to help but not quite full proof, so just wondering is there a better way to basically have it reinitialize, or just have a section of code it executes after it exits combat each time ?

  3. 33 minutes ago, fantasia said:

    Maybe you use Sleep somewhere that blocks the code from running (not sure if it would block the pathfinding from running its code).

    Maybe you need to enclose your buff and combat code in a "if (!ObjectManager.Me.IsDeadMe)".

    That is the only 2 things I can come up with that could possibly affect it.

    after messing around with it more found was just the area desolace being werid with pathing after i died :3 now its working ?

      if (!ObjectManager.Me.IsMounted && ItemsManager.GetItemCountById(6265) <= 8 && ObjectManager.Target.HealthPercent <= 15)
            {
                DrainSoul.Launch();
                System.Threading.Thread.Sleep(700);
                return;
            }

     

    thank you very much for you help ?

  4. hello, trying to do  a warlock fightclass,  and one thing i am working on is trying to have it drain soul shards when im getting low...

    I tried       

     if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(6265)  && ObjectManager.Target.HealthPercent <= 10)
            {
                // drain soul
            }

    works but only checks for one shard... so then tried

            if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(6265) <= 10 && ObjectManager.Target.HealthPercent <= 10)
            {
                // drain soul
            }

    but doesn't seem to like the idea of stacks... also tried ItemsManager.HasItemStacksById but dont think that exists ?

     

    any ideas?

×
×
  • Create New...