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

[HB API] Raid / DungeonDifficulty

Stormchasing

Community Developer
Joined
Jan 15, 2011
Messages
4,029
Reaction score
46
Hi,

i've found some HB Api to replace a LUA-Code
PHP:
var intDiff = Lua.GetReturnVal<int>("return GetInstanceDifficulty()", 0); 
                switch (intDiff)
                {
                    case 0:
                        //some stupid hero code
                        break;
                    case 1:
                        //some stupid normalmode code
                        break;
                }

could be replaced with (i think so)
PHP:
                var tMapDiff = new Styx.WoWInternals.DBC.LfgDungeons(Me.MapId);
                switch (tMapDiff.Difficulty)
                {
                    case 0:
                        //some stupid hero code
                        break;
                    case 1:
                        //some stupid normalmode code
                        break;
                }

The Question is if the MapId is the correct Value or do I need to use something different.
I need to differentiate between Heroic and Normalmode in Dragon Soul for dispelling and some other situations where i need to change the healing to keep my mates alive.
Does The MapId change if the Mode is changed between normal and heroic?
Is DBC.LfgDungeons the correct Type or does Styx.WoWInternals.DBC.MapDifficulty(Me.MapId) give me the value I need?
Do they support Dragon Soul or only 5m Dungeons?
 
Back
Top