1.1 KiB
1.1 KiB
Easy steps to add a cheat to this app:
- Create a file in the cheat directory
- Create a class that inherits from
Hack
:
from hack import Hack
class Yourcheat(Hack):
def __init__(self, **kwargs) -> None:
super().__init__(**kwargs)
- Add the method who will contains the cheat logic, note that:
- Your method must contains a sub-method and must be added to
the
hackloop
at the end of the method (see example below).
- Your method must contains a sub-method and must be added to
the
def mycheat(self) -> None:
# Cheat initialization, will run only one time
def cheat():
# Your cheat logic, will be looped
# Setup the loop
self.hack_loop(cheat)
Extra infos
self.pm
is used to read/write memoryself.offsets
contains a list of offsetsself.find_module
finds a module (.dll
)self.find_uint
always returns something (blocking thread)- You can always add time between each loop call by calling
sleep
- See the utils file if you need more tools, like a vector class, colour etc.
- If needed, feel free to add your own offsets to the
self.offsets
variable