Jump to content

79135

WRobot user
  • Posts

    336
  • Joined

  • Last visited

Posts posted by 79135

  1. Just now, Bambo said:

    In vanilla I would try with ItemsManager.UseItem(11111);

    1111 = your mount item id

    PS: Not sure if this is correct

                                                           
    while(!ObjectManager.Me.IsMounted)
    {

    SpellManager.CastSpellByNameLUA(wManager.wManagerSetting.CurrentSetting.FlyingMountName)
    Thread.Sleep(Others.Random(1500, 2500));

    }

    I need to get name mount from settings

  2. 5 minutes ago, Matenia said:

    All conditions in wRobot are combined with a && operator. In the fightclass editor, you can only create "or" scenarios, but using one sole C# or Lua condition OR creating a second spell with the same name and different conditions.

    I recommend you just look into how to use C# to write a fightclass from scratch and don't use the editor.
    Also what Droidz said - wrap your C# conditions in brackets like this: ( <condition> )

    You can do everything in one C# conditon too:
     

    
    ObjectManager.Me.Level < 25 && !ObjectManager.Me.IsCast && ObjectManager.Me.HaveBuff("Power Word: Shield") && Usefuls.ContinentId < 2

     

    oh, I wanted to do everything in a simple way, but I have to do everything conditions in the C Shape form..

  3.  

    12 minutes ago, Bambo said:

    https://www.programiz.com/c-programming/c-operators

    Check "Logical Operators". If I understand correctly you want to use a logical OR but in same condition another OR / AND but your problem is that the bot is not looking for those conditions but instead just checks the first OR?

    If I understand that correctly you might wanna use something like this

    (Usefuls.ContinentId == (int) ContinentId.Kalimdor || Usefuls.ContinentId == (int) ContinentId.Azeroth) && ObjectManager.Me.Level = 10

    Yes.

  4. 18 hours ago, Droidz said:

    How many time you have waiting? try to wait 5 minutes, you can also try to put "google.com" or another website in "ping to check internet connectivity"

    I wait more 30 min. Can it happen from the script? Idk how unsubscribe , help pls

    //Healing Touch !fight mana > 40% hp< 60%                                                                                                                                             
    Logging.Write("Healing Touch !fight mana > 40% hp< 60%");
    int percentHP = 60;
    int percentMana = 40;
    bool need = true;

    robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancelable) =>
    {
        if(ObjectManager.Me.HealthPercent < percentHP + 5 && 
        ObjectManager.GetUnitAttackPlayer().Count(u => u.GetDistance < 100) == 0 && need)
        {
            cancelable.Cancel = true;
            while(ObjectManager.Me.HealthPercent < percentHP + 5 && 
            ObjectManager.GetUnitAttackPlayer().Count(u => u.GetDistance < 100) == 0 && 
            !ObjectManager.Me.IsDead)
            {
     

            }
        }
    };

  5.     The code in the plugin, but don't work, just repeat 123

            if (wManager.wManagerSetting.CurrentSetting.PluginsSettings.Any(p => !p.Actif && string.Equals(p.FileName, "file name.cs")) && 
                _isLaunched && Products.IsStarted &&
                Conditions.InGameAndConnectedAndProductStartedNotInPause &&
                (Usefuls.ContinentId == (int)ContinentId.Northrend ||
                Usefuls.ContinentId == (int)ContinentId.Expansion01 ||
                Usefuls.ContinentId == (int)ContinentId.Kalimdor ||
                Usefuls.ContinentId == (int)ContinentId.Azeroth))
                {
                    
                    foreach (var p in wManager.wManagerSetting.CurrentSetting.PluginsSettings)
                    {

                        Logging.Write("123");
                        Thread.Sleep(1000);
                        if (p.FileName == "SmoothMove.dll")
                            p.Actif = true;
                    }
                    wManager.Plugin.PluginsManager.LoadAllPlugins();

                }

×
×
  • Create New...