Arceheology menu

Shout-Out

User Tag List

Thread: Arceheology

Results 1 to 4 of 4
  1. #1
    Vid's Avatar Member
    Reputation
    10
    Join Date
    May 2008
    Posts
    59
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arceheology

    Does anyone know how to read the coords of the zones/area where you use archaeology. For example the addon archy sends those coords to the addon tomtom, what shows you the direction and distance to that place. So it must be possible to get a list of coords of all archy possible zones
    I need a hint what i need to look for
    Thank you
    ps: can a mod change the title in archaeology
    Last edited by Vid; 01-03-2011 at 05:28 PM. Reason: my fail^^

    Arceheology
  2. #2
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Vid View Post
    Does anyone know how to read the coords of the zones/area where you use archaeology. For example the addon archy sends those coords to the addon tomtom, what shows you the direction and distance to that place. So it must be possible to get a list of coords of all archy possible zones
    I need a hint what i need to look for
    Thank you
    ps: can a mod change the title in archeology
    You have the Archy addon source... why not take a look at it?

    And it's archaeology.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  3. #3
    ab7a96's Avatar Private
    Reputation
    1
    Join Date
    Oct 2010
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    local t = {};
    SetMapToCurrentZone();
    SetMapZoom(GetCurrentMapContinent());
    table.insert(t, GetCurrentMapAreaID());
    for i=1, GetNumMapLandmarks() do
       name, _, textureIndex, x, y = GetMapLandmarkInfo(i);
       if (textureIndex == 177) then
           table.insert(t, name);
           table.insert(t, x);
           table.insert(t, y);
       end
    end
    return unpack(t);

  4. #4
    abdula123's Avatar Sergeant
    Reputation
    14
    Join Date
    Feb 2010
    Posts
    46
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    to get all digsites you must read all records from ResearchSite_dbc (and related tables).

    there is my working code (for example), that read a countours of active digsites.

    Code:
    def get_active_digsites_pois():
        player = GetUnitByKeyword("player")
        sites = player.getArcheologySites()
    
        cur_continent_id = GetMapID()
    
        need_poi = []
        for site_id in sites:
            rec = ResearchSite_dbc.getRecord(site_id)
            if rec:
                rec_site_id, continent_id, poi_id, name, icon_id = rec
                assert rec_site_id == site_id
                if continent_id == cur_continent_id:
                    print "research site:", site_id, continent_id, poi_id, name, icon_id
                    need_poi.append(poi_id)
    
        return need_poi
    
    
    all_questpoi = {}
    
    def get_digsite_contours(need_poi):
        global all_questpoi
    
        if not all_questpoi:
            for i in range(QuestPOIPoint_dbc.hdr.minIndex, QuestPOIPoint_dbc.hdr.maxIndex):
                rec = QuestPOIPoint_dbc.getRecord(i)
                if rec:
                    point_id, x, y, poi_id = rec
    
                    if poi_id not in all_questpoi:
                        all_questpoi[poi_id] = []
    
                    all_questpoi[poi_id].append((x, y))
    
    
        contours = []
    
        for poi_id in need_poi:
            if poi_id not in all_questpoi:
                continue
    
            points = all_questpoi[poi_id]
            contours.append(list(points))
    
        #print need_poi, contours
        return contours
    
    
    def get_active_digsites():
        res = []
        for contour in get_digsite_contours(get_active_digsites_pois()):
            res.append(Polygon.Polygon(contour))
        return res

All times are GMT -5. The time now is 01:25 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search