Jump to content

Trying to use portal


Ruinit

Recommended Posts

I followed the portal example but  I can't seem to get it to work. I have checked the vectors and the objectid. This prints to log can anyone see what I did wrong or is it broken?

[D] 17:06:42 - [Quester] While[77] (ObjectManager.Me.Position.DistanceTo2D(new Vector3(-14470.6f, 468.559f, -30.71972f)) <10) | Result: True
[D] 17:06:42 - [Quester] RunCode[78]: var position = new Vector3(-14470.6f, 468.559f, -30.71972f);
int objEntryId = 49637;

if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(position, objEntryId))
{
    System.Threading.Thread.Sleep(1500);
}

Link to comment
Share on other sites

Hello, do you have "EndWhile" step? And are your sure that it is not "(ObjectManager.Me.Position.DistanceTo2D(new Vector3(-14470.6f, 468.559f, -30.71972f)) > 10)"

 

EDIT: In "while" step you need to put position where the portal teleport your character (not the portal position)

Link to comment
Share on other sites

2 hours ago, Droidz said:

Hello, do you have "EndWhile" step? And are your sure that it is not "(ObjectManager.Me.Position.DistanceTo2D(new Vector3(-14470.6f, 468.559f, -30.71972f)) > 10)"

 

EDIT: In "while" step you need to put position where the portal teleport your character (not the portal position)

Yes I had endwhile but no the instructions in your portal example doesn't say put in position where the portal takes me lol I will try that and see if I can get it to work thank you for the help.

Link to comment
Share on other sites

Nevermind I did some digging and I guess it wouldn't work because the portal is considered a npc. For anyone else I just made a quest and did interactwithnpc and it takes portal

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