Jump to content

Death Gate of DK


Gillean

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
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
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
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
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...