| View previous topic :: View next topic |
| Author |
Message |
deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Thu Jul 30, 2015 3:05 pm Post subject: Finding mana regen then increasing its speed? |
|
|
So, there's this game where your mana regenerates every second for 5 points.
I guess you can just search for the MP then see what writes to it and just double the regeneration per second. But, how would you decrease the regeneration timer instead? So it would regenerate every 1/2th of a second?
How would I even search for something like that?
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Jul 30, 2015 3:51 pm Post subject: |
|
|
You would need to trace back the mana regen function and find out what executes it.
There should be some logic around there determining when to call the function again.
It's so much simpler to make it add twice as much mana per tick than it is to make it tick twice as fast.
There a reason you don't want to do it this way?
10 mana per second is the same as 5 mana per 1/2 second.
|
|
| Back to top |
|
 |
deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Thu Jul 30, 2015 3:55 pm Post subject: |
|
|
| Zanzer wrote: | You would need to trace back the mana regen function and find out what executes it.
There should be some logic around there determining when to call the function again.
It's so much simpler to make it add twice as much mana per tick than it is to make it tick twice as fast.
There a reason you don't want to do it this way?
10 mana per second is the same as 5 mana per 1/2 second.  |
Oh, I just wanna know.
So, how would I search for the mana regen function? Would I just find the +5 tick and trace it back?
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Jul 30, 2015 4:28 pm Post subject: |
|
|
Yea, just break and trace the instruction and each collapsed item in the tree view is a new function.
Go to the instruction, then up 1 to find the function call.
The main function you want is likely many calls deep.
You're in for a long, frustrating search.
|
|
| Back to top |
|
 |
Rydian Grandmaster Cheater Supreme
Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Thu Jul 30, 2015 8:38 pm Post subject: |
|
|
It'd probably be easier to find what accesses MP and find one of the lesser-run functions that works on a time frame you like and then add a regen to that.
_________________
|
|
| Back to top |
|
 |
deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Fri Jul 31, 2015 10:45 am Post subject: |
|
|
| Alright, I'll give both of those a try; thanks guys.
|
|
| Back to top |
|
 |
|