Jump to content

Quest Screecher Spirits problems


Arcangelo

Recommended Posts

Screecher Spirits (3520) in feralas

Its like splitting in 3 parts - and im not sure how to get around it.

first you have to kill the vale screecher 5307

then you have to use item Yeh'kinya's Bramble : 10699 on the dead cropse

then you have to talk to the spirit.

And you have to do that 3 times

Link to comment
Share on other sites

1 hour ago, camelot10 said:

C# coding

if sprit near talk to spirit and blacklist for 5min

if dead corpse near use item and blacklist for 5min

if mob near attack

else loop hotspots

Do you have an example code for this :-) ?

Link to comment
Share on other sites

		var corpse = wManager.Wow.ObjectManager.ObjectManager.GetObjectWoWUnit()
			.Where(u => u != null && u.IsValid && u.IsDead && u.Entry == <YOUR MOB ID> && !wManager.wManagerSetting.IsBlackListed(u.Guid) )
			.OrderBy(u => u.Position.GetDistance)
			.FirstOrDefault();

		if (corpse != null)
        {
			ItemsManager.UseItem(itemID);
			Usefuls.WaitIsCasting();
			Interact.InteractGameObject(corpse.GetBaseAddress);

          	//blacklist corpse
          	return true;
        }

corspse ^

mob

        var mob = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(mobs));
        if (mob != null && mob.IsAlive && mob.IsAttackable && mob.IsValid)
        {
            Interact.InteractGameObject(mob.GetBaseAddress);
            Fight.StartFight(mob.Guid);
            return true;
        }

npc

var npc = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(npcId));
if (npc != null && npc.IsValid && npc.IsAlive)
{
  if (GoToTask.ToPositionAndIntecractWithNpc(npc.position, npc.Entry, <GOSSIP NUMBER, MOSTLY 1>))
  {
  	//blacklist mob
  }
}

blacklist

wManager.wManagerSetting.AddBlackList(mobEntry.Guid, 5 * 60 * 1000); //5 min blacklist

move on loop

MovementManager.GoLoop(hotspots);

 

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