Jump to content

Ordush

Elite user
  • Posts

    1167
  • Joined

  • Last visited

Everything posted by Ordush

  1. @Droidz Am i doing something wrong? If you look at the code i have above, then the line you just wrote here should save and thereby do CurrentSetting.FetchFromLua(); But neither if i have it in my rotation and set to do C#, or if i use the DevolpmentTools and write the code below will work? HunterBeastmasterSettings.CurrentSetting.Save() This is how it looks: new SpellState("HunterBeastmasterSettings.CurrentSetting.Save();", 1, context => true, false, false, false, false, false, false, false, false, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Yes, "", "none", false, false, true), /* * SETTINGS */ [Serializable] public class HunterBeastmasterSettings : Settings { private bool _huntersmark = false; [Setting] [DefaultValue(false)] [Category("Settings")] [DisplayName("Hunter's Mark")] [Description("Use Hunter's Mark")] public bool HuntersMark { get { return _huntersmark; } set { _huntersmark = value; } } private HunterBeastmasterSettings() { ConfigWinForm(new System.Drawing.Point(400, 400), "HunterBeastmaster " + Translate.Get("Settings")); } public static HunterBeastmasterSettings CurrentSetting { get; set; } public bool Save() { try { CurrentSetting.FetchFromLua(); // LOAD SETTINGS FROM LUA return Save(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName)); } catch (Exception e) { Logging.WriteError("HunterBeastmasterSettings > Save(): " + e); return false; } } public static bool Load() { try { if (File.Exists(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName))) { CurrentSetting = Load<HunterBeastmasterSettings>(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName)); CurrentSetting.PushToLua(); // SETTINGS LOADED, MUST BE TRANSLATED TO LUA return true; } CurrentSetting = new HunterBeastmasterSettings(); } catch (Exception e) { Logging.WriteError("HunterBeastmasterSettings > Load(): " + e); } return false; } void FetchFromLua() { HuntersMark = Lua.LuaDoString<bool>("return HuntersMarkDisabled"); Lua.LuaDoString("print('Fetched Lua')"); } void PushToLua() { Lua.LuaDoString("HuntersMarkDisabled = " + HuntersMark.ToString().ToLower()); Lua.LuaDoString("print('Pushed Lua')"); } } Yet it is not printing anything nor is it saving. :/ If i open the options by clicking the cogwheel, it will print Pushed Lua, if i close the cogwheel it will print Fetched Lua This is what i'm trying to do with HunterBeastmasterSettings.CurrentSetting.Save()
  2. If i am running wManager.wManagerSetting.CurrentSetting.Save(); Nothing happens, but if i open and close the fightclass options, the save function is called. But i'd like to add wManager.wManagerSetting.CurrentSetting.Save(); to the fight class rotation, so it saves every so often instead of only when you open/close the options. :)
  3. This is made for both. :) I have used it a lot for both. :) This is why you can turn things on/off. :)
  4. [Serializable] public class HunterBeastmasterSettings : Settings { private bool _huntersmark = false; [Setting] [DefaultValue(false)] [Category("Settings")] [DisplayName("Hunter's Mark")] [Description("Use Hunter's Mark")] public bool HuntersMark { get { return _huntersmark; } set { _huntersmark = value; } } private HunterBeastmasterSettings() { ConfigWinForm(new System.Drawing.Point(400, 400), "HunterBeastmaster " + Translate.Get("Settings")); } public static HunterBeastmasterSettings CurrentSetting { get; set; } public bool Save() { try { CurrentSetting.FetchFromLua(); // LOAD SETTINGS FROM LUA return Save(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName)); } catch (Exception e) { Logging.WriteError("HunterBeastmasterSettings > Save(): " + e); return false; } } public static bool Load() { try { if (File.Exists(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName))) { CurrentSetting = Load<HunterBeastmasterSettings>(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName)); CurrentSetting.PushToLua(); // SETTINGS LOADED, MUST BE TRANSLATED TO LUA return true; } CurrentSetting = new HunterBeastmasterSettings(); } catch (Exception e) { Logging.WriteError("HunterBeastmasterSettings > Load(): " + e); } return false; } void FetchFromLua() { HuntersMark = Lua.LuaDoString<bool>("return HuntersMarkDisabled"); Lua.LuaDoString("print('Fetched Lua')"); } void PushToLua() { Lua.LuaDoString("HuntersMarkDisabled = " + HuntersMark.ToString().ToLower()); Lua.LuaDoString("print('Pushed Lua')"); } }
  5. @Droidz is there any way to save fightclass settings with C# as well? That's actually what i was trying to do. wManager.wManagerSetting.CurrentSetting.Save(); did not work, i'd like to save the fightclass settings with C#. Is that at all possible?
  6. Version 2.0.0

    245 downloads

    I AM CURRENTLY COMPLETELY REWRITING THIS! AND ALL MY OTHER TBC STUFF WITHIN THE NEXT DAYS THESE WILL BE REWRITTEN!!! This is my paid version of the TBC Mage Fire Wrobot Rotation It is highly advanced, and has an in-game interface, where you can control almost every aspect of the rotation. For support and suggestions please use: https://wrobot.eu/forums/forum/87-mage-fightclass-tbc/ It's party and raid friendly. (tested in kara) It can be used for leveling, but it is not recommended. It has very high AoE Damage due to the smart use of Flamestrike Purchase Links https://sellfy.com/p/THng/ Talents: It is based around the mana friendly, but still high dps spec: http://armory.twinstar.cz/talent-calc.php?cid=8&d=tbc&tal=2300050010000000000000050520201230333105312510030000000000000000000 Features The Paid version comes with some unique features like the in-game interface, /commands and more. This fightclass will save your settings between sessions, so if you set something example: Turn off Fire Blast Then next time you log on it will have saved that setting! Does not break Polymorph, and doesn't break drinking (Unless your mana is full) Optimized rotation for best dps Using these abilities can be turned off in the interface Single Target Abilities - Shoot Wand <- Will use wand if you are low on mana - Scorch <- Will use Scorch till you have 5 stacks (will refresh before it runs out) - Fireball <- Will use fireball if target has 5 scorch - Fire Blast <- Will use Fire Blast if either target has less then 1000 hp or if target has less then 20% hp (Molten Fury) AoE Abilities - Deagon's Breath <- Will use if 3 or more targets in front of you - Blast Wave <- Will use if 3 or more targets around you - Flamestrike (Rank 6) <- Will first apply rank 6 then rank 7 for 2x aura damage - Flamestrike (Rank 7) <- Will first apply rank 6 then rank 7 for 2x aura damage Armor Abilities - Molten Armor <- Will use if high mana (out of combat as well) - Mage Armor <- Will use if you are very low on mana and have no mana regen abilities. Mana Regeneration Abilities - Conjure Water (Rank 9) <- If you have the skill it will make sure you have water - Drink Water (Conjured) <- It will drink water when out of combat (this will not be interupted, unless full mana). - Conjure Mana Emerald <- Will always make sure you have mana emeralds - Use Mana Emerald <- Will use Mana Emerald if you are missing more mana than it gives. - Evocation <- Smart Evocation will use when mana is needed and only in combat. Cooldown Abilities - Combustion <- Will use combustion if target has Molten Fury and 5x Scorch stacks Buffing - Auto Buffing <- Smart auto buffing Will check party and do Arcane Intellect or Brilliance based on what is smartest. It will only do Brilliance if you have 5 or more mats for it in bag. (It will not auto buff group in raids, i can make it do that too if requested). - Buff Yourself - Buff Group - Buff Focus Dispelling - Remove Curse <- Will remove curse on you, group and focus Racial Abilities - Berserking <- Will only be able to use if you are a Troll, Has 3 modes Cooldown, Elite & Boss - Arcane Torrent <- Will only be able to use if you are a Blood Elf. Will only use if you are below 25% mana or have many enemies around you. Item Abilities - Trinket 1 - <- Will use your first trinket if it has a use ability, Has 3 modes Cooldown, Elite & Boss - Trinket 2 - <- Will use your second trinket if it has a use ability, Has 3 modes Cooldown, Elite & Boss Leveling Abilities Coming Soon Commands /statusframe <- shows/Hides the in-game interface /rotatoggle <- Toggles rota pause on/off. These commands can be bound in-game by making a macro and adding to an action bar. Coming Soon - Leveling Abilities Versions: FAQ In-game interface Always feel free to send me suggestions or bug reports via PM on WRobot Forum
  7. It does not, since it's made for the grinder, and not the quester. :)
  8. This one is specifically made for bow hunters, since it goes to town to buy ammo when you are out of ammo. (You also need to be Aldor). This requires flying mount. The other one you just linked, works with anything ground/flying. :) Edit: I would suggest not using mount while farming, because there are big crystals there, which you can get stuck on if you are on a big mount like kodo. Unfortunately at the time when i made that profile, you could not blacklist areas. Might have changed by now. :)
  9. The thing is that Vanilla hunter and TBC hunter is completely different, that's why i don't understand why any fightclass editor would make a vanilla + tbc fightclass, since it would never be good. However, i might look into doing Vanilla and/or wotlk fightclasses as well. When i get time for it. I'm in the middle of a moving project at the moment, so i don't have much time on my hand.
  10. I am sure you could use this to make the function in the fight class editor work with tbc @Droidz
  11. So buffs in tbc cast by someone else than me does not have a timer? Because if that is the case then you could easily make a function for it either by adding it to the UnitBuff table allready made by blizzard, or by making your own function. -- Unit Buff by me function UnitBuffMe(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffDuration ~= nil and buffName == GetSpellInfo(spellid) then return true end end return false end then you could use UnitBuffMe("target", spellid) then replace spellid by either spell name or spell id. (i'd suggest spell id for multiple client languages.) Example: -- Unit Buff by me function UnitBuffMe(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffDuration ~= nil and buffName == GetSpellInfo(spellid) then return true end end return false end if UnitBuffMe("target", 26981) == false then CastSpellByName(GetSpellInfo(26981), tar) end This would check if the target has the buff Rejuvenation cast by you, if not then it will apply it. :)
  12. It certainly has. :) Edit: I have also thoroughly tested version 1.2.2 now for days, without having any issues at all, so i will release 1.2.2 again soon. :)
  13. It does work, but the ui looks weird and it is not optimal. I will make wotlk maybe next week.
  14. And as promised i will add this to the next update, i'm in the middle of moving, so there won't be any updates this week. But i promise i will get to it. However i would suggest looking at plugins, i recall finding a plugin that does it for you. :) Edit:
  15. There has just been an update to WRobot: With a fix to lua memory leak, and path finding memory crash. I am pretty sure the lua memory leak is what caused your games to crash. I have ran a bot from level 1- 20 straight without ANY problems at all. so PLEASE update wrobot, and try again. And PLEASE report back.. I would love not to get my Fight Class comments soiled because of a bug in WRobot.
  16. Rolled back to 1.2.1 since more than 1 person have had problems with 1.2.2
  17. You need to use wrotation. And turn off movement control. :)
  18. Eat and drink is a general problem with WRobot, BUT i can make this a part of my fightclass, although it's a bit unorthodox. The resurrect does require a bit more work, because wrobot does not target dead targets, however. I can manually make the code for it, it will just take some time. In tbc, there are no such thing as roles, unfortunately. So i can't tell it to specificly thorns the tank. However, i can make it put thorns on focus. So if you have tank as focus, you get the same result. I will update all these things, and some of the things mentioned earlier. I am in the middle of a moving project, so i haven't got time to do any coding till next week.
  19. I didn't start out making it for leveling, it was a level 70 fightclass when i started out, only later did i add leveling support, but it does make a lot of sense, i will add it to the next update. :)
  20. Sounds really weird, i can guarantee you that the problem does not lie within the fightclass, I have people who has used it for level 1-70 and people using it at level 70, without any of the problems you are describing. If want me to, i can check it out on teamviewer, just PM me. :)
  21. The thing is, the "really obvious stutter" is only happening to you. Something must be set up wrong somewhere. Perhaps you have "Improve combat rotation speed" on under Advanced Settings? What level are you? What language is your client?
  22. Sorry for the general settings ofc. :) It's because I've made it so it updates some in-game lua variables every time it saves/loads. (It's so i don't have to make an addon with savedVariables to save my lua variables between sessions.) For my fightclass
×
×
  • Create New...