Stranger 0 Posted November 2, 2018 Share Posted November 2, 2018 Hello, Is there a healing option in the Battlegrounder? Ive seen old threads and saw it would be implented. But i cant find how to set it up. Link to comment https://wrobot.eu/forums/topic/10341-healing-in-bg/ Share on other sites More sharing options...
Matenia 629 Posted November 2, 2018 Share Posted November 2, 2018 (edited) It was never implemented. You can write your own healing fightclasses in C# that will heal friends. If you want to follow friends around in combat I suggest using C# code similar to this: public void Initialize() { FightEvents.OnFightLoop += FightEventsOnOnFightLoop; FightEvents.OnFightStart += FightEventsOnOnFightStart; Rotation(); } private void FightEventsOnOnFightStart(WoWUnit unit, CancelEventArgs cancelable) { if (!ObjectManager.GetObjectWoWPlayer() .Any(p => p.IsAlive && p.Reaction == Reaction.Friendly && p.Position.DistanceTo(unit.Position) <= 30) && !Me.HaveAnyDebuff("Idle", "Inactive")) { BlackList(unit); cancelable.Cancel = true; RunToHealTarget(); } } private void BlackList(WoWUnit unit, uint seconds = 15) { wManagerSetting.AddBlackList(unit.Guid, (int) (seconds * 1000), true); ObjectManager.BlackListObjectManagerGuid.Add(unit.Guid); new Thread(() => { Thread.Sleep((int) (seconds * 1000)); ObjectManager.BlackListObjectManagerGuid.Remove(unit.Guid); }).Start(); } private bool RunToHealTarget() { WoWUnit healTarget = ObjectManager.GetObjectWoWUnit() .Where(o => o.Guid != Me.Guid && o.IsAlive && o.Reaction == Reaction.Friendly && o.HealthPercent <= 80 && o.Type == WoWObjectType.Player && o.GetDistance <= 75) .OrderBy(o => o.GetDistance) .FirstOrDefault(); if (healTarget != null && healTarget.GetDistance > 10 && !Me.IsCast) { Logging.WriteFight("healing target found - chasing it to heal"); Me.Target = healTarget.Guid; if (GoToTask.ToPosition(healTarget.Position, 10f, false, context => Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && Me.HealthPercent > 55)) { MovementManager.StopMoveTo(false, 1500); return true; } } return false; } private void FightEventsOnOnFightLoop(WoWUnit unit, CancelEventArgs cancelable) { //No friend to heal in range! WoWUnit friendInRange = ObjectManager.GetObjectWoWPlayer() .Where(p => p.Guid != Me.Guid && p.IsAlive && p.Reaction == Reaction.Friendly && p.HealthPercent <= 80 && p.GetDistance <= 35 && !TraceLine.TraceLineGo(p.Position)) .OrderBy(p => p.GetDistance) .FirstOrDefault(); if (friendInRange == null) { if (RunToHealTarget()) { cancelable.Cancel = true; } } else { if (friendInRange?.GetDistance > 30 && !Me.IsCast) { Logging.WriteFight("Running closer to heal target"); MovementManager.MoveTo(friendInRange); Thread.Sleep(2500); } MovementManager.StopMoveTo(false, 1000); } } For a resto shaman (vanilla) example fightclass, you can check out the source code here: Edited November 2, 2018 by Matenia eLucious 1 Link to comment https://wrobot.eu/forums/topic/10341-healing-in-bg/#findComment-49069 Share on other sites More sharing options...
0xbadbac0n 0 Posted October 20, 2020 Share Posted October 20, 2020 @DroidzIs the source code of the battlegrounder product somewhere public? I would like to adjust it, to work with healers ? Link to comment https://wrobot.eu/forums/topic/10341-healing-in-bg/#findComment-60282 Share on other sites More sharing options...
TheSmokie 242 Posted October 20, 2020 Share Posted October 20, 2020 Even tho I’d love to see the battleground code also, healing is part of fightclass, not the product Link to comment https://wrobot.eu/forums/topic/10341-healing-in-bg/#findComment-60283 Share on other sites More sharing options...
0xbadbac0n 0 Posted October 22, 2020 Share Posted October 22, 2020 Well my fightclass behaves different in bg then in party mode. In the bg, it tries to melee always enemies, althought it has only heal spells defined ^^ Thats why I assume there is a different Link to comment https://wrobot.eu/forums/topic/10341-healing-in-bg/#findComment-60293 Share on other sites More sharing options...
Matenia 629 Posted October 22, 2020 Share Posted October 22, 2020 Battlegrounder uses the GrindingBG and FightBG class. Decompile to see what they do. Replace GriningBG with your own state if you must. And adjust your fightclass range, then it won't try to melee people as a caster... Link to comment https://wrobot.eu/forums/topic/10341-healing-in-bg/#findComment-60294 Share on other sites More sharing options...
0xbadbac0n 0 Posted October 22, 2020 Share Posted October 22, 2020 O will try, thanks. : ) Isuallyh the fightclass has no issues, only in the bg Link to comment https://wrobot.eu/forums/topic/10341-healing-in-bg/#findComment-60303 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now