Register for your free account! | Forgot your password?

Go Back   elitepvpers > World of Warcraft > WoW Exploits, Hacks, Tools & Macros
You last visited: Today at 15:59

  • Please register to post and access all features, it's quick, easy and FREE!

WoWAPI - ObjectMgr [WoW][]

Old   #1
elite*gold: 0
Join Date: Mar 2008
Posts: 368
Received Thanks: 198
WoWAPI - ObjectMgr [WoW][]

Moin -

hier mal eine kleine API um die Objecte bei WoW auszulesen.
  • int GetFirstObject(unsigned int ProcID, sWoWObject* WoWObject);
  • int GetNextObject(unsigned int ProcID, sWoWObject* WoWObject);

ProcID => ProcessID von WoW
sWoWObject =>
	struct sWoWObject{
		unsigned long long Guid;
		unsigned long SummonedBy;
		float XPos;
		float YPos;
		float ZPos;
		float Rotation;
		unsigned int BaseAddress;
		unsigned int UnitFieldsAddress;
		short Type;
		unsigned int CurrentHealth;
		unsigned int MaxHealth;
		unsigned int CurrentEnergy; 
		unsigned int MaxEnergy;
		unsigned int CurrentEXP; 
		unsigned int MaxEXP;
		unsigned int Level;
		bool isDead;

Codebeispiel für C#:

    public class WoWAPI
        	public struct sWoWObject{
                [FieldOffset(0)] public ulong Guid;
                [FieldOffset(8)] public ulong SummonedBy;
                [FieldOffset(12)] public float XPos;
                [FieldOffset(16)] public float YPos;
                [FieldOffset(20)] public float ZPos;
                [FieldOffset(24)] public float Rotation;
                [FieldOffset(28)] public uint BaseAddress;
                [FieldOffset(32)] public uint UnitFieldsAddress;
                [FieldOffset(36)] public short Type;
                [FieldOffset(40)] public uint CurrentHealth;
                [FieldOffset(44)] public uint MaxHealth;
                [FieldOffset(48)] public uint CurrentEnergy;
                [FieldOffset(52)] public uint MaxEnergy;
                [FieldOffset(56)] public uint CurrentEXP;
                [FieldOffset(60)] public uint MaxEXP;
                [FieldOffset(64)] public uint Level;
                [FieldOffset(68)] public bool isDead;
            public static extern int GetFirstObject(IntPtr ProcID, ref sWoWObject Test);
            public static extern int GetNextObject(IntPtr ProcID, ref sWoWObject Test);
Viel Spaß beim testen
Attached Files
File Type: zip (3.8 KB, 46 views)

Valvepro is offline  

« Männliche Charakter auf zeit Weiblich werden lassen :) | Auction House Monitor »

Similar Threads
Lazybot RE-Evolution für
07/28/2017 - WoW Bots - 23 Replies

All times are GMT +1. The time now is 15:59.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.