Gillean 0 Posted July 27, 2017 Share Posted July 27, 2017 Hello! How can I use the Death Gate object in the quest profile? Link to comment https://wrobot.eu/forums/topic/6609-death-gate-of-dk/ Share on other sites More sharing options...
Droidz 2738 Posted July 27, 2017 Share Posted July 27, 2017 Hello, you can try to add gate in object at harvest (wManager.wManagerSetting.CurrentSetting.ListHarvest.Add(190942);) and use quest type "UseSpellOn" Link to comment https://wrobot.eu/forums/topic/6609-death-gate-of-dk/#findComment-29934 Share on other sites More sharing options...
camelot10 155 Posted July 27, 2017 Share Posted July 27, 2017 2 hours ago, Droidz said: Hello, you can try to add gate in object at harvest (wManager.wManagerSetting.CurrentSetting.ListHarvest.Add(190942);) and use quest type "UseSpellOn" dont do that. whe DK port in akerus then it will try to gather other DK gates and can stuck forever if your akerus have tons of dk Link to comment https://wrobot.eu/forums/topic/6609-death-gate-of-dk/#findComment-29942 Share on other sites More sharing options...
Droidz 2738 Posted July 27, 2017 Share Posted July 27, 2017 Ok, try to use quest type "OverridePulseCSharpCode" and use code like : new Spell("Death Gate", false).Launch(); Thread.Sleep(Usefuls.Latency + 500); if (ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(190942)).GetDistance < 10) wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(ObjectManager.Me.Position, 190942); return true; Link to comment https://wrobot.eu/forums/topic/6609-death-gate-of-dk/#findComment-29945 Share on other sites More sharing options...
Gillean 0 Posted July 27, 2017 Author Share Posted July 27, 2017 Quote new Spell("Death Gate", false).Launch(); Thread.Sleep(Usefuls.Latency + 500); if (ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(190942)).GetDistance < 10) wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(ObjectManager.Me.Position, 190942); return true; this does not work :-( Link to comment https://wrobot.eu/forums/topic/6609-death-gate-of-dk/#findComment-29952 Share on other sites More sharing options...
camelot10 155 Posted July 27, 2017 Share Posted July 27, 2017 var _deathKnightDeathGate = new Spell("Death Gate"); var _deathKnightDeathGateExitPosition = new Vector3(2359.64, -5662.41, 382.2605, "None"); if (me.WowClass == WoWClass.DeathKnight && _deathKnightDeathGate.KnownSpell)// && _deathKnightDeathGate.IsSpellUsable) { //akerus if (Usefuls.AreaId == 139) { var myPos = ObjectManager.Me.Position; if (myPos.DistanceTo(_deathKnightDeathGateExitPosition) < 5) { myPos = robotManager.Helpful.Math.GetRandomPointInCircle(myPos, 10); GoToTask.ToPosition(myPos); return true; } } SpellManager.CastSpellByNameLUA(_deathKnightDeathGate.NameInGame); Usefuls.WaitIsCasting(); Thread.Sleep(Others.Random(1000, 2000)); var gate = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(190942)); if (gate != null && gate.IsValid && gate.CreatedBy == ObjectManager.Me.Guid) { GoToTask.ToPositionAndIntecractWithGameObject(gate.Position, gate.Entry); //Death Gate } } if you dont understand this code, then leave it Matenia and BetterSister 1 1 Link to comment https://wrobot.eu/forums/topic/6609-death-gate-of-dk/#findComment-29973 Share on other sites More sharing options...
Gillean 0 Posted July 28, 2017 Author Share Posted July 28, 2017 Thanks guys! It turned out to combine the codes and make the working result :-) Link to comment https://wrobot.eu/forums/topic/6609-death-gate-of-dk/#findComment-30035 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