Jump to content

Ordush

Elite user
  • Posts

    1167
  • Joined

  • Last visited

Everything posted by Ordush

  1. So yeah, another problem. The CurrentSetting.PushToLua(); Overwrites the settings and sets everything to what default is, because it loads the settings before it does FetchFromLua. I tried doing try { if (File.Exists(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName))) { CurrentSetting = Load<HunterBeastmasterSettings>(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName)); if (Updateloaded) { CurrentSetting.PushToLua(); } return true; } CurrentSetting = new HunterBeastmasterSettings(); } catch (Exception e) { Logging.WriteError("HunterBeastmasterSettings > Load(): " + e); } return false; So it would first push the lua after it had loaded the settings, but that did not work. apparently i can't make an if there. Any help would be appreciated.
  2. I just went into the shower, while there i think i figured it out. If i write the code you see above, and then start my fight class with a c# code (using the editor) And i in that code write the following: if (Updateloaded != true) { Updateloaded = true FetchFromLua(); } Then it should update my variables before displaying/using them for the rest of the fight class right? Meaning that would be how i load them form last session? :)
  3. My C# Knowledge level is almost non existent, which is why i've written my fightclass in lua. This is also why i was asking if anyone knew of a way to do this with lua. :) Edit: When it comes to C# I can read examples and modify them for my needs.
  4. I hit a roadblock here It does change the setting if i click settings based on what i set HuntersMarkDisabled to in-game, but in-game doesn't change based on what it's set to in the settings (So it saves to settings, but doesn't load from settings) [Serializable] public class HunterBeastmasterSettings : Settings { [Setting] [DefaultValue(true)] [Category("Combat Spells - Hunter Abilities")] [DisplayName("Hunter's Mark Disabled")] [Description("Is Hunter's Mark Disabled?")] public bool HuntersMark { get; set; } [Setting] [DefaultValue(true)] [Category("Combat Spells - Hunter Abilities")] [DisplayName("Steady Shot")] [Description("Is Hunter's Mark Disabled?")] public bool SteadyShot { get; set; } public static HunterBeastmasterSettings CurrentSetting { get; set; } private HunterBeastmasterSettings() { } public bool Save() { try { 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)); } else { CurrentSetting = new HunterBeastmasterSettings { HuntersMark = false, SteadyShot = false, }; } CurrentSetting.PushToLua(); return true; } catch (Exception e) { Logging.WriteError("HunterBeastmasterSettings > Load(): " + e); } return false; } void PushToLua() { HuntersMark = Lua.LuaDoString<bool>("return HuntersMarkDisabled"); } void FetchFromLua() { Lua.LuaDoString("HuntersMarkDisabled = " + HuntersMark); } } I tried adding CurrentSetting.FetchFromLua(); to the "try" under load. Do i need to rewrite the load, like the save has been rewritten for it to work? :)
  5. Thank you for giving me a straight answer! It's very appreciated. If i understand you right, i should be able to set lua vars using C#. I am obviously not very good at C#. I will give it a try looking through the code that people used to make settings (the links you lastly provided). And see if i can figure out how to use that to set lua vars. That was all i asked for mate. Thanks
  6. And i appreciate any help i can get, but i don't understand why you have to be rude about it? Yes it took you 5 minutes to get how to use C# for saving/loading data/params. What i asked was if/how i can use lua to do it. The reason i ask for lua is because i write my fightclasses in lua not C#. Without any reason at all you keep telling me how much i suck at using google etc. I am not being aggressive, quite the opposite, i am being defensive because you keep being rude to me instead of just telling me: "I don't know if you can do it in lua".
  7. What is wrong with you? There is NO reason at all to be rude at all... Being arrogant and rude has no place in a public debate area. Clearly i can't seem to get where you want me to go, you could just point me directly to where you want me to go instead of making rude gestures and posting links to a "how to use google" site. I am not being rude to you in any way. Your behavior is so weird... If anyone asks a question on this forum and i know the answer, i will answer the question, and i will point to where people can find the help they need if i know where. Edit: In short: Can you just tell me weather robotManager.Helpful.Settings Can work with lua or not? If you don't know, that is fair enough.
  8. And i allrdy did google it before you linked the "how to google" guide.. If you click your own link you will see there are 6 links, and none of them has any info on how to use robotManager.Helpful.Settings
  9. No reason to be rude. I always search every bit of the internet before i begin asking quetions. I will try see if i can figure it out. Thanks.
  10. Can i do that combined with Lua? if so, would you explain it to me? Cheers!
  11. Yeah the problem here is exactly that it's cleared. The reason i was using an addon instead was because i want it to save my variables between game sessions. When you close the game and wrobot, from what i understand Var.SetVar and Var.GetVar clears and then we're back to default, thereby losing the saved data?
  12. So i've tested this out, and ofc. it works fine it remembers the variables i set. The problem is that it does actions based on those variables which are blocked by blizzard. So the first thing that happens when i do anything using those variables i have saved in my ToC (SavedVariables) blizzard blocks my addon. Is there not any way to save lua variables without using SavedVariables in-game? Since addons are also checked for secure usage.
  13. I have uploaded a new file, please try it and let me know. :)
  14. Yeah i know that it's using "interact with" that is what starts the auto shoot, what i wanted was for it to turn that off, i am not sure as to what you mean by IsAutoRepeatAction, can you explain pretty please? :) Edit: I could make a solution by doing isMove false as a condition for the stopattack since it has to stand still to auto shoot anyway, that just looks wacky.
  15. I mean, if i don't use the bot (stop it or pause it) it will not auto attack The bot is actively starting attack if you have an unfriendly target. :) But i will try with /stopattack thanks. Although it is a bit weird to spam /stopattack to prevent it from attacking, should be the other way around. :P Edit: Yeah that is not working, it will stutter and not be able to move because it will be spamming /stopattack.
  16. Hey all Anyone ever found out how to turn OFF hunter auto attack? I have a function that stops the rotation All my abilities has if RotaOn then canCast = "true" else canCast = "false" end as a lua condition. Works fine, no spells are cast. Problem is: It is still casting auto shoot. If i target a mob it will begin auto shooting it. I have tried giving the same condition to many things like Auto Shoot Attack auto Shoot None of them works. It seems to me as if the auto attack happens b4 the fight class, as in if i make an empty fight class it will still auto shoot.
  17. It's built for level 70, but the minimum level at the moment is the level you need to be to have all the abilities that it uses available. IF you want to use it at lower level you would have to turn off some abilities, this can be done manually on the free version. And on the paid version it can be done in-game. As soon as i'm done with my current projects, i will work on making all my profiles 1-70. :)
  18. That does sound weird, do you have all the abilities that it uses? If not that might be what is causing it.
  19. Version 1.0.0

    421 downloads

    Nether Scale farmer It will grind nether dragons for Nether Scales.
  20. Version 1.0.0

    435 downloads

    Cobra Scale farmer It will grind Serpents for Cobra Scales.
  21. Version 1.0.0

    96 downloads

    This is my Cobra Scale farmer. Requirements: You need to be hunter You need to be with Aldor You need to use bow You need to have flying mount It goes to Nagrand in the mountains where it farms Cobra Scales from serpents. What is so special about this? It's made for hunters. The way it works, is that it goes to Aldor vendor to buy arrows if it runs out of arrows. Just go to Aldors inn and start it, it will find it's way there. (remember to turn on flying) So this is more a grinder then it is a quester, but you need to load it with the questing product to run it,.
  22. Version 1.2.2a

    446 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 Druid Restoration 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/86-druid-fightclass-tbc/ It's party and raid friendly. (tested in kara) You can set up in-game via the interface if it should heal yourself, the group or even focus. This is smart for situations like if you end up having to only heal tank (focus) or you can even set it up to innervate focus (Another healer?) Purchase Links https://sellfy.com/p/IufQ/ Features The Paid version comes with some unique features like the in-game interface, /commands and more. Optimized rotation for best healing Using these abilities can be turned off in the interface Druid Combat Abilities - Regrowth <- Smart healing - Rejuvenation <- Smart healing - Lifebloom <- Smart healing - Swiftmend <- Smart healing - Instant Healing Touch <- Will use Nature's Swiftness and will re-apply treeform after cast Druid Misc Abilities - Tree of Life - Innervate <- Smart inervation - Abolish Poison - Remove Curse <- Will re-apply treeform after cast - Auto Buffing (1.1.0) <- Smart auto buffing Will check party and do MotW or GotW based on what is smartest. It iwll only do GotW if you have 5 more mats for it in bag. (It will not auto buff group in raids, i can make it do that too if requested). Druid Healing Spell Settings - Heal Yourself <- Decide if it heals self (smart if you are assigned only to tank) - Heal Group <- Decide if it heals group (smart if you are assigned only to tank) - Heal Focus <- Decide if it heals focus (smart if you are assigned only to tank) Druid Misc Spell Settings - Innervate Yourself <- Decide if it innervates self - Innervate Group <- Decide if it innervates group - Innervate Focus <- Decide if it innervates focus Druid Dispel Settings - Abolish Poison Yourself <- Decide if it Abolish Poison on self - Abolish Poison Group <- Decide if it Abolish Poison on group - Abolish Poison Focus <- Decide if it Abolish Poison on focus - Remove Curse Yourself <- Decide if it Remove Curse on self - Remove Curse Group <- Decide if it Remove Curse on group - Remove Curse Focus <- Decide if it Remove Curse on focus - Buff Yourself <- Decide if it buffs yourself - Buff Group <- Decide if it buffs party - Buff Fcous <- Decide if it buffs focus Focus Only Settings - Thorns <- Focus (tank) will keep Thorns on - Lifebloom Mode <- Focus (tank) lifebloom mode, can be changed from MIssing HP to Always. If it's on Always, then the healer will try to keep lifebloom on 3 stacks all the time on focus. 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 - Optional wow addon, which will save your settings, so if you changed your pet food or tuned off some spells. You will not have to set it every time you log on. Versions: 1.0.0 - Release 1.1.0 - Added Smart Auto Buffing (It now auto buffs if you enable it) 1.1.1 - Removed "Coming Soon" from Auto Buffing. 1.1.2 - Bug fixes (Rejuvenation spam) 1.2.0 - No longer tries to cast when in Bear Form, Cat Form or Travel Form - Casts Barkskin if hp is lower then 20% (This is not yet optional) - Fixed bug that would cast Lifebloom on target instead of focus. - No longer tries to cast spells with casttime while moving. - No longer casts tree form when you are casting something else (mount). 1.2.1 (Big update) - Barkskin is now optional - Thorns on focus added - Lifebloom mode for focus added (can now keep lifebloom on tank at all times) - Code cleaned up for more smooth experiance. - Changed so foucs (Tank) is prioritized first now. - Fixed buffing so it doesn't buff focus/group when auto buffing is off - Fixed Abolish Poison so it works properly now. 1.2.2 - Fixed Lifebloom, you ca now move and cast at the same time - Increased the general speed of the fightclass. 1.2.2a - Hotfix for Lifebloom, people have had issues. So rewrote the code. In-game Interface Always feel free to send me suggestions or bug reports via PM on WRobot Forum
  23. Hey yall Any way i can do (ObjectManager.Me.FocusObj.IsValid && ObjectManager.Me.FocusObj.HaveBuff("SPELLNAME")) just with "HaveBuffCastedByMe" Instead of HaveBuff? I mean if there is any function for it, what is it called? :)
  24. Is a great way to start, try googling site:wrobot.eu ban or avoid or something like that. :)
×
×
  • Create New...