Jump to content

Lockem

Members
  • Posts

    17
  • Joined

  • Last visited

Recent Profile Visitors

1489 profile views

Lockem's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hey all, I've been working on a very customized fightclass with lots of custom movement and stuff... Long story short, all my code functions perfect when testing in WRotation with 'Manage Character Movement' off, but has weird quirks when using it with Quester (due to WRobot attempting to manage fight movement)... I've since explored ways of 'pausing' a fight (which semi-works), but it just causes other little quirks. Anyway, I just saw that Fight.FightStart() has a parameter to control whether or not the bot manages movement in fight. I had the idea to trigger my own FightStart (with no movement management) on OnFightStart, but that causes a loop. Any ideas how I could basically 'replace' the default FightStart with my own with the proper params? Thanks a lot.
  2. Since the last update I get an error when trying to run WRobot with Visual Studio open... Debugger Program Detected ! (HResult 0x04)
  3. So after some more research / tweaking I'm about 99.9% sure I've fixed my double Immolate problem for good... private bool ImmoCast; // Immolate if (!GcdActive && Immolate.KnownSpell && Immolate.IsSpellUsable && Immolate.IsDistanceGood && !ObjectManager.Me.IsCast && !ObjectManager.Target.HaveBuff("Immolate")) { ImmoCast = true; if (ImmoCast == true) { Immolate.Launch(true, false); Thread.Sleep(SpellManager.GetSpellCooldownTimeLeft(61304)); <-- This seemed to be the key part to fixing it. I originally had a 3500ms sleep... ImmoCast = false; that obviously caused other problems, this sleep if for the remaining GCD. } } This post was a good read... specifically the comments by @reapler
  4. Just wanted to give you guys an update... @Seminko Using the OnFightLoop for targeting worked perfectly! As for immolate being double cast, it seems to be a pretty common problem with heals and some spells with a cast time... The best solution I could find was adding a timer + delay to Immolate. If you can think of a better way of doing this I would love to know. Again, thanks for all the help!
  5. Thanks for your help guys! I'll put something together when I'm off work and let you know how it goes.
  6. This fixes the problem completely. Weird... thanks! Still curious why the problem occurred in the first place. Also, my target switching is a little 'jittery'... mind giving me an example of how OnFightLoop would work for target switching?
  7. UPDATE: I'm 95% sure this problem only occurs when the bot is fighting a single mob... I could fix it by doing a count and adding a separate single target dot rotation, but I'd rather not, and I'm curious as to why this is happening. For testing purposes I removed dotRotation() and just made the dots the only thing in my combat rotation. The problem still happens... It seriously seems like the bot is checking for immolate while immolate is being cast and so it "pre-casts" it. Things I've tried: tweaking latency in General Settings (I normally have 90ms) limiting my framerate to 64fps removing all sleeps adding sleeps adding a timer to immolate Where I'm calling CombatRotation() My new mult-dot code (I wanted to be able to use .Count) - The Immolate double cast still exists.
  8. Not exactly... it will make sure it actually puts immolate up, It's just that it always double casts it even if its on the target. It seems like its looping through dotRotation() while casting the immolate and it thinks it still needs immolate.
  9. Yes, it loops through all targets attacking me or my pet, applies all 3 dots to each of them and then moves on with the rotation. The problem is it always double casts Immolate... like this: Corruption > CoA > Immolate x2 > Switch targets > Corruption > CoA > Immolate x2 > Rest of rotation. Immolate.Launch() is how I'm casting.
  10. Having some problems with the below chunk of code... I'm trying to make a dot rotation that will tab between each target and apply my dots (This part works!). My problem is that no matter what I do it seems to want to double cast Immolate... I've tried adding a timer for it, !ObjectManager.Me.IsCast and various sleeps. I'm kind of a C# noob... so excuse any obvious mistakes. Thanks,
  11. What is the best way to find the distance between me and my pet? I've been combing through robotManager / wManager and can't seem to find a solution... Vector3.Distance(ObjectManager.Me.Position, ObjectManager.Pet.Position) >= 30 The above code doesn't seem to work :/ Thanks! EDIT: I'm stupid, please delete :)
  12. @Seminko Actually found your post about multi target rotations: This is exactly what I'm trying to do with my hunter FC... Just updating it a bit based on the function you linked above. Hope that's ok!
  13. I noticed the typo too, seems to be working :D
  14. Going to try it out now, thanks a lot!
  15. Like the title says... I'm working on a BM hunter fightclass. I'd like to find a way to make it prioritize low hp enemies when there are multiple aggro'd... I have no idea where to start though. Thanks,
×
×
  • Create New...