Jump to content

Mykoplazma

Members
  • Posts

    183
  • Joined

  • Last visited

Posts posted by Mykoplazma

  1. using System;
    using System.Threading;
    using System.Windows.Forms;
    using robotManager.Helpful;
    using wManager.Wow.Class;
    using wManager.Wow.Enums;
    using wManager.Wow.Helpers;
    using wManager.Wow.ObjectManager;
    
    public class Main : ICustomClass
    {
        public float Range { get { return 30; } }
    
        private bool _loop;
        public void Initialize()
        {
            _loop = true;
            while (_loop)
            {
            Lua.RunMacroText("/cast Flash Heal");
            }
    
        }
    
        public void Dispose()  { _loop = false; }
        public void ShowConfiguration()   {}
    }

    Ok this is stripped down custom combat class. Take all of that copy to notepad and save into fightclass dir with .cs on the end. Then Replace that Lua.RunMacroText("/cast Flash Heal"); to anything you want you can make 2 comands or any other number like

    Lua.RunMacroText("/cast Disenchant");

    Lua.RunMacroText("/use Item:43433");

    or whatever idk what you want achieve.

    You can put normal spell there too.

    For pause in between add

    Thread.Sleep(15);

    Where 15 is in miliseconds so to get one second write

    Thread.Sleep(1000);

     

     

     

  2. Just enable the plugin in plugins tab it should show up as GatheringMobSpawns.cs and set it to on. The second thing is this is plugin created to kill specific mobs with ids like

    new List<int> {98232, 98234, 98235 } };

    To make the bot kill other kind of mob you must find the id on wowhead and add it to list.

    For now that list let the bot attack 3 mobs :

    www.wowhead.com/npc=98232

    www.wowhead.com/npc=98234

    www.wowhead.com/npc=98235

    To add mob you must go to wowhead find the mob id and add it to that list directly into the plugin code.

     

     

  3. I get help from that forum with answer which is using a part of c# version 6 - that $ thing used before string instead of using string.format thing like in this example $"print(\"{wowPlayer.Name} around paused.\")". That thing requires c# 6 I have only c# 5 ( windows 7 ) i found how to get compilator for version c# 6 and I have now csc.exe (compilator ) file in separte directory. How to make the bot compile the plugin or rotation using that csc file or where to replace files to get it compiled with c# 6 special new functions?

  4. To check if current selected target is a tank you must use lua function ;)

    role = UnitGroupRolesAssigned(Unit);

    the Unit can be "target","player","playerName" etc role can be TANK , DAMAGER, HEALER , NONE

    Soon I will put  rotation which is targeting each party members check lowest hp put tank on priority heal from the weakest to the strongest etc. But it's not possible to create such thing in the editor only pure c# can give you such powers. Pm if interested of the base of it ( only selecting the lowest hp works for now but this is a good start ;))

     

  5. Ok. Go to a city with a disco priest. Take a name of anyplayer around with afk write Lua.DoString("CastSpellById(17,\"THATPLAYERNAME\")") and look what will happen ( 17 is power world : shield ). You will cast it on yourself. Always with your snippet the situation is identical. Alawys on self but if in party then ok.

    Second thing using that example for object manager iteration:

     

       if (!ObjectManager.Me.IsDead && Party.IsInGroup() && !Usefuls.IsLoadingOrConnecting && Usefuls.InGame)
                    {
                        foreach (var playerGuid in Party.GetPartyGUID())
                        {
                            if (playerGuid > 0)
                            {
                                var p = new WoWPlayer(0);
                                var obj = ObjectManager.GetObjectByGuid(playerGuid);
                                if (obj.IsValid && obj.Type == WoWObjectType.Player)
                                {
                                    p = new WoWPlayer(obj.GetBaseAddress);
                                }
                                if (p.IsValid && !p.IsDead)
                                {

                                       Logging.Write(p.name);

                                }

    }

    }

    That p.name sometimes return value Unknown instead of player name all other values are correct.

     

     

     

  6. Ok thank you for answer that method is working - you don't need a target but you must be in party otherwise it  will not work. Second question - sometimes object manager don't have access to name field? The result name is Unknown despite all other values are correct and visible . How to get rid of that Unknown thing without lua guid comparasion ( because it's eating resources like crazy )

  7. Hi is this possible to cast spell on player without targeting that player before? There was many pqr profiles for ( healing ones ) which was casting all healing spells on friendly target without taking the target slot. It was easy to reproduce using wow plus hack ( for example ) on cata doing simple thing like CastSpellByName("Flash Heal",target.guid) where the target guid is not blizzard crap ( "target","player","pet" etc ) but numerical value of guid ( 123423423423 ) or maybe memory adress of the target player structure anyway it was working , and this is also working too on pqr so is that possible on wrobot to? Now I must find the target, check hp, target it, cast spell. But without that interaction thing is that possible?

×
×
  • Create New...