Jump to content

arkhan

Members
  • Posts

    131
  • Joined

  • Last visited

Posts posted by arkhan

  1. Hi,

    I'm making a FC in c# with the exemple there

    Everythink is ok except for settings

    when i click on settings, the box show settings but without default settings an when i try to save settings it only save the last data.

    [Serializable]
    public class ShamanSettings : Settings
    {
        [Setting]
        [DefaultValue(true)]
        [Category("GHOST WOLF SETTINGS")]
        [DisplayName("Ghost Wolf")]
        [Description("Use Ghost Wolf")]
        public bool UGW { get; set; }
    
        [Setting]
        [DefaultValue(4)]
        [Category("GHOST WOLF SETTINGS")]
        [DisplayName("Use after X secondes")]
        [Description("Use Ghost Wolf after X secondes out of combat")]
        public int TGW { get; set; }
    
        [Setting]
        [DefaultValue(50)]
        [Category("GHOST WOLF SETTINGS")]
        [DisplayName("Mana required")]
        [Description("Use Ghost Wolf only if mana is superior or equal")]
        public int MGW { get; set; }
    
        private ShamanSettings()
        {
            ConfigWinForm(new System.Drawing.Point(400, 400), "Shaman " + Translate.Get("Settings"));
        }
    
        public static ShamanSettings CurrentSetting { get; set; }
    
        public bool Save()
        {
            try
            {
                return Save(AdviserFilePathAndName("CustomClass-Shaman", ObjectManager.Me.Name + "." + Usefuls.RealmName));
            }
            catch (Exception e)
            {
                Logging.WriteError("ShamanSettings > Save(): " + e);
                return false;
            }
        }
    
        public static bool Load()
        {
            try
            {
                if (File.Exists(AdviserFilePathAndName("CustomClass-Shaman", ObjectManager.Me.Name + "." + Usefuls.RealmName)))
                {
                    CurrentSetting =
                        Load<ShamanSettings>(AdviserFilePathAndName("CustomClass-Shaman",
                                                                     ObjectManager.Me.Name + "." + Usefuls.RealmName));
                    return true;
                }
                CurrentSetting = new ShamanSettings();
            }
            catch (Exception e)
            {
                Logging.WriteError("ShamanSettings > Load(): " + e);
            }
            return false;
        }
    }

    there is the full c# file

    if somoene can help me to figure this out

     

    Arkhan-ShamEnh.cs

  2. I've encounter the same issue, tested with some parameters but that doesn't matter.

    LHW.Launch(); // bug if target move
    LHW.Launch(true, true, false, true); //bug don't wait during cast for healing if target move; bot move
    LHW.CastTime = 1500f; // Ignore the castime set
    SpellManager.CastSpellByNameOnSelfLUA("Lesser Healing Wave"); // Tested all lua and the bot doesn't wait 
    //LHW.MinRange and LHW.MaxRange doesn't change notting

    I'll try tonight with minRange et MaxRange to see if that change something

    Edit: Finaly found a solution

    wManager.Wow.Helpers.Usefuls.WaitIsCasting(); // Wait during cast
    LHW.Launch(true, true, false, true);

     

  3. Quote

    Is it really needed that the marked area to have more than one questid? if yes an example would be useful

    I've never encounted a situation where i needed to write more than one ID. But I've only do quest 1-80 for cataclysm + mop, so maybe for legion or vanilla is required but i doubt of it.

    Quote

    Does the name of the quest affect the common quest product?  Here "quest1 - KillAndLoot".  So far i tested it, only the quest id influence it but i'm not sure if some other function will also need the name

    Same, so far i've tested, only the id is important.

    Quote

    If you have also other ideas for the editor, please leave your suggestions here.

    Hum, the only thing who came to my mind is to make quest profile quicker. When i need to fill the quest form (KillandLoot, Gatherer, ...) Find the creatures, GameObject and click again to set up their position is really annoying.

    But I've saw in the dev. tools you enter the id/Name of the creature and that return all the position where the bot find this creature/GameObject.

    Maybe there is a way to make a button with ID or Name and click on it to fill up the positions automaticaly?

     

    Anyway great job.

  4. Hi, this is an idea not sure that works

    try to add step "Interact with npc" put the id and the position of the door.

    Now to go to the next step you need to detect a change in the game.

    Perhaps, it's ID or Position change when you click on it ?

    or try this with step runcode (never tested with GameObject)

    Vector3 DoorPos = new Vector3(5718, 721, 641); // for example

    wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(DoorPos, ID, -1);

  5. Salut ne jouant pas sur retail mais sur privé je n'ai pas ce bug.

    Cependant , je peux te donner quelque conseil mais aucune garantie que cela fonctionne.

    As-tu essayé avec une autre FightClass?

    Les paramètres pause bot if nearby player dans security sont décochés ?

    Peut être est-ce l'UI qui déconne, et dans ce cas crée une macro ingame avec /reload ui et ensuite dans le bot la lancé toute les XX minutes avec My Macros

  6. Hello,

    I've noticed an issue with gatherer that make the bot stucks with nodes in water.

    bot still do the same thing in a loop, Fly above water, again and again.

    Characteristics during stuck

    Gatherer profile : Seu Ore Gatherer 0.9.

    Zone : Pandaria (VotFW, JF, KW, VoEB)

    General Settings : Detteck stuck nodes = true

    Numbers of times that happens : 5 times in a week

    am i the only one who run on this kind of issue ?

    there is a solution to avoid that ?

    I've edited the log file to remove name of mail recipient and name of character during select process

    4 mai 2017 01H23.log.html

  7. Hum compliquer là,

    Je dirais que ta FC a été corrompue. ça m'est déjà arrivé une fois.

    Quand je l'ouvre aucune donnée ne s'affiche, sinon coté xml ça à l'air bon pour le sort de soin.

    Essaye de la refaire ou de faire juste un test avec le sort de soins et de tomber de monture volante pour voir si le bot va se healer

×
×
  • Create New...