Register for your free account! | Forgot your password?

You last visited: Today at 11:33

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

Advertisement



Cheat Engine Mob HP Values

Discussion on Cheat Engine Mob HP Values within the PW Hacks, Bots, Cheats, Exploits forum part of the Perfect World category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 58
Received Thanks: 7
Cheat Engine Mob HP Values

I've always used Cheat Engine to find Max HP/HP values for mobs in PWI, but lately it hasn't been working. Basically my targeting system uses those values to make sure the mob isn't being attacked. If anyone knows if there's a new way to determine those values, please post.

Thanks!
zerosmoke is offline  
Old 11/08/2011, 21:19   #2
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
Get targeted mob info by hashing or looking up target ID in mob array.
Sᴡoosh is offline  
Old 11/08/2011, 21:32   #3
 
elite*gold: 0
Join Date: Feb 2010
Posts: 58
Received Thanks: 7
I've re-checked the values and I've found the addresses, but PWE has taken out the values and created a random numeral generator in its place, which is absolutely useless.

By mob array you mean reading the Mob ID and verifying it's hp values that way?
zerosmoke is offline  
Old 11/08/2011, 21:34   #4
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
What you are finding are probably pointers, no random numbers. I never did it this way and cannot tell what they changed, but your better of anyway by looping through mob struct.

Cheers
Sᴡoosh is offline  
Old 11/08/2011, 21:40   #5
 
elite*gold: 0
Join Date: Feb 2010
Posts: 58
Received Thanks: 7
Ok, I'll show you how I did it from square 1. I open up PWI client and log in. I find a mob and target it. Then I open Cheat Engine and attach to elementclient.exe. I do a quick search (exact value, 4 bytes) for the mob's hp, usually 4 digits, i.e. 1979. (Usually have client unfreezed for this) When I get search results, I go back to client and retarget to a mob with different hp than I just searched. I go back to CE and do a 'next scan' with the new hp value. That gives me HP/Max HP values addresses which I then convert to decimal for my targeting system.

Is it clearer now?
zerosmoke is offline  
Old 11/08/2011, 21:41   #6
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
Yeah I understood from the beginning on how you searched for the dynamic addresses - but what I do not understand is how you can have so much patience and do this every time you restart PW

I would have ****** that approach the 2. time - im a lazy ***
Sᴡoosh is offline  
Old 11/08/2011, 22:05   #7
 
elite*gold: 0
Join Date: Feb 2010
Posts: 58
Received Thanks: 7
Quote:
Originally Posted by Sᴡoosh View Post
Yeah I understood from the beginning on how you searched for the dynamic addresses - but what I do not understand is how you can have so much patience and do this every time you restart PW

I would have fucked that approach the 2. time - im a lazy ass
I don't reboot my client often, my software is pretty stable and never causes a crash. It usually took me less than 2 minutes to reconfigure my config file when I launch the client with the mob hp values.

Yeah, here's something interesting, I tried searching for the hp values again, and when I killed all the mobs the hp values went to 3204448256 and 3206869842 and stayed at those values. Some flash games use *8 on the values so I divided my results by 8 and got some decimal addresses that could be in the range of the hp values... but it's all guesswork. I'd really rather not use mob ID's for targeting, been there, done that, doesn't work well. All I want my targeting system to do is tell me if the mob has full hp or not, by comparing it with its max hp. I don't want a system that only targets specific mobs.

Quote:
Originally Posted by Sᴡoosh View Post
Yeah I understood from the beginning on how you searched for the dynamic addresses - but what I do not understand is how you can have so much patience and do this every time you restart PW

I would have fucked that approach the 2. time - im a lazy ass
Does your software use dynamic addresses for hp values?
zerosmoke is offline  
Old 11/08/2011, 22:19   #8
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
Mine scans mob struct for target ID and if it finds a match, it returns mob HP. It actually works very straight forward and clean, never had a problem with it.

My client does not crash either, it's just that I cannot let it run too long, as I need to save power

Cheers
Sᴡoosh is offline  
Old 11/08/2011, 22:35   #9
 
elite*gold: 0
Join Date: Feb 2010
Posts: 58
Received Thanks: 7
Quote:
Originally Posted by Sᴡoosh View Post
Mine scans mob struct for target ID and if it finds a match, it returns mob HP. It actually works very straight forward and clean, never had a problem with it.

My client does not crash either, it's just that I cannot let it run too long, as I need to save power

Cheers
Meh, I don't have the time to figure out how I'd need to modify mine to work like that. Back to pixelsearch for me.

Cheers
zerosmoke is offline  
Old 11/08/2011, 23:09   #10
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
Alright, good luck
Sᴡoosh is offline  
Old 11/09/2011, 09:54   #11
 
elite*gold: 10
Join Date: Sep 2010
Posts: 400
Received Thanks: 234
I would have thought pixel searching was more of a PITA than using the mob struct, to be honest.
What language are you using? (I'd assume AutoIt or AHK if you're doing pixel searching?).
dumbfck is offline  
Old 11/09/2011, 15:25   #12
 
elite*gold: 0
Join Date: Feb 2010
Posts: 58
Received Thanks: 7
Quote:
Originally Posted by dumbfck View Post
I would have thought pixel searching was more of a PITA than using the mob struct, to be honest.
What language are you using? (I'd assume AutoIt or AHK if you're doing pixel searching?).
Yeah, it's written in Autoit, loosely based off MHS, but I've edited the code to add more features and add little tweaks such as email/sms notification if the bot dies, use of genie to prevent leveling, auto-log in case of genie being full of exp, chat detection and auto-random-reply, etc etc etc.

Basically my code has gone from:

Global $CFG_BASEADDRESSTARHP_KEY = "Base_AddressTARHP"
Global $CFG_BASEADDRESSTARMAXHP_KEY = "Base_AddressTARMAXHP"

Func CheckTarHP()
$TarMAXHP = _MemoryRead($APP_BASE_ADDRESSTARMAXHP, $PROCESS_INFORMATION)
$TTarHP = _MemoryRead($APP_BASE_ADDRESSTARHP, $PROCESS_INFORMATION)
$TARGET_STATE = _MemoryPointerRead($APP_BASE_ADDRESS, $PROCESS_INFORMATION, $OFFSET_AT)
$TarHP = $TTarHP
$TARHP_PERC = $TarHP / $TarMAXHP * 100
EndFunc

...
(targeting code)
ControlSend($APP_TITLE,"","","{tab}")
Sleep(1500)
$TarMAXHP = _MemoryRead($APP_BASE_ADDRESSTARMAXHP, $PROCESS_INFORMATION)
Sleep(1500)
CheckTarHP()
Sleep(1500)
If $TarHP = $TarMAXHP Then
KillTarget()
Else
Sleep(1500)
TargetMob()
EndIf
...

to this:

ControlSend($APP_TITLE,"","","{tab}")
Sleep(1500)
Sleep(1500)
$coord = PixelSearch(308, 452, 332, 468, 0xCA2712)
If Not @error Then
KillTarget()
Else
Sleep(1500)
TargetMob()
EndIf

...I simply put the mob hp/info bar down in a specific place when I launch the client so it reads the top/end part of the hp bar looking for the last color. Works fairly fast too. If the mob has even been hit a little bit it knows and won't attack. I would rather compare hp values, but since I need the client window in focus for my hunting/relocation/chat detection feature to work, it's not like it matters as far as that goes.
zerosmoke is offline  
Old 11/09/2011, 15:36   #13
 
elite*gold: 10
Join Date: Sep 2010
Posts: 400
Received Thanks: 234
I'll write a proper post when I get home later. The mob struct is really quite simple, so I'll knock something up in AutoIt.

Also, someone here wrote a thread about which can be used without having the client window focused
dumbfck is offline  
Old 11/09/2011, 19:43   #14
 
elite*gold: 0
Join Date: May 2010
Posts: 220
Received Thanks: 203
the best is, u take a look on prophet bots source code.
theres all u need inside, like targeting, mob hp and much more.
for genie exp, use interest07 packet to fill genie with exp.

if this board was moderated, a lot info not get lost.
im on it, but reaction of epvp is such slow...remember me on pwi support
amineurin is offline  
Old 11/09/2011, 23:47   #15
 
elite*gold: 10
Join Date: Sep 2010
Posts: 400
Received Thanks: 234
Oh yeah - Nearly forgot :P

I still hate AutoIt, so my code probably isn't by any means written nicely lol - but anyway, here's a simple demo for reading mob info using the mob struct. I made it a fully runnable script so you can play with it / inspect it if you feel the need.

I originally tried to not bother rescanning for the NPC / Mob index if the target ID hadn't changed, but then I forgot that if a new mob pops up, or you move in range of more mobs / NPCs the index can change as the hashtable is completely rebuilt - So unfortunately you do have to scan through the full list each time (well - you break the loop when you find it) so it probably can't get any more efficient in that respect. I believe this doesn't happen in the unordered NPC / mob list, but for that one you have to potentially scan up to 768 values to find it. That's probably more efficient in the long run, but meh :P

I was hoping that the AutoIt debugger amineurin recently showed me might make AutoIt less painful, but it's pretty horrendous xD. Oh well, thanks anyway ami ^^

One day when I can be arsed, I might compile a thread of all the little snippets of code for things like mob / npc / people lists along with how to find them. We'll see lol

Anyway, here's the code:
dumbfck is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[TuT]Cheat Engine new values method
03/19/2014 - S4 League Hacks, Bots, Cheats & Exploits - 167 Replies
-------------------------------------------------- ----------------------------------Introduction---- -------------------------------------------------- -------------------------------------------- As you might have seen, the new codes don't work. The manifestation: You change the correct code, and when you click to see the weapon, the string table pops up like OMFG. The cause: If you change a code and go back to the server, then log in, when it attempts to get your character details...
Cheat Engine regular Values
02/15/2010 - Metin2 - 0 Replies
Hallo leute, ich bin recht neu hier. Ich habe eine Frage an die Programmierer von dem/den Multihack/s . Und zwar möchte ich wie ihr auch die Values mit CheatEngine rausbekommen die sich nicht immer ändern ... Und nochmal so neben bei, mit welcher Sprache programmiert ihr die Hacks? Ich glaube jetzt mal nicht VB.Net ... mfg asd132.
hello Cheat Engine values
03/28/2009 - Metin2 - 0 Replies
Hello sorry my language is english ; Please give me number cod (values) to Cheat engine metin2 to BOOK aura
Cheat Engine Values rausfinden
07/12/2008 - Metin2 - 1 Replies
Ich suche Values für bestimmte Waffenefekte für ein paar Sreenshots. Wie bekommt man Values eig. raus :confused: Nur durch probieren is ja wohl n bissel langwierig



All times are GMT +1. The time now is 11:36.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.