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 


I2 Cheat Engine Table Hooks

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting -> Lua Extensions
View previous topic :: View next topic  
Author Message
TheyCallMeTim13
Wiki Contributor
Reputation: 4

Joined: 24 Feb 2017
Posts: 36
Location: Right Here Buddy.

PostPosted: Sat Mar 04, 2017 8:07 pm    Post subject: I2 Cheat Engine Table Hooks Reply with quote


I2 Cheat Engine Table Hooks



Version: 1.0.1



Link: http://www.mediafire.com/file/59ccm90009pcixv/I2CETableHooks.lua

The Doc String.
Code:

--[====================================================================================================================[

I2 Cheat Engine Table Hooks
   
   Version: 1.0.1

   Author: Matt - TheyCallMeTim13 - MattI2.com


   Features:
      - Use external files for hooks.
      - Looks for cea files locally, if not found loads the table file.
      - Cain hooks together in single table address list script.
      - Allow the forcing of running enable or disable.


   Install / Setup 1:
      - Put in CE lua folder (it isn't created by default).
      - Import and add hooks.

   Install / Setup 2:
      - Put in CET folder.
      - Import and add hooks.



   Hooks.new:
      I2CETableHooks.Hooks.new(key, enable, ceaFile, autoHook)
         - key      : string - The hooks key in the table.
         - enable   : boolean - Set to true to allow the hook to be enabled or disabled.
         - ceaFile   : string - The CEA file name.
               ** Looks for file in 'ceaFiles' directory in the current directory,
                  then if not found looks for a table file and creates a local file for loading.
                     - Looking in to how to read from the memory stream returned from table file.
                        So no local file is required, and only for overriding.
         - autoHook   : boolean - Set to true to have enabled or disabled with runAutoHook function


   run:
      Hooks[key].run(enable, force)
         - enable   : boolean - Set to true to enable and false to disable.
         - force      : boolean - Set to true to force enable or disable even if already in that state.

   enable:
      Hooks[key].enable(force)
         - force      : boolean - Set to true to force enable even if already in that state.

   disable:
      Hooks[key].disable(force)
         - force      : boolean - Set to true to force disable even if already in that state.


   Hooks.runAutoHook:
      - Runs all enabled auto hooks.
      Hooks.runAutoHook(enable)
         - enable   : boolean - Set to true to enable and false to disable.

   Hooks.runHooks:
      - Runs all enabled hooks (even auto hooks).
      Hooks.runHooks(enable, force)
         - enable   : boolean - Set to true to enable and false to disable.
         - force      : boolean - Set to true to force enable or disable even if already in that state.



   To Import:
      require 'I2CETableHooks'

   To Add Hooks:
      I2CETableHooks.Hooks.new('PlayerBase', true, 'PlayerBaseHook.CEA', true)
      I2CETableHooks.Hooks.new('HealthDEC', true, 'HealthDECHook.CEA')
      I2CETableHooks.Hooks.new('ManaWrite', true, 'ManaWriteHook.CEA')
      I2CETableHooks.Hooks.new('MovementSpeed', true, 'MovementSpeedHook.CEA')

   To Enable Hooks:
      I2CETableHooks.Hooks.PlayerBase.enable()
      I2CETableHooks.Hooks.HealthDEC.run(true)

   To Disable Hooks:
      I2CETableHooks.Hooks.PlayerBase.disable()
      I2CETableHooks.Hooks.HealthDEC.run(false)



   Settings:
      CEAFilesDirectory         : string - The directory name where cea files will be stored.
            - Default: 'ceaFiles'



   Functions:
      I2CETableHooks.autoAssemble(str, name)
      I2CETableHooks.getAutoAssembleFileSection(ceaFile, enable)
      I2CETableHooks.autoAssembleFile(ceaFile, enable)
      I2CETableHooks.runSetupCeas(setupCEAs, enable)
      I2CETableHooks.init(setupAAStrs, setupCEAs, hooks)


      Hooks:
         I2CETableHooks.Hooks.new(key, enable, ceaFile, autoHook)
         I2CETableHooks.Hooks.runAutoHook(enable)
         I2CETableHooks.Hooks.runHooks(enable, force)


      Hook Objects:
         run(enable, force)
         enable(force)
         disable(force)
         readFile(enable, mode)
         writeFile(enable, cea, mode)
         getSection(enable)



]====================================================================================================================]--


Link: http://www.mediafire.com/file/59ccm90009pcixv/I2CETableHooks.lua



I2CETableHooks.lua
 Description:
I2 Cheat Engine Table Hooks

Download
 Filename:  I2CETableHooks.lua
 Filesize:  15 KB
 Downloaded:  274 Time(s)


_________________
- Code Happy, Code Freely, Be Awesome.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting -> Lua Extensions 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