• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • How to get the Map ID and Continent ID using the name...

    Discussion in 'Archives' started by zooly, Nov 30, 2011.

    1. zooly

      zooly New Member

      Joined:
      Jul 27, 2010
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      1
      Greetings,

      I am new to honorbuddy development. I am messing with my first plugin, but I am having some issues.

      I am trying to get a MapID using map name my bot is currently located.

      Then I want to get the Continent ID using the retrieved MapID.

      I need to know both ids.

      Could someone please point me to the light?

      Thanks!
       
      Last edited: Nov 30, 2011
    2. no1knowsy

      no1knowsy Well-Known Member

      Joined:
      Feb 28, 2010
      Messages:
      3,927
      Likes Received:
      57
      Trophy Points:
      48
      To get the mapId you can just do "uint OldMapId = Me.MapId;"

      The ContinentId is actually the MapId. Tooltip in Visual Studio shows "returns the current continent id" for MapId.
       
    3. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      theres no way to pull it directly from the game. if you wanted to pull current location name, you could try pulling it from the minimap name.

      ether way heres a link to a post with a table of all the ID's and Names
      MapID Table
       
    4. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Me.MapId returns the continent ID that the bot is currently on. Note you might get unexpected results in some areas, for example Azuremyst Isle belongs to the Outlands continent
      Me.ZoneId is the MapID that the bot is currently in.
      If you think these properties have confusing names than I would agree with you.
       
    5. zooly

      zooly New Member

      Joined:
      Jul 27, 2010
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      1
      Thanks for the responses. I am going to attempt to create an addon that will interface the Routes plugin in WoW with the gatherbuddy2 bot.

      My preliminary brainstorming ideas:

      1. The user will create their routes using the Routes addon in WoW.
      2. Based on the map the bot is currently located the UI will display a list of routes created inside the Routes Addon from WoW.
      3. The user will choose a route using my UI, a profile will be created dynamically, the bot will be started and begin following the route and gathering.
      4. You will be able to save or export a routes profile as a HB or GB profiles.

      I do have a bunch of ideas for this but I am in the very early brainstorming phase. If you guys have any idea or suggestion please post here. I make no promises this plugin or bot will ever make the light of day. I am quite busy in real life so this would be strictly done during my spare time which is minimal at this time.

      Just a little background about my skills; I've been working with Microsoft.Net since version 1.0 using C# and I am a software developer during my day job. So I've been writing code for a long time.

      Thanks again for the help!

      Zooly
       
      Last edited: Dec 1, 2011
    6. no1knowsy

      no1knowsy Well-Known Member

      Joined:
      Feb 28, 2010
      Messages:
      3,927
      Likes Received:
      57
      Trophy Points:
      48
    7. zooly

      zooly New Member

      Joined:
      Jul 27, 2010
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      1
      Yes, and that is the plugin that gave me the idea. That plugin did not work for me it was giving me a null ref errors trying to get the mapid and continentid. I did fix the code locally to resolve that error.
       
    8. Apoc

      Apoc Moderator Staff Member Moderator

      Joined:
      Jan 16, 2010
      Messages:
      2,790
      Likes Received:
      94
      Trophy Points:
      48
      The names are not confusing, that's exactly what they're called in WoW's API. People have just flipped the meaning of them to something else.

      A "Map" is a full continent.
      A "Zone" is any area within that "Map". (Zones are multi-layered, and can have infinite parents)
       
    9. Nuok

      Nuok Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      975
      Likes Received:
      28
      Trophy Points:
      28
      I think its because people confuse it with the minimap as the zone and map being what they can see when pressing m;

      WoWHead is your friend here just search the zone name http://www.wowhead.com/zones
      although i use singular to dump it using your button for profile writting :)
       
      Last edited: Dec 4, 2011
    10. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      It's my understanding that a 'Map' in WoW is a collective name that refers maps of continents,zones,cities, dungeons etc, basically anything that is shown in the Worldmap.
      For example the lua function "SetMapByID(id)" allows the user to pass an id of a zone,continent,city or any map id that can be displayed in the world map.
      Most (if not all) lua functions that deal directly with continents have the name 'Continent' appended, e.g. GetMapContinents()
      On 2nd thought Me.ZoneId is fitting but I still think Me.MapId could have been better named considering a Map id can refer to other areas besides continents. e.g. ContinentID might be a proper name :)
       
    11. Kickazz006

      Kickazz006 Well-Known Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      20,567
      Likes Received:
      302
      Trophy Points:
      83
      maps:

      0 - ek
      1 - kalimdor
      530 - bc
      571 - LK

      those are the main 'maps'

      now - they already told you how to get them, but this is just for anyone else curious :)
       
    12. Apoc

      Apoc Moderator Staff Member Moderator

      Joined:
      Jan 16, 2010
      Messages:
      2,790
      Likes Received:
      94
      Trophy Points:
      48
      Keep in mind, Lua stuff is aimed for addon developers, who never really need to access the "innards" of WoW itself. Anything "minimap" in "in-game map" (such as the "m" button map) have API labeled similarly just to make it easier for addon developers. We are not addon developers. You will need to commit the difference in namings to memory. (No, we won't be changing it, as that's what it actually is. We don't rely on Lua method naming for our naming. We rely on the client itself.)

      Map.dbc (which contains the names/IDs for continents/instances/etc) will NOT contain zones. (This is where we got "MapId" from) On top of this, Blizzard themselves reference "continents" as "maps" when loading terrain data, etc. They only ever reference "zones" or "areas" when dealing with the in-game world-map or minimap.

      There is another DBC, which I can't remember off-hand right now, that stores all the "areas" or "zones". I'll wrap this sort of stuff later tonight, and show you some mock API usage.
       
    13. no1knowsy

      no1knowsy Well-Known Member

      Joined:
      Feb 28, 2010
      Messages:
      3,927
      Likes Received:
      57
      Trophy Points:
      48
      Hey Apoc...
      Any ideas for the creation of scheduling like Arelog has, for my BManager plugin?

      A website link would be best instead of you explaining every little thing to my nubness. :)
       
    14. KingBoo

      KingBoo New Member

      Joined:
      Dec 5, 2011
      Messages:
      23
      Likes Received:
      0
      Trophy Points:
      0
      There seem to be alot of the properties that has some confusing names.

      But after this i think i understand it better. Thanks for the insight.
       
      Last edited: Dec 7, 2011
    15. Thumped

      Thumped New Member

      Joined:
      Nov 1, 2010
      Messages:
      266
      Likes Received:
      3
      Trophy Points:
      0
      I am trying to make a profile that will use the Portals in the Western Earthenshrine, I can't find the UseGameObject Id for the 5 portals...would some one point me in the right direction?

      Portals to Mount Hyjal, Vashj'ir, Deepholm, Uldum and Twilight Highlands in Orgrimmar...

      Thanks
       
    16. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      there are developer tools built into hb that will allow you to find the objects.Entry # or just use wowhead, im sure its there too. just make sure your looking for the Object not the spell. there is a diffrence.
       
    17. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Thanks for the clarification. So basically what the lua methods refer to as a map ID is basically an area ID under the hood. I believe it's the WorldMapArea.dbc that store all the area info stuff. Makes sense now.

      I have a radar plugin that shows game objects and you can right-click on them and copy their IDs too.
      http://www.thebuddyforum.com/honorb...r-see-every-all-surrounding-objects-game.html
       
      Last edited: Dec 9, 2011

    Share This Page