MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned
Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > World of Warcraft > Bots and Programs > WoW Memory Editing
Reload this Page Regarding WOW Objects and identifying:
WoW Memory Editing WoW Memory Editing for learning purposes only.

Reply
 
LinkBack Thread Tools
Regarding WOW Objects and identifying:
(#1)
Old
ShoniShilent is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
ShoniShilent is an unknown quantity at this point
 
Posts: 43
Join Date: May 2008
Regarding WOW Objects and identifying: - 05-29-2008

thanks to the many good posts and feedback from forum members i have a working program that parses through the nearby units/objects. this is the beginnings of an automated program or bot like program. i still have some lingering questions:



how do i determine what the objects are? i am using the template given elsewhere in these forums:

enum eGameObjectFields {
OBJECT_FIELD_CREATED_BY=0x0,
GAMEOBJECT_DISPLAYID=0x8,
GAMEOBJECT_FLAGS=0xC,
GAMEOBJECT_ROTATION=0x10,
GAMEOBJECT_STATE=0x20,
GAMEOBJECT_POS_X=0x24,
GAMEOBJECT_POS_Y=0x28,
GAMEOBJECT_POS_Z=0x2C,
GAMEOBJECT_FACING=0x30,
GAMEOBJECT_DYN_FLAGS=0x34,
GAMEOBJECT_FACTION=0x38,
GAMEOBJECT_TYPE_ID=0x3C,
GAMEOBJECT_LEVEL=0x40,
GAMEOBJECT_ARTKIT=0x44,
GAMEOBJECT_ANIMPROGRESS=0x48,
GAMEOBJECT_PADDING=0x4C,
TOTAL_GAMEOBJECT_FIELDS=0x10
};


most notably:

GAMEOBJECT_DISPLAYID=0x8,

for instance, for copper it is decimal 310. for tin decimal 315. Is there a list of all this somewhere? Or maybe I can just use

GAMEOBJECT_TYPE_ID=0x3C,

which might indicate minerals?


i also need help with factions. I need a way to identify friend from foe. I already can detect if it's a player (hex 19) or just unit (hex 9) from

TYPE_OBJECT = $01;
TYPE_ITEM = $02;
TYPE_CONTAINER = $04;
TYPE_UNIT = $08;
TYPE_PLAYER = $10;
TYPE_GAMEOBJECT = $20;
TYPE_DYNAMICOBJECT = $40;
TYPE_CORPSE = $80;


i see that there is:

NIT_FIELD_FACTIONTEMPLATE=0x74,

but there are many different outputs for this, so is there a template I can go by to identify friendly vs enemy? basically i need a way to determine if the nearby unit can be attacked or not....



any help would be greatly appreciated.
Reply With Quote

Donate to remove ads.
(#2)
Old
Zombie911's Avatar
Zombie911 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 2
Zombie911 is an unknown quantity at this point
 
Posts: 12
Join Date: Mar 2008
Location: Russia, Moscow
05-29-2008

If you iterate at object list by structure like this:
Code:
struct TObject{
	DWORD dummy0;
	DWORD dummy2;
	DWORD UnitData;
	DWORD dummy3;
	DWORD count;
	DWORD ObjectType;
	DWORD dummy5;
	DWORD dummy6;
	DWORD dummy7;
	DWORD dummy8;
	DWORD dummy10;
	DWORD dummy11;
	__int64 GUID;
	DWORD dummy12;
	DWORD NextPtr;
};
ObjectType contain decimal object type like this:
1 - Item
2 - Container
3 - Mob
4 - Player
5 - Game object
6 - Dynamic object
7 - Corpse

Detailed info about type of object located if read next structure at address TObject.UnitData
For example i use structure like this:
Code:
struct TUnitData{				
	__int64 guid; 								
	DWORD type;	//8							 
	DWORD entry; 	//12							 
	float scale;	//16							 
	DWORD padding;	//20							 
	__int64 charm;		//24						 
	__int64 summon;		//32						 
	__int64 charmedBy;		//40					 
	__int64 summonedBy;		//48				 
	__int64 createdBy;		//56						 
	__int64 target;			//64				 
	__int64 persuaded;		//72						 
	__int64 channelObj;		//80			 
	DWORD health;			//88					 
	DWORD mana;				//92				 
	DWORD rage;				//96				 
	DWORD focus;			//100					 
	DWORD energy;			//104					 
	DWORD power5;			//108					 
	DWORD maxHealth;		//112					 
	DWORD maxMana;			//116					 
	DWORD maxRage;			//120					 
	DWORD maxPower3;		//124					 
	DWORD maxEnergy;		//128				 
	DWORD maxPower5;		//132					 
	DWORD level;			//136				 
	DWORD faction;			//140				 
	char bytes0[4];							 
	DWORD virtualItemSlotDisplay[3];			 
	char virtualItemInfo[24];					 
	DWORD flags;								 
	DWORD flags2;								 
	DWORD aura[56];							 
	char auraFlags[56];						 
	char auraLevels[56];						 
	DWORD auraState;							 
	DWORD baseAttackTime[2];					 
	DWORD rangedAttackTime;					 
	float boundingRadius;						 
	float combatReach;						 
	DWORD displayID;							 
	DWORD nativeDisplayID;						 
	DWORD mountDisplayID;						 
	float minDamage;							 
	float maxDamage;							 
	float minOffhandDamage;					 
	float maxOffhandDamage;					 
	char bytes1[4];							 
	DWORD petNumber;							 
	DWORD petNameTimestamp;					 
	DWORD petExperience;						 
	DWORD petNextLevelExp;						 
	DWORD dynamicFlags;						 
	DWORD channelSpell;						 
	float modCastSpeed;						 
	DWORD createdBySpell;						 
	DWORD npcFlags;							 
	DWORD npcEmoteState;						 
	int trainingPoints;						 
	DWORD str;									 
	DWORD agi;									 
	DWORD sta;									 
	DWORD int_;									 
	DWORD spi;									 
	DWORD gainStr;								 
	DWORD gainAgi;								 
	DWORD gainSta;								 
	DWORD gainInt;								 
	DWORD gainSpi;								 
	DWORD lossStr;								 
	DWORD lossAgi;								 
	DWORD lossSta;								 
	DWORD lossInt;								 
	DWORD lossSpi;								 
	DWORD resistances[7];						 
	DWORD gainResistances[7];					 
	DWORD lossResistances[7];					 
	DWORD baseMana;							 
	DWORD baseHealth;							 
	char bytes2[4];							 
	DWORD attackPower;							 
	int attackPowerMods;						 
	float attackPowerMultiplier;				 
	DWORD rangedAttackPower;					 
	int rangedAttackPowerMods;				 
	float rangedAttackPowerMultiplier;		 
	float minRangedDamage;					 
	float maxRangedDamage;					 
	DWORD powerCostModifer[7];					 
	DWORD powerCostMultiplier[7];				 
	__int64 duelArbiter;						 
	DWORD playerFlags;							 
	DWORD playerGuildID;						 
	DWORD playerGuildRank;						 
	char playerBytes[12];
};
Reply With Quote
(#3)
Old
ShoniShilent is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
ShoniShilent is an unknown quantity at this point
 
Posts: 43
Join Date: May 2008
05-29-2008

1 - Item
2 - Container
3 - Mob
4 - Player
5 - Game object
6 - Dynamic object
7 - Corpse



the above list will help. i had overlooked that table. so if the object is of type 3 then it can be attacked. do you know if things like goretusks (which don't attack unless they are attacked) would be classified as Mob?



that other template you listed doesn't help to differentiate things like Minerals from Chests, from Herbs, etc. or maybe i over looked something?

thanks for the posting. maybe you or someone else can help further?
Reply With Quote
(#4)
Old
KOS0937's Avatar
KOS0937 is Offline
Sergeant
Rep Power: 1
Reputation: 7
KOS0937 is an unknown quantity at this point
 
Posts: 64
Join Date: May 2008
05-30-2008

all npcs and mobs have the mob flag set. You will have to check the factiontemplate to know whether it's a friend of foe... I've created my own list so that my bot ignores critters and npcs when looking for a target, but it's _very_ incomplete...
If someone had a complete list of all 1800(???) factions i'dd be very thankful! Unfortunately the list in the server-emu forum is incorrect for the official servers 8[
My guess is, that this list is stored somewhere localy, but i have no idea where ^^
Reply With Quote
(#5)
Old
kynox's Avatar
kynox is Offline
Creator of the ME fix

Rep Power: 5
Reputation: 513
kynox is a glorious beacon of lightkynox is a glorious beacon of lightkynox is a glorious beacon of lightkynox is a glorious beacon of lightkynox is a glorious beacon of lightkynox is a glorious beacon of light
 
Posts: 238
Join Date: Dec 2006
Location: Raping your Stack
05-30-2008

Quote:
You will have to check the factiontemplate to know whether it's a friend of foe
Total crap, they have aggro flags >_>


Do not PM me about the ME fix or other ME questions
Reply With Quote
(#6)
Old
KOS0937's Avatar
KOS0937 is Offline
Sergeant
Rep Power: 1
Reputation: 7
KOS0937 is an unknown quantity at this point
 
Posts: 64
Join Date: May 2008
05-30-2008

they do? where? ^^
Reply With Quote
(#7)
Old
ShoniShilent is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
ShoniShilent is an unknown quantity at this point
 
Posts: 43
Join Date: May 2008
05-30-2008

Quote:
Originally Posted by kynox View Post
Total crap, they have aggro flags >_>
i've searched through the forums but i have not seen anything like that. i believe you are correct and this is what i am looking for. where is it located? which offset or how do i access that flag?


also, is the flag aggro, neutral, friendly or something like that?
Reply With Quote
Reply


Donate to remove ads.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On




Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318