Jump to content

Recommended Posts

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

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

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

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

Link to comment
https://wrobot.eu/forums/topic/6609-death-gate-of-dk/#findComment-29973
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...