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 Help Please - GameObject?
WoW Memory Editing WoW Memory Editing for learning purposes only.

Reply
 
LinkBack Thread Tools
Help Please - GameObject?
(#1)
Old
unknwon is Offline
Sergeant
Rep Power: 1
Reputation: 13
unknwon is on a distinguished road
 
Posts: 37
Join Date: Nov 2007
Help Please - GameObject? - 06-12-2008

ok, having problems getting mining nodes(Game Objects) to work with my radar problem.

For player/mobs, i read the WowObject.UnitData, and i use the unitdata to return values from UnitObject. This works fine, for players and mobs.

The same process doesn`t for mining or object nodes(chairs,chest...), i have tried using the following.

read wowObject.type if it`s 5 than read WowObject.unitdata, and use it against GameObject to get values, but all these values seem wrong. I`ve also tried using every WowOBject.(1-17), not one returns a usable value.

Should gameobjects have a X, Y, Z value as shown in the GameObjects Struct.


Has anyone got gameobjects working??
Reply With Quote

Donate to remove ads.
(#2)
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
06-12-2008

the following is my code and it's not like any code you probably have ever seen but hopefully it will help you along.


Code:
; -------------------------
;- GetObjectsData:
; -------------------------


GetObjectsData:

Gosub GetPlayerData

TotalMobs=0
TotalGameObjects=0

a=ReadProcessMemory_(app,,buffer,4,Null)
MobAddress=PeekL(buffer)


breakiftoomany = 0

Repeat



a=MobAddress + $3c
a=ReadProcessMemory_(app,a,buffer,4,Null)
b1=PeekL(buffer)
;Debug Hex(b1)

a=MobAddress +$28
a=ReadProcessMemory_(app,a,buffer,4,Null)
b2=PeekL(buffer)
;Debug Hex(b2)





MobAddress = b1

;Debug MobAddress

a=MobAddress +$14
a=ReadProcessMemory_(app,a,buffer,4,Null)
ObjectType=PeekL(buffer)
;Debug ObjectType

If (ObjectType >2 And ObjectType <5) Or objecttype =7
TotalMobs=TotalMobs+1

;Debug TotalMobs

;Debug ObjectType

Mobs(TotalMobs)type=ObjectType

YAddress=MobAddress+
XAddress=MobAddress+
ZAddress=MobAddress+




result = ReadProcessMemory_(app,XAddress,buffer,4,Null)
Mobs(TotalMobs)x=PeekF(buffer)
result = ReadProcessMemory_(app,YAddress,buffer,4,Null)
Mobs(TotalMobs)y=PeekF(buffer)
result = ReadProcessMemory_(app,ZAddress,buffer,4,Null)
Mobs(TotalMobs)z=PeekF(buffer)


;Debug StrF(Mobs(TotalMobs)x)

a=MobAddress +$8
a=ReadProcessMemory_(app,a,buffer,4,Null)
Level=PeekL(buffer)+$70+$18
Lootable=PeekL(buffer)+$278+$18
Faction=PeekL(buffer)+$74+$18
Skinnable=PeekL(buffer)++$18
Health=PeekL(buffer)+$40+$18
Friendly=PeekL(buffer)+
QuestGiver=PeekL(buffer)+$288+$18

nameaddress1=MobAddress+
result = ReadProcessMemory_(app,nameaddress1,buffer,4,Null)
nameaddress2=PeekL(buffer)+$40
result = ReadProcessMemory_(app,nameaddress2,buffer,4,Null)
nameaddress3=PeekL(buffer)
result = ReadProcessMemory_(app,nameaddress3,buffer,40,Null)
Mobs(TotalMobs)name=PeekS(buffer)
;Debug testinfo$
 ; test for minions?

result = ReadProcessMemory_(app,MobAddress+$8,buffer,4,Null)
address.l=PeekL(buffer)
result = ReadProcessMemory_(app,address,buffer,8,Null)
Mobs(TotalMobs)MobGUID.q=PeekQ(buffer)
;Debug "GUID-" + Hex(Mobs(TotalMobs)MobGUID)
result = ReadProcessMemory_(app,address+64,buffer,8,Null)
Mobs(TotalMobs)MobTarget=PeekQ(buffer)
;Debug Hex(Mobs(TotalMobs)MobTarget)

Mobs(TotalMobs)AttackingPlayer=0
If Mobs(TotalMobs)MobTarget = PlayerGUID 

Mobs(TotalMobs)AttackingPlayer=1

EndIf


a=ReadProcessMemory_(app,Level,buffer,4,Null)
Mobs(TotalMobs)level=PeekL(buffer)
;Debug Mobs(TotalMobs)level


a=ReadProcessMemory_(app,Lootable,buffer,4,Null)
Mobs(TotalMobs)lootable=PeekL(buffer)
;Debug Mobs(TotalMobs)lootable

a=ReadProcessMemory_(app,Faction,buffer,4,Null)
Mobs(TotalMobs)faction=PeekL(buffer)
;Debug Mobs(TotalMobs)faction

a=ReadProcessMemory_(app,Skinnable,buffer,4,Null)
Mobs(TotalMobs)skinnable=PeekL(buffer)


;Debug Hex(Mobs(TotalMobs)skinnable)

a=ReadProcessMemory_(app,Health,buffer,4,Null)
Mobs(TotalMobs)health=PeekL(buffer)
;Debug Hex(Mobs(TotalMobs)skinnable)

a=ReadProcessMemory_(app,testinfo,buffer,4,Null)
Mobs(TotalMobs)testinfo=PeekL(buffer)
;Debug Hex(testinfo)

a=ReadProcessMemory_(app,Friendly,buffer,4,Null)
Mobs(TotalMobs)friendly=PeekL(buffer)
;Debug Hex(testinfo)

a=ReadProcessMemory_(app,QuestGiver,buffer,4,Null)
Mobs(TotalMobs)QuestGiver=PeekL(buffer)
;Debug Hex(testinfo)

Mobs(TotalMobs)distance=Sqr((Pow((PlayerXpos-Mobs(TotalMobs)x),2))+(Pow((PlayerYpos-Mobs(TotalMobs)y),2)))

EndIf

If ObjectType = 5
TotalGameObjects=TotalGameObjects+1

a=MobAddress +$8
a=ReadProcessMemory_(app,a,buffer,4,Null)
YAddress=PeekL(buffer)+$24+$18
XAddress=PeekL(buffer)+$28+$18
ZAddress=PeekL(buffer)+$2c+$18
MineralAddress=PeekL(buffer)+$8+$18
result = ReadProcessMemory_(app,XAddress,buffer,4,Null)
GameObjects(TotalGameObjects)x=PeekF(buffer)
result = ReadProcessMemory_(app,YAddress,buffer,4,Null)
GameObjects(TotalGameObjects)y=PeekF(buffer)
result = ReadProcessMemory_(app,ZAddress,buffer,4,Null)
GameObjects(TotalGameObjects)z=PeekF(buffer)
result = ReadProcessMemory_(app,MineralAddress,buffer,4,Null)
GameObjects(TotalGameObjects)type=PeekL(buffer)
;Debug GameObjects(TotalGameObjects)type
GameObjects(TotalGameObjects)distance=Sqr((Pow((PlayerXpos-GameObjects(TotalGameObjects)x),2))+(Pow((PlayerYpos-GameObjects(TotalGameObjects)y),2)))

nameaddress1=MobAddress+
result = ReadProcessMemory_(app,nameaddress1,buffer,4,Null)
nameaddress2=PeekL(buffer)+$40
result = ReadProcessMemory_(app,nameaddress2,buffer,4,Null)
nameaddress3=PeekL(buffer)
result = ReadProcessMemory_(app,nameaddress3,buffer,40,Null)
GameObjects(TotalGameObjects)name=PeekS(buffer)
;Debug GameObjects(TotalGameObjects)name

result = ReadProcessMemory_(app,MobAddress+$8,buffer,4,Null)
address.l=PeekL(buffer)
result = ReadProcessMemory_(app,address,buffer,8,Null)
GameObjects(TotalGameObjects)ObjectGUID.q=PeekQ(buffer)

EndIf

If b1 <> b2 Or breakiftoomany > 1000

  ;Debug TotalMobs
  ;Debug TotalGameObjects
  breakiftoomany = 0
  Return

EndIf


breakiftoomany=breakiftoomany+1


ForEver 

Last edited by ShoniShilent; 06-17-2008 at 12:09 PM.
Reply With Quote
(#3)
Old
unknwon is Offline
Sergeant
Rep Power: 1
Reputation: 13
unknwon is on a distinguished road
 
Posts: 37
Join Date: Nov 2007
06-12-2008

Yes, in a way it did help, i at least had the x,y,z values to compare against what i was seeing.

by the way, you code seems to be missing the first pointer for the name of a gameobject. could you supply that value?

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.
Search Engine Optimization by vBSEO 3.2.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 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343