Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)


C# GetDistance (GameObject) && FarmAction

Recommended Posts

Hello everyone.


I want to make a GetDistance on my nearest object like in the tools :


Nearest GameObject informations:

Name: Vietérule (Entry: 2041 )
IsBlacklisted = False
CreatedBy = 0
DisplayId = 677
FlagsInt = 0
Flags = 0
Position = 4333,47 ; 3002,03 ; 124,227 ; "None"
Name = Vietérule
GetDistance = 108,2044 --> I want this one ^^

For me I use :


But for an object, i don't know how it's working.

Something like :

var distance = wManager.Wow.ObjectManager.WoWObject.GetDistance(ObjectID);

If someone know that ^^" (I'm beginner in C#) And the other question is : Which class can i use for use gathering ? I want By the distance active gathering the plant with this the nearest ID.

If u have the answers, i will love u forever !

Salmo ^^


Share this post

Link to post
Share on other sites

Someone know how to resolv this problem ?

Line :


Error on compliation pluggin :


My usings :

using System;
using System.ComponentModel;
using System.IO;
using robotManager;
using robotManager.Helpful;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using wManager.Events;
using wManager.Plugin;
using wManager.Wow;
using wManager.Wow.Bot.States;
using wManager.Wow.Bot.Tasks;
using wManager.Wow.Enums;
using wManager.Wow.Forms;
using wManager.Wow.Forms.ProfileMaker;


Share this post

Link to post
Share on other sites

Thank for this code, but when i want to put this code in pluggin, he don"t find :


or .Where, .position .GetDistance ...

Do u know how to implement this method in pluggins ?



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...