Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Attack from anywhere on the map

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
xcynic
Cheater
Reputation: 0

Joined: 28 Aug 2010
Posts: 31

PostPosted: Wed Jun 19, 2013 12:37 am    Post subject: Attack from anywhere on the map Reply with quote

Hello!

So I've recently played with the thought of being able to attack monsters in a game from anywhere on the map, I havn't quite figured out how though.

What I've got so far is something that closely resembles step 9 in the CE tutorial, but slightly changed. If I get attacked, or if my towers gets attacked we gain HP, and if I or any of my towers hit an enemy, the enemy gets hit with max damage in the game.

I was just wondering what the underlying technique of attacking monsters from anywhere on the map is? Should I try and play around with the dmg function?

I also thought that it might be possible to get the mobs to call the function of taking damage when they spawn, thus killing them instantly as they spawn, yet I'm not sure how this would work either.

This is my current code:
Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(friendly)
label(exit)
label(enemy)

newmem:
cmp [ebx+68],0 //Checks wheter or not it's you or the enemy
je enemy
jmp friendly

friendly:
add [ebx],eax //adds HP to the player/crystal
mov ebx,[ebx]
mov ecx,[esp+14]
jmp returnhere

enemy:
cmp [ebx+24],0 Checks whether or not it's a crystal
jne friendly

sub [ebx],(int)9999999999 // Deal max dmg to mobs.
mov ebx,[ebx]
mov ecx,[esp+14]
jmp returnhere

exit:
jmp returnhere

"DunDefGame.exe"+73BB1:
jmp newmem
nop
nop
nop
returnhere:




[DISABLE]
dealloc(newmem)
"DunDefGame.exe"+73BB1:
sub [ebx],eax
mov ebx,[ebx]
mov ecx,[esp+14]
//Alt: db 29 03 8B 1B 8B 4C 24 14


Thanks in advance!


**!!The game has two versions, I'm playing on the open version where modding is allowed!!**
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jun 19, 2013 2:50 am    Post subject: Reply with quote

Really, it depends on the game. Writing 0 to enemy health might work, but more than likely, you're going to have to perform additional injections for the enemies to actually die.
The last trainer that I published (for assassin's creed), allowed you to kill everyone around you, simultaneously, by throwing them in to the air really high and forcing them to fall to their death. There are different ways to approach it. If there is a targeting/lock-on system, you can kill enemies, individually.
Back to top
View user's profile Send private message
xcynic
Cheater
Reputation: 0

Joined: 28 Aug 2010
Posts: 31

PostPosted: Wed Jun 19, 2013 9:42 am    Post subject: Reply with quote

GNIREENIGNE wrote:
Really, it depends on the game. Writing 0 to enemy health might work, but more than likely, you're going to have to perform additional injections for the enemies to actually die.
The last trainer that I published (for assassin's creed), allowed you to kill everyone around you, simultaneously, by throwing them in to the air really high and forcing them to fall to their death. There are different ways to approach it. If there is a targeting/lock-on system, you can kill enemies, individually.


Thanks for the answer. I'm aware of the "vac" hack, I've done something similar but I'd want the enemies to just die. Maybe if I can find the function that gets called whenver the mobs spawn, then I could make it also call the function that damages them. I'll have to investigate further.

The game I'm trying to hack, Dungeon Defenders, is a TD-hybrid so It would be great if I could get them to die instantaneously when they spawn, then I'd also get the loot. If I just suck them off the map, the loot falls on top of the map and becomes unreachable even with teleport hack.

EDIT: Targetting the mobs and killing them works, but this doesn't really work well when you play on hacked levels with hundreds of thousands of mobs! Smile

Also, regarding a full map attack, how would one go about to do something like this? It would be very useful for killing bosses.
Back to top
View user's profile Send private message
pox911
Grandmaster Cheater
Reputation: 28

Joined: 29 Nov 2008
Posts: 918

PostPosted: Wed Jun 19, 2013 2:36 pm    Post subject: Reply with quote

couldnt you in theory just take a community map that just spawns a crap ton and auto kills them via the map itself? Or do the community maps not spawn loot?
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Wed Jun 19, 2013 2:40 pm    Post subject: Reply with quote

You can achieve this from checking what users your character 'range'..
I've achieved this (For me it was MUCH easier, because i hack Flash games.. just re-write the original AS3 scripts.), by forcing attack even if enemy.character is not in the attack 'range' radius.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
xcynic
Cheater
Reputation: 0

Joined: 28 Aug 2010
Posts: 31

PostPosted: Wed Jun 19, 2013 2:49 pm    Post subject: Reply with quote

pox911 wrote:
couldnt you in theory just take a community map that just spawns a crap ton and auto kills them via the map itself? Or do the community maps not spawn loot?


This would obviously work, but the main reason why I'm doing this is to learn more about CE Wink


DaSpamer wrote:
You can achieve this from checking what users your character 'range'..
I've achieved this (For me it was MUCH easier, because i hack Flash games.. just re-write the original AS3 scripts.), by forcing attack even if enemy.character is not in the attack 'range' radius.


Okey, would something like this also work if you have to aim at the enemy to be able to hit them? Because otherwise this would be rather redundant since your ranged attacks travels until they hit something!
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Wed Jun 19, 2013 3:03 pm    Post subject: Reply with quote

Hm,
The game I hacked was KingsRoad, some mostly server sided shit.... each hit is handled by server but they failed with character speed, and character knight range (melee user) and with weapon fire rate.
But you got a point.. it won't worth anything if you shoot enemy from range but you can't actually hit them.
If doing so, will return you the above, then you're in trouble, because forcing a 'hit' is bit (Alot) harder.

Either way, try both ways.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
xcynic
Cheater
Reputation: 0

Joined: 28 Aug 2010
Posts: 31

PostPosted: Wed Jun 19, 2013 3:57 pm    Post subject: Reply with quote

DaSpamer wrote:
Hm,
The game I hacked was KingsRoad, some mostly server sided shit.... each hit is handled by server but they failed with character speed, and character knight range (melee user) and with weapon fire rate.
But you got a point.. it won't worth anything if you shoot enemy from range but you can't actually hit them.
If doing so, will return you the above, then you're in trouble, because forcing a 'hit' is bit (Alot) harder.

Either way, try both ways.


Yea that's what I thought aswell.

I'm gonna try and find the function that gets called whenver I hit an enemy, and then see what happens if I call that function when I attack with my weapon. Probably won't work, but I guess it's worth a shot! Maybe I can get some useful information from if I trace what actually accesses that function.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites