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

Iterating Archaeology Digsites

nanoseuss

New Member
Joined
Feb 9, 2011
Messages
34
Reaction score
0
Forgive me, I'm new to #C/VS/.NET/etc. I'm trying to figure out how to iterate the POIs to get a list of the currently available digsites on my continent.

Using the Object Browser, I've been able to figure out how to find list the POIs on the map:

Code:
            StyxWoW.Landmarks.Refresh();
            foreach (var landmark in StyxWoW.Landmarks.LandmarkList)
            {
                Log(landmark.ToString());
            }

With the map closed I get all the towns marked on the map, but no dig sites:

Code:
[Shovel Bum 0.0.0.1]: [Astranaar: ]: Entry: 42 NormalIcon:5 Location:<2720.43, -382.391, 107.1762> MapId:1 AreaId:331 Flags:525 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:5 MapX:0.3611083 MapY:0.507964
[Shovel Bum 0.0.0.1]: [Bathran's Haunt: ]: Entry: 1233 NormalIcon:7 Location:<3827.37, -161.305, -0.2599459> MapId:1 AreaId:413 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.3227696 MapY:0.2199795
[Shovel Bum 0.0.0.1]: [Blackwood Den: ]: Entry: 1048 NormalIcon:7 Location:<4619.42, 25.6126, 70.72946> MapId:1 AreaId:449 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.2903562 MapY:0.0139178
[Shovel Bum 0.0.0.1]: [Bloodtooth Camp: ]: Entry: 1244 NormalIcon:7 Location:<1612.52, -1465.1, 157.3423> MapId:1 AreaId:421 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.5488613 MapY:0.7962008
[Shovel Bum 0.0.0.1]: [Cragpool Lake: ]: Entry: 1228 NormalIcon:7 Location:<1543.57, 70.1338, 9.590005> MapId:1 AreaId:461 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.2826357 MapY:0.814139
[Shovel Bum 0.0.0.1]: [Demon Fall Canyon: ]: Entry: 1239 NormalIcon:7 Location:<1702.45, -3150.99, 93.81844> MapId:1 AreaId:434 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.8412122 MapY:0.7728043
[Shovel Bum 0.0.0.1]: [Falfarren River: ]: Entry: 1235 NormalIcon:7 Location:<2231.21, -2222.91, 100.1316> MapId:1 AreaId:428 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.6802734 MapY:0.6352408
[Shovel Bum 0.0.0.1]: [Forest Song: ]: Entry: 1238 NormalIcon:7 Location:<2880.33, -3287.54, 156.6196> MapId:1 AreaId:430 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.8648914 MapY:0.466364
[Shovel Bum 0.0.0.1]: [Greenpaw Village: ]: Entry: 1243 NormalIcon:7 Location:<2291.29, -1444.96, 88.18907> MapId:1 AreaId:421 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.5453688 MapY:0.6196102
[Shovel Bum 0.0.0.1]: [Hellscream's Watch: ]: Entry: 2597 NormalIcon:7 Location:<3015.771, -514.8507, 203.2966> MapId:1 AreaId:331 Flags:517 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.3840781 MapY:0.4311274
[Shovel Bum 0.0.0.1]: [Krom'gar Fortress: ]: Entry: 2616 NormalIcon:5 Location:<902.5382, 3.770833, 5.770988> MapId:1 AreaId:406 Flags:525 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:5 MapX:0.2941438 MapY:0.9809114
[Shovel Bum 0.0.0.1]: [Mor'shan Base Camp: ]: Entry: 1512 NormalIcon:7 Location:<1035.13, -2113.34, 123.0644> MapId:1 AreaId:1703 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.6612729 MapY:0.946416
[Shovel Bum 0.0.0.1]: [Nozzlepot's Outpost: ]: Entry: 2609 NormalIcon:7 Location:<1169.868, -3390.976, 91.75459> MapId:1 AreaId:17 Flags:517 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.8828282 MapY:0.9113622
[Shovel Bum 0.0.0.1]: [Silverwind Refuge: ]: Entry: 1242 NormalIcon:7 Location:<2130.27, -1190.25, 100.1401> MapId:1 AreaId:421 Flags:517 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.5011994 MapY:0.6615015
[Shovel Bum 0.0.0.1]: [Silverwing Grove: ]: Entry: 1513 NormalIcon:7 Location:<1462.48, -1858.93, 123.9839> MapId:1 AreaId:422 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.6171556 MapY:0.8352355
[Shovel Bum 0.0.0.1]: [Silverwing Outpost: ]: Entry: 1240 NormalIcon:7 Location:<1776.64, -2065.15, 104.5525> MapId:1 AreaId:422 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.6529162 MapY:0.7535028
[Shovel Bum 0.0.0.1]: [Splintertree Post: ]: Entry: 1471 NormalIcon:5 Location:<2286.41, -2564.67, 105.8841> MapId:1 AreaId:331 Flags:525 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:5 MapX:0.7395382 MapY:0.6208798
[Shovel Bum 0.0.0.1]: [Sun Rock Retreat: ]: Entry: 701 NormalIcon:7 Location:<936.308, 910.974, 104.5166> MapId:1 AreaId:406 Flags:517 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.1368253 MapY:0.9721258
[Shovel Bum 0.0.0.1]: [Talrendis Point: ]: Entry: 1215 NormalIcon:7 Location:<2707.72, -3869.25, 99.28104> MapId:1 AreaId:1235 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.965766 MapY:0.5112706
[Shovel Bum 0.0.0.1]: [Thal'darah Overlook: ]: Entry: 2619 NormalIcon:7 Location:<2127.559, 1592.045, 342.2927> MapId:1 AreaId:406 Flags:517 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.01872045 MapY:0.6622068
[Shovel Bum 0.0.0.1]: [The Dor'Danil Barrow Den: ]: Entry: 1241 NormalIcon:7 Location:<1776.23, -2678.36, 111.7438> MapId:1 AreaId:422 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.7592532 MapY:0.7536095
[Shovel Bum 0.0.0.1]: [The Ruins of Ordil'Aran: ]: Entry: 1232 NormalIcon:7 Location:<3493.89, -119.601, 0.9569011> MapId:1 AreaId:413 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.3155378 MapY:0.3067387
[Shovel Bum 0.0.0.1]: [The Talondeep Path: ]: Entry: 1230 NormalIcon:7 Location:<1531.94, -576.57, 69.47415> MapId:1 AreaId:461 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.3947809 MapY:0.8171647
[Shovel Bum 0.0.0.1]: [The Talondeep Path: ]: Entry: 1245 NormalIcon:7 Location:<1930.26, -732.677, 113.3009> MapId:1 AreaId:421 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.4218515 MapY:0.7135367
[Shovel Bum 0.0.0.1]: [Warsong Labor Camp: ]: Entry: 1268 NormalIcon:7 Location:<1575.91, -2463.94, 98.76015> MapId:1 AreaId:422 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.7220706 MapY:0.8057253
[Shovel Bum 0.0.0.1]: [Windshear Hold: ]: Entry: 2617 NormalIcon:5 Location:<1202.004, 443.184, 78.24982> MapId:1 AreaId:406 Flags:525 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:5 MapX:0.217945 MapY:0.9030018
[Shovel Bum 0.0.0.1]: [Windshear Mine: ]: Entry: 1229 NormalIcon:7 Location:<981.949, -358.9, 32.87554> MapId:1 AreaId:461 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.3570347 MapY:0.9602517
[Shovel Bum 0.0.0.1]: [Xavian: ]: Entry: 1237 NormalIcon:7 Location:<2936.56, -2822.67, 212.8604> MapId:1 AreaId:430 Flags:,  WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:7 MapX:0.784278 MapY:0.451735
[Shovel Bum 0.0.0.1]: [Zoram'gar Outpost: ]: Entry: 1234 NormalIcon:5 Location:<3362.22, 1010.16, 4.026918> MapId:1 AreaId:414 Flags:525 WorldState:0 ShowInBattleMap:True ShowInBg:False ShowInZone:True TextureIndex:5 MapX:0.1196254 MapY:0.3409943

With my map open to the continent, I get the same landmarks plus these 4:

Code:
[Shovel Bum 0.0.0.1]: [: ]: Entry: 335 NormalIcon:0 Location:<0, 0, 0> MapId:0 AreaId:0 Flags:0 WorldState:0 ShowInBattleMap:False ShowInBg:False ShowInZone:False TextureIndex:0 MapX:0.5183885 MapY:0.8305846
[Shovel Bum 0.0.0.1]: [: ]: Entry: 581 NormalIcon:0 Location:<0, 0, 0> MapId:0 AreaId:0 Flags:0 WorldState:0 ShowInBattleMap:False ShowInBg:False ShowInZone:False TextureIndex:0 MapX:0.4812416 MapY:0.8845116
[Shovel Bum 0.0.0.1]: [: ]: Entry: 191 NormalIcon:0 Location:<0, 0, 0> MapId:0 AreaId:0 Flags:0 WorldState:0 ShowInBattleMap:False ShowInBg:False ShowInZone:False TextureIndex:0 MapX:0.3859694 MapY:0.5407733
[Shovel Bum 0.0.0.1]: [: ]: Entry: 491 NormalIcon:0 Location:<0, 0, 0> MapId:0 AreaId:0 Flags:0 WorldState:0 ShowInBattleMap:False ShowInBg:False ShowInZone:False TextureIndex:0 MapX:0.4789318 MapY:0.9849062

I can assume they are my current digsites, but I'm not sure what to do with them. Importing the ArcheologyBuddy.dll doesn't give me much to work with, a list of ALL the digsites, with metadata, but nothing I can see that ties those digsites to the Entry field on my 4 mystery Landmarks.

I've looked at Styx.WoWInternals.WoWObjects.LocalPlayer.ResearchSiteIds, which _seems_ like it would be what I want, but it returns _7_ IDs... What is that?!

Code:
            foreach (var siteID in Me.ResearchSiteIds)
            {
                Log("Site ID: " + siteID);
            }


Code:
[Shovel Bum 0.0.0.1]: Site ID: 235
[Shovel Bum 0.0.0.1]: Site ID: 335
[Shovel Bum 0.0.0.1]: Site ID: 353
[Shovel Bum 0.0.0.1]: Site ID: 447
[Shovel Bum 0.0.0.1]: Site ID: 171
[Shovel Bum 0.0.0.1]: Site ID: 52738
[Shovel Bum 0.0.0.1]: Site ID: 1064

Any advice or guidance would be greatly appreciated.
 
Last edited:
Back
Top