Jump to content

alchemy

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by alchemy

  1. Hello! I'm continue building dungeon profile and now me need help.

    Mobs are not ordinary, when they have 1 hp, they become immortal. The bot ceases to change targets and is glued to this mob.
    After 1 hp, the mob becomes friendly.
    The bot needs to move within 50 meters and lower the life of all the mobs that are there.

    It would be ideal if I could turn off the fight, and just press 1 aoe ability.

     

    public class SecondBossKill : QuestClass
    {
        
        public SecondBossKill()
        {
        
    Thread t = new Thread(() =>
    {
                var newbie = wManager.Wow.ObjectManager.ObjectManager.GetNearestWoWUnit(wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitByEntry(111));
                var snow = wManager.Wow.ObjectManager.ObjectManager.GetNearestWoWUnit(wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitByEntry(222));
                var lotos = wManager.Wow.ObjectManager.ObjectManager.GetNearestWoWUnit(wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitByEntry(333));
        while (true)
        {
            if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)
            {
                    
                    if(newbie.IsValid && newbie.HealthPercent >= 1 && newbie.GetDistance <= 40)
                    {
                        wManager.Wow.Helpers.Interact.InteractGameObject(newbie.GetBaseAddress);
                        wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(202028);
                        Thread.Sleep(500);
                        wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(106830);
                    }
                
                    if(snow.IsValid && snow.HealthPercent >= 1 && snow.GetDistance <= 40)
                    {
                        wManager.Wow.Helpers.Interact.InteractGameObject(snow.GetBaseAddress);
                        wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(202028);
                        Thread.Sleep(500);
                        wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(106830);
                    }
                
                    if(lotos.IsValid && lotos.HealthPercent >= 1 && lotos.GetDistance <= 40)
                    {
                        wManager.Wow.Helpers.Interact.InteractGameObject(lotos.GetBaseAddress);
                        wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(202028);
                        Thread.Sleep(500);
                        wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(106830);
                    }
                    
                    if(newbie.HealthPercent <= 2 && snow.HealthPercent <= 2 && lotos.HealthPercent <= 2)
                    {
                        break;
                    }    
            }
        }
    });
    t.Start();
        }
    }

     

  2. 5 hours ago, Droidz said:

    Hello, 

    
            var o = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(new Int128("00663400002CA717202FD477E0376C80"));
            if (o.IsValid)
                wManager.Wow.Helpers.Interact.InteractGameObject(o.GetBaseAddress);

     

    Thx mate!

    Working var o = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(new MemoryRobot.Int128("0002E600002D7A4F203AF40020255880"));

  3. Hello!

    I have 2 targets, me need force select a first target and started attack. After few second me need select a second target and start attack him.

    I will try  this code but don't work.

    It's questing profile, don't plugin.

    Int128 target1 = 00663400002CA717202FD477E0376C80 ;

    Int128 target2 = 00663400002CA717202FD477E0377C80 ;
    ObjectManager.Me.Target = target1;
     Thread.Sleep(5000);
    ObjectManager.Me.Target = target2;

    i receive error https://docs.microsoft.com/en-gb/dotnet/csharp/language-reference/compiler-messages/cs1685 Please help me.

×
×
  • Create New...