In the latest export, Blizzard is still using:
Code:
elseif ( event == "UNIT_POWER_BAR_HIDE" ) then |
Quote:
|
Got my invite yesterday too. Eager to test my addons against the beta. Hopefully not all of them are bricked?! >_<
|
My Vignette addon stopped working. The event VIGNETTE_ADDED is nowhere to be found. Is there a new system for rare mob icons on the minimap? If so how can it be accessed?
Lua Code:
|
Quote:
C_VignetteInfo.GetVignetteInfo(vignetteGUID) returns a table containing name and other stuff |
Thanks that worked. I cannot find a replacement for the icon though. I had to disable the icon for now. The name is working fine but I seem to not find any information on the texture.
|
Quote:
Code:
Name = "VignetteInfo", |
Thanks. The missing link was GetAtlasInfo() which is not described anywhere.
It is working now. Lua Code:
Btw here is sth I found in the Blizzard_TutorialLogic.lua. It is a atlas to string texture converter if I see that right. It might be able to upgrade my current solution. Lua Code:
Nice that actually was helpful. Instead of the texture path hard coded you can use the texture file id instead. Got it working now. |
C_Map api in BfA
Updated 2nd May
Code:
api C_Map list |
RegisterUnitEvent is still bugged.
Frame:RegisterUnitEvent(event, unit) behaves as if Frame:RegisterEvent(event) was called - it register the event for all units. Submitted this, but since it was reported a month ago, maybe this needs a push |
UNIT_SPELLCAST_SUCCEEDED changes
The UNIT_SPELLCAST_SUCCEEDED event now returns 3 values:
1. unit 2. code string - see below for an example 3. spell id Teleport Dalaran (Northrend) resulted in the following 1. player 2. Cast-3-2084-571-11759-53140-000503097C 3. 53140 Portal Dalaran (Northrend) resulted in the following 1. player 2. Cast-3-2084-571-11759-53142-0000830AEF 3. 53142 After doing a few tests only the last two values changed, the spell ID depending on the spell cast and the last value intermittently and may be the same on different spells cast close together so could be a timestamp of sorts. Edit: Correction, it appears that last value changes per cast, with multiples sometimes appearing on a single button click. Looks like validating argument 2 against the previous to confirm if it is a repeat or not may be required Edit2: Correction again ... forgot that my code was doing the event test on several buttons with each checking its relevance rofl. Only 1 event per spell cast |
Quote:
Try this instead: Code:
GameTooltip:AddLine(IsHarmfulSpell(spellName) and "Harmful",1.0,1.0,1.0) |
You are right of course .. can't think what I was doing there... but seeing as it was more the case of testing the results of the function and avoiding a nil it might explain the results I mentioned rofl. Thanks for pointing it out, in case someone decided to use it :)
|
Yeah, I didn't think of it as a mere test for whether the function is present or not - though the thread title does imply that... lol
Still, getting "Helpful" as the result for a spell known as harmful being tested against IsHarmfulSpell might mean either that the function were present but bugged or that the function weren't there at all. Then again, the later case would also raise a Lua error, thus alerting you to the function being amiss, so... Well, at least, like you said, it might prevent false results "in case someone decided to use" the code. :D |
RegisterUnitEvent is fixed :banana:
GetFramesRegisteredForEvent is completely broken and always returns nil :( Edit: GetFramesRegisteredForEvent fixed aswell. |
Does anyone know how to get the Map IDs in BfA? The "/dump GetCurrentMapAreaID()" doesn't seem to work anymore.
|
Take a look a little up ...
Quote:
|
I found that I'm just noob enough to convert it into a working script. :p Would you elaborate please?
Code:
/run print(C_Map.GetCurrentMapID()) I heard somewhere the map ID for Tiragarde Sound is supposed to be 895. And when doing Code:
/run for k, v in pairs(C_Map.GetMapInfo(895)) do print(k, v) end Code:
mapType 3 Is there a way to get information about those map IDs? |
The various sites do not use the new mapIds that the new Blizzard API returns. If you need to be able to use a value from in game and refer to values various sites use, you will have to come up with a mapping for them, and have your addon use that mapping.
Using the new Blizzard map API you can get access to every map in the system very easily. However, mapping those to external sites is not easy. I would advise everyone to use the new Blizzard mapIDs for all maps. |
That number might be a reference to the map image they display on their website.
It may not have an in game api equivalent if it was retrieved via data mining. Maybe contact wowhead to see where they get their numbers from ( they may have generated their own set of numbers for their site after all). Using the various available map functions I haven't seen any number remotely similar. However, I can't remember what zone related functions are available pre BFA. Maybe the old zone IDs match the ones on the website but the new ones are just followed on to make the site consistent due to the big map api change. Edit ... Or as Nimh says :) |
All times are GMT -6. The time now is 04:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI