What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Item in Zone

LordManzana

New Member
Joined
May 2, 2015
Messages
207
Hello!

Any way to get list of certain items between certain dist? Or, at least, specify max dist to check?

I mean with:

Code:
foreach (DoodadObject item in getDoodads())
            {
                if (!doodsId.Contains(item.id) && IsSafeForRadar(item))
                {
                    ...
                }
            }

I asking for something like:
Code:
foreach (DoodadObject item in getDoodads(Zone zone))

Or at least:
Code:
foreach (DoodadObject item in getDoodads(double dist))

Thanks!
 
You can't change the distance of getDoodads, but if you know what doodad(s) you're looking for, you can use getNearestDoodad(). You can also sort the list of creatures returned from getDoodads() from the nearest to farthest like this:
var doodList = getDoodads();
doodList.Sort((a,b) => a.dist(me).CompareTo(b.dist(me)));

I have plugins that uses getDoodads() 4 times per second and are always on. I don't think it matters much. Its not querying the ArcheAge servers for the list of doodads, its Just checking whats already loaded in your computers ram.
 
Back
Top