autoIt + cheat Engine

12/14/2015 03:12 p3rm3l0mga#1
I'm in a game Priston Tale 2
using cheat engine and WEP pro
cheatengine managed to find the real life character models
enter the char that always gives me between real life what I need now is
how to create a dll to alter the game in tutotial to Reproduce does but with a game
MSD but not online game
what I wanted was to make a god or mode autopotion
with Wep Pro also found an interesting coisa
scanning packages found a way to target the mob gives me without me alle beside her and then come with me if I vay the average of all other
the trouble is that every time I leave the game generates another code and I do not know
how to do that in Cheat Engine I can not grab the real target
alguem joins lend a hand?
and to share more information I sent videos of how I got there
I want the real thing is to create an intelligent bot using potion with% HP and MP
and that no other mobs atake but slowly
12/14/2015 16:31 elmarcia#2
First u need your health address and target mob address here is a tutorial on how to find pointers so u will have the correct address everytime you restart the game:
[Only registered and activated users can see links. Click Here To Register...]
When you are done with that making a bot easy in autoit is easy your algorithm will be something like this:
1º Mob Selected? you can determinate that when mob health value is not 0
2º Need heal or mp ? HP below some value, same with MP
3º Can fight? If mob is selected and your HP/MP are OK then Fight
3.1 Mob not selected. Go select mob
3.2 HP/MP below some value. Go use potion
12/15/2015 01:29 p3rm3l0mga#3
Quote:
Originally Posted by elmarcia View Post
First u need your health address and target mob address here is a tutorial on how to find pointers so u will have the correct address everytime you restart the game:
[Only registered and activated users can see links. Click Here To Register...]
When you are done with that making a bot easy in autoit is easy your algorithm will be something like this:
1º Mob Selected? you can determinate that when mob health value is not 0
2º Need heal or mp ? HP below some value, same with MP
3º Can fight? If mob is selected and your HP/MP are OK then Fight
3.1 Mob not selected. Go select mob
3.2 HP/MP below some value. Go use potion
:RE thank you for your attention

If I have HP codes and what I need is how to create the interface choices scripts and codes
I am watching a video on how to create a full BOT is good but I just want 2 or 3 aver thing there as you will share it out and hopefully help me complete the codes:las manos hacia abajo :
12/15/2015 16:49 elmarcia#4
Some piece of code

NomadMemory.au3

You now have to work by yourself this should be enough for u to begin
12/16/2015 06:06 p3rm3l0mga#5

now I get error codes add HP
12/18/2015 20:06 p3rm3l0mga#6

I have these codes after days without sleep

I have you pointer HP , MP, mob TARGET
now I just need to put in the autoit someone can help plz


this is another


plz healp me
12/18/2015 22:50 elmarcia#7
Code:
Global Const $percent = 0.5; 50% hp
Global Const $minMPValue = 200
Global Const $HPPotionKey = "{q}"
Global Const $MPPotionKey = "{e}"
Global Const $attack1Key = "{1}"
Global Const $SelectMobKey = "{TAB}"


Global $status = -1
Global $myHP,$myMP,$mobHP
$Adresse1 = 0x2B444AB8;
$Adresse2 = 0x77756D00

$Open = _memoryopen(ProcessExists("GAME.exe"))



Func UpdateData()
$MaxHP = _MemoryRead($Adresse1, $Open, 'dword') 
$minHPValue  = $MaxHP*$percent
$myHP = _MemoryRead($Adresse2, $Open, 'dword')
;$myMP = _MemoryPointerRead($BaseAddress,$open,$MPOffset,"long")
;$mobHP = _MemoryPointerRead($BaseAddress,$open,$MobOffset,"long")
EndFunc

Func getStatus() ;how this works, first check if hp or mp is low, then check if mob is selected, finally if don't select mob and fight
UpdateData()
If $myHP < $minHPValue then return 1;Or $myMP < $minMPValue Then Return 1  ;while fighting should check HP/MP too so
If $mobHP <> 0 Then Return 2 ;if mob is selected
Return 3 ;mob not selected / HP/MP okay
EndFunc


Func UsePotion()
If $myHP < $minHPValue Then Send($HPPotionKey)
If $myMP < $minMPValue Then Send($MPPotionKey)
EndFunc

Func Fight()
Send($attack1Key)
EndFunc

Func SelectMob()
	Send($SelectMobKey);or u can send a packet to select mob with tcpsend
EndFunc

While Sleep(20)  ;Main loop
$status = getStatus()

Switch $status
	Case 1 ;Low hp/mp
		UsePotion()
		ToolTip("Using potion",0,0,"STATUS")
	Case 2 ;Mob selected HP/MP okay
		Fight()
		ToolTip("Fighting",0,0,"STATUS")
	Case 3 ;Mob not selected HP/MP okay
		SelectMob()
		ToolTip("Searching Mob",0,0,"STATUS")
EndSwitch
WEnd
U should get MP and mobHP addresses, don't have time for now to make a gui.
12/19/2015 03:57 p3rm3l0mga#8

that's my point of hp and the other is my target pointer shows me when I select the hp MOBs or Player

target mobs or players