Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
namespace IDNLIB.Update
{
[Obfuscation(Feature = "renaming", ApplyToMembers = true)]
public class PublicPointers
{
//good
#region Globals enum
// good
/// <summary>
/// classic
/// </summary>
public enum Globals
{
PlayerName = 0x267D658, // good
Realm = 0x267CE88, // good
Account = 0x0000000, // just a filler offset
}
#endregion
//good
#region InGame enum
/// <summary>
/// classic
/// </summary>
public enum InGame
{
InGame = 0x259ECD8, // good
LoadingScreen = 0x226ABB0, // good
}
#endregion
}
internal class Pointers
{
//good
#region ActionBar & Macros enum
/// <summary>
/// classic
/// </summary>
public enum ActionBar
{
ActionBarFirstSlot = 0x25AAAE0, // good
ActionBarBonus = ActionBarFirstSlot + 0x240, // good
CurrentActionBar = 0x25AB134, // good
// Macro Actions Below
Next = 0x88, // good
Name = 0x30, // good
Icon = 0x60, //good
Body = 0x179, // good
MacroBase = 0x21DCDB8 , // good
nbGeneralMacros = 0x25AFE80, // good
nbSpecificMacros = 0x25AFE90, // good
}
#endregion
//good
#region PartyEnum enum
/// <summary>
/// classic
/// </summary>
public enum Party
{
NumOfPlayers = 0x178, //0x17C
NumOfPlayers_SuBGroup = 0x17C, // 0x178
PlayerGuid = 0x10, // good
IsInGroupHome = 0x25A8DB8, //good
IsInGroupInstance = 0x25A8DC0,//gppd
}
#endregion
//good
#region Battleground enum
/// <summary>
/// classic
/// </summary>
public enum Battleground
{
BattlegroundStartTickcount = 0x25A8F24,
Timestamp = 0x22BC2CC, // good
IsBattlegroundFinished = 0x25A91CC,
BattlegroundWinner = 0x25A91D0,
BattlegroundInfo = 0x21D9130,
UISelectedBattlegroundId = 0xb36704
}
#endregion
//good
#region AutoLoot enum
/// <summary>
/// classic
/// </summary>
public enum AutoLoot
{
Offset = 0x5C,
Pointer = 0x259E888, // good
}
#endregion
//good
#region AutoSelfCast enum
/// <summary>
/// classic
/// </summary>
public enum AutoSelfCast
{
Offset = 0x5C,
Pointer = 0x259E898, //good
}
#endregion
//good
#region ClickToMove enum
/// <summary>
/// classic
/// </summary>
public enum ClickToMove
{
Offset = 0x5C,
Pointer = 0x259E868, //good
}
#endregion
//gotta Recheck
#region CgUnitCGetCreatureRank enum
/// <summary>
/// classic
/// Reversed from CGUnit_C__GetCreatureRank
/// </summary>
public enum CgUnitCGetCreatureRank
{
Offset1 = 0x17B8,
Offset2 = 0x34,
}
#endregion
//gotta Recheck
#region CgUnitCGetCreatureType enum
/// <summary>
/// classic
/// reversed from CGUnit_C__GetCreatureType
/// </summary>
public enum CgUnitCGetCreatureType
{
Offset1 = 0x17B8,
Offset2 = 0x30,
}
#endregion
//good
#region CgWorldFrameGetActiveCamera enum
/// <summary>
/// classic
/// reversed from CGWorldFrame__GetActiveCamera
/// </summary>
public enum CgWorldFrameGetActiveCamera
{
CameraX = 0x8, // good
CameraY = 0xC, //good
CameraZ = 0x10, // good
CameraMatrix = 0x14, // good
CameraPointer = 0x259F7F8, // good
CameraOffset = 0x3330, // good
}
#endregion
// gotta do
#region Nested type: AutoAttack
/// <summary>
/// classic
/// reversed from CGActionBar__IsCurrentAction
/// </summary>
internal enum AutoAttack
{
AutoAttackFlag = 0xEE8, //Old Method
AutoAttackMask = 0xEEC, //Old Method
//Address seems to show the GUID of the Auto Attack target
AutoAttackGUID = 0xED8,
//Shows 0x06 when not wanding, 0x0C or 0x0E when wanding.
//Wanding = 0xEF8,
}
#endregion
// gotta do
#region Nested type: CastingInfo
/// <summary>
/// classic
/// </summary>
internal enum CastingInfo
{
IsCasting = 0xF98,
ChanneledCasting = 0xFB8,
}
#endregion
//good but recheck
#region Nested type: Chat
/// <summary>
/// classic
/// </summary>
internal enum Chat : uint
{
ChatStart = 0x256C830,// not used currently good tho
chatBufferPos = 0x256C82C, // used and good
OffsetToNextMsg = 0xCB8,
MsgSenderGuid = 0x00,
MsgSenderName = 0x034,
MsgFullMessage = 0x00E6,
MsgChatType = 0xCA0,
MsgChannelNum = 0xCA4,
MsgTimeStamp = 0xCB0,
ChatQueueDepth = 0x3C,
}
#endregion
//good
#region Nested type: SpellBook
/// <summary>
/// classic
/// </summary>
internal enum SpellBook : uint
{
SpellBookNumSpells = 0x259FAE0, //good
SpellBookSpellsPtr = 0x259FAE8, //good
}
#endregion
//good
#region BlueChat
/// <summary>
/// classic
/// </summary>
internal enum Messages
{
EventMessage = 0x259DB50 // good
}
#endregion
//good
#region Nested type: Container
/// <summary>
/// classic
/// </summary>
internal enum Container
{
EquippedBagGUID = 0x25ADA00 // good
}
#endregion
//good / gotta add but lazy factor
#region Nested type: Death Info
/// <summary>
/// classic
/// </summary>
internal enum Death
{
SpiritHealer_X = 0x0, // good
SpiritHealer_Y = 0x0, // good
SpiritHealer_Z = 0x0, // good
Corpse_X = 0x0, // good
Corpse_Y = 0x0, // good
Corpse_Z = 0x0, // good
}
#endregion
//good
#region Nested type: Globals
/// <summary>
/// classic
/// </summary>
internal enum Globals
{
RedMessage = 0x259DB50, // good,
MouseOverGUID = 0x259ECE0, // good
LootWindow = 0x25AE620, // good
ChatboxIsOpen = 0x22E17B4, // good
CursorType = 0x2636870, // good
CursorType2 = 0x2636874, // good
SelectedSpellId = 0x25BCF88,// good
CGGameUI__m_cursorItem = 0x259DAE0, // good
CGGameUI__m_cursorSpell = 0x259DAF0, //good
IsBobbing = 0x14C, // good
ArchFacing = 0x198, // good
ArchFacingOffset2 = 0x30, //good
}
#endregion
//gotta re check
#region Nested type: KeyBinding
/// <summary>
/// classic
/// </summary>
internal enum KeyBinding
{
NumKeyBindings = 0x25AC8F0, // good
First = 0x30, // good 10
Next = 0x48, //good 28
// Check These 2
Key = 0x80, //0x80
Command = 0x1C0, //1C0
}
#endregion
//good
#region Nested type: ObjectManager
/// <summary>
/// classic
/// </summary>
internal enum ObjectManager
{
CurMgrPointer = 0x237CB28,
LocalPlayerGUID = 0x267D640,
TargetGUID = 0x21D7840,
PetGUID = 0x25ADBEC,
StorageField = 0x10,
ObjectType = 0x20,
NextObject = 0x70,
FirstObject = 0x18,
LocalGUID = 0x58,
}
#endregion
//Good
#region Nested type: InCombat
/// <summary>
/// Script_UnitAffectingCombat
/// classic
/// Reversed from Lua_UnitAffectingCombat
/// v4 = v2 && (*(_DWORD *)(*(_DWORD *)(v2 + 284) + 316) >> 19) & 1;
/// </summary>
public enum InCombat
{
Mask = 19, //checked
Offset2 = 0x158, // checked
Offset1 = 0x188 // checked
}
#endregion
//good
#region Nested type: ShapeshiftForm
/// <summary>
/// classic Reversed from CGUnit_C__GetShapeshiftFormId
/// </summary>
internal enum ShapeshiftForm
{
BaseAddressOffset1 = 0x188, // good
BaseAddressOffset2 = 0x27B, // good
}
#endregion
//good
#region Nested type: SpellCooldown
/// <summary>
/// classic
/// </summary>
internal enum SpellCooldown : uint
{
CooldPown = 0x21C4800, // good
}
#endregion
//good
#region Nested type: PowerIndex
/// <summary>
/// classic Search for PowerTypePointer function in ida
/// </summary>
internal enum PowerIndex
{
PowerIndexArrays = 0x23233F0, // good
Multiplicator = 13 // good
}
#endregion
//good
#region Nested type: Swimming
/// <summary>
/// classic Lua_IsSwimming
/// </summary>
internal enum Swimming
{
Pointer = 0x198,
Offset = 0x58,
Mask = 0x100000,
}
#endregion
//good
#region IsFlying enum
/// <summary>
/// classic Lua_IsFlying
/// </summary>
public enum IsFlying
{
Pointer = 0x198,
Offset = 0x58,
Mask = 0x1000000
}
#endregion
//good
#region IsFalling enum
/// <summary>
/// classic Lua_IsFalling
/// </summary>
public enum IsFalling
{
Pointer = 0x198,
Offset = 0x58,
Mask = 0x1000000
}
#endregion
//gotta play with haven't cared yet did a blah fix for time
#region Nested type: UnitAuras
/// <summary>
/// reversed from CGUnit_C__GetAura
/// </summary>
internal enum UnitAuras : uint
{
AuraCount1 = 0x1AC8,
AuraCount2 = 0x1AD0,
AuraTable1 = 0x1AD0,
AuraTable2 = 0x1AC8,
AuraSize = 0x48,
AuraSpellId = 0x30,
AuraStack = 0x39,
TimeLeft = 0x40,
OwnerGUID = 0x20,
}
#endregion
//good
#region Nested type: UnitName
/// <summary>
/// classic
/// </summary>
internal enum UnitName : uint
{
ObjectName1 = 0x478, // good
ObjectName2 = 0xE0, // good
PlayerNameGUIDOffset = 0x20, // good
PlayerNameStringOffset = 0x31, // good
PlayerNameCachePointer = 0x1FA5B18, // good
UnitName1 = 0x17B8, // good
UnitName2 = 0xE0, // good
}
#endregion
//good
#region Nested type: UnitSpeed
/// <summary>
/// classic
/// </summary>
internal enum UnitSpeed
{
Pointer1 = 0x198, // good
Pointer2 = 164, // good
}
#endregion
//good
#region Nested type: WowObject
/// <summary>
/// classic
/// </summary>
internal enum WowObject
{
X = 0x1600, // good ?
Y = X + 0x4,
Z = X + 0x8,
RotationOffset = X + 0x10,
Pitch = X + 0x14,
GameObjectX = 0x1B0,
GameObjectY = GameObjectX + 0x4,
GameObjectZ = GameObjectX + 0x8,
GameObjectRotation = GameObjectX + 0x10,
}
#endregion
//good
#region Nested type: Zone
/// <summary>
/// classic
/// </summary>
internal enum Zone : uint
{
ZoneText = 0x259DAC0, // good
ZoneID = 0x259E70C, // good
GetSubZoneText = 0x259DAB0, //good
GetContinentID = 0x237CB28, // good
GetContinentIDOffset = 0x218,//good
}
#endregion
//good
#region Nested type: UiFrame
internal enum UiFrame
{
// These Two now Plus 8 not 4 for anyone trying to update UiFrame
//for (IntPtr i = Memory.Read<IntPtr>(num + (int)Pointers.UiFrame.FirstFrame); i != IntPtr.Zero; i = Memory.Read<IntPtr>((i + Memory.Read<int>(num + (int)Pointers.UiFrame.NextFrame)) + 8))
//for (IntPtr i = Memory.Read<IntPtr>(this.baseAddress + (int)Pointers.UiFrame.RegionsFirst); (i != IntPtr.Zero) && ((i.ToInt64() & 1) == 0); i = Memory.Read<IntPtr>((i + Memory.Read<int>(this.baseAddress + (int)Pointers.UiFrame.RegionsNext)) + 8))
ScrWidth = 0x1FA48AC, //good
ScrHeight = 0x1FA48B0, //good
FrameBase = 0x22BCD18, // good
CurrentFramePtr = 0x22BCD18, // good
//GetMouseFocus
CurrentFrameOffset = 0x1A0, // Good
FirstFrame = 0xCD0, // Good
NextFrame = 0xCC0, // Good
LastFrame = 0x0CC8, // idn they added a extra check ?? reminder to test this
RegionsFirst = 0x1A8, //Good
RegionsNext = 0x198, //Good
//CSimpleSlider_IsShown_1 // Script_IsVisible_class2
Visible = 0xC8, //good
Visible1 = 0xA, //good one function uses 9 other 0xA
Visible2 = 1, // good
// CSimpleSlider_GetText
LabelText = 0x188, //good
Name = 0x20, // good
FrameBottom = 0x90,
FrameLeft = 0x94,
FrameTop = 0x98,
FrameRight = 0x9C,
// CSimpleSlider_GetEffectiveScale
EffectiveScale = 0xC0,
//Script_SetParent
ParentFrame = 0xD0, // good
// no fing clue
IconNumber = 0xF0,
//CSimpleSlider_IsEnabled
ButtonEnabledPointer = 0x210, //Good
ButtonEnabledMask = 0xF, //Good
//CSimpleSlider_GetChecked
ButtonChecked = 0x268, //Good
EditBoxText = 0x238 , // old 0x210
}
#endregion
}
}