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!
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.
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
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.
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
so like this one: http://www.thebuddyforum.com/honorb...imports-data-routes-addon-exports-gb-gb2.html but with dynamic creation/use?
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.
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)
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
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
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
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.
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.
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.
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
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.
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