Jump to content

Templates

72 files

  1. convert an offset to a function for patching "hookOne" offsets

    A simple, somewhat useless script to convert an offset to a function for patching "hookOne" offsets: 
    function hookOne(library, flag, offset, value)
        list = gg.getRangesList(library)
        for i in pairs(list) do
            if list[i].state == "Xa" then
                start = list[i].start
                break
            end
        end
        local t = {}
        t[1] = {}
        t[1].address = start + offset
        t[1].value = value
        t[1].flags = flag
        gg.setValues(t)
    end
    ts.lua

    69 downloads

       (0 reviews)

    0 comments

    Submitted

  2. "Human Verify" But with "Loading"

    Basically, random generated but i also Added "Loading".
    The password randomly generate everytime the code execute.
    Maybe useful if you perfer easily accessible password

    482 downloads

       (0 reviews)

    0 comments

    Updated

  3. Lua script template v0.0.0: Patching memory addresses in the libil2cpp library | by Phantom Combat Venue | example game :: Sniper Warrior: PvP Sniper v0.0.3 build 19 Last updated on Aug 29, 2023

    Phantom Combat Venue Lua Script Template v0.0.0 - No Recoil Camera Hack and Utility Functions
    Introduction:
    Hello, GameGuardian community! Today, I'm excited to share the Phantom Combat Venue Lua Script Template v0.0.0, an open-source script under the MIT license.
    This template serves as a foundation for patching memory addresses in the libil2cpp library for any game. I used "Sniper Warrior: PvP Sniper" as an example.
    In this post, we'll focus on the No Recoil Camera Hack as an example, and we'll also explore some utility functions and other Lua code provided in the template.
    License:
    This script is open-source under the MIT license, giving you the freedom to modify and adapt it for your needs.
    Global Variables:
    - `__ON` and `__OFF`: Emoji indicators for ON and OFF states.
    - `VISIBILITY_FLAG`: A flag to manage script visibility.
    Utility Functions:
    1. libBase(lib, offsets, vals, type):
       - Purpose: Finds and modifies memory addresses in the specified library.
       - Parameters:
          - `lib`: Library name.
          - `offsets`: List of offsets.
          - `vals`: List of values.
          - `type`: Data type.
       - Functionality: Iterates through memory ranges, identifies the library, and modifies addresses.
    function libBase(lib, offsets, vals, type) local rangeList = gg.getRangesList(lib) local addresses = {} for i, v in ipairs(rangeList) do if v.state == "Xa" then for j, offset in ipairs(offsets) do table.insert(addresses, { address = v.start + offset, flags = type, value = vals[j] .. "h" }) end break end end if #addresses == 0 then print("Not found lib") else gg.setValues(addresses) end end  
    2. convertToHexString(number, digits):
       - Purpose: Converts a number to a hexadecimal string with a specified number of digits.
       - Parameters:
          - `number`: Number to convert.
          - `digits`: Number of hexadecimal digits.
       - Functionality: Applies a bitmask and formats the number as a hexadecimal string.
    function convertToHexString(number, digits) local mask = (1 << (digits * 4)) - 1 return string.format("%X", number & mask) end  
    3. getHexValueByOffset(offset):
       - Purpose: Retrieves the hexadecimal value at a specific offset in libil2cpp.
       - Parameters:
          - `offset`: Offset to read.
       - Functionality: Uses `gg.getValues` to obtain the hexadecimal value at the specified offset.
    function getHexValueByOffset(offset) local responseVal = gg.getValues({{ address = gg.getRangesList("libil2cpp.so")[1].start + offset, flags = gg.TYPE_DWORD }}) return convertToHexString(responseVal[1].value, 8) end  
    Main Function:
    - Main():
       - Purpose: Entry point for script execution.
       - Functionality: Displays a menu with options, including the No Recoil Camera, and handles user input.
    function Main() VISIBILITY_FLAG = -1 gg.setVisible(false) menu = gg.choice({ no_recoil_camera_state .. "No Recoil Camera.", "❌ EXIT ❌" }, nil, "Sniper Warrior v 0.0.3 b19 - MOD") if menu == nil then gg.toast(" ⚠️ MINIMIZED ⚠️") gg.setVisible(false) elseif menu == 1 then no_recoil_camera_fn() else os.exit() end end  
    No Recoil Camera:
    1. Initialization:
       - `no_recoil_camera_offset`: Offset for the No Recoil Camera hack.
       - `no_recoil_camera_active_hack_hex_code`: Hex code for the active state.
    no_recoil_camera_offset = 0x115DA58 no_recoil_camera_active_hack_hex_code = "D65F03C0" -- "~A8 RET"  
    2. State Check:
       - Checks the current state of the No Recoil Camera and sets the corresponding state indicator (`__ON` or `__OFF`).
    if getHexValueByOffset(no_recoil_camera_offset) == no_recoil_camera_active_hack_hex_code then no_recoil_camera_state = __ON else no_recoil_camera_state = __OFF end  
    3. Function: no_recoil_camera_fn():
       - Purpose: Activates or deactivates the No Recoil Camera.
       - Functionality: Utilizes `libBase` to modify the necessary memory addresses based on the current state.
    function no_recoil_camera_fn() local offsets = {0x115DA58, 0x115DA5C, 0x115DA60, 0x115DA64, 0x115DA68, 0x115DA6C, 0x115DA70} local values_on = {no_recoil_camera_active_hack_hex_code, no_recoil_camera_active_hack_hex_code, no_recoil_camera_active_hack_hex_code, no_recoil_camera_active_hack_hex_code, no_recoil_camera_active_hack_hex_code, no_recoil_camera_active_hack_hex_code, no_recoil_camera_active_hack_hex_code} local values_off = {"6DBD23E9", "F9000BF3", "A9027BFD", "910083FD", "4EA01C08", "AA0003F3", "9400000E"} if no_recoil_camera_state == __OFF then libBase("libil2cpp.so", offsets, values_on, gg.TYPE_DWORD) gg.toast("No Recoil Camera activated") no_recoil_camera_state = __ON elseif no_recoil_camera_state == __ON then libBase("libil2cpp.so", offsets, values_off, gg.TYPE_DWORD) gg.toast("No Recoil Camera deactivated") no_recoil_camera_state = __OFF end end  
    Entrypoint:
    - While Loop:
       - Purpose: Keeps the script running in the background.
       - Functionality: Checks for script visibility and calls the `Main()` function accordingly.
    while true do if gg.isVisible(true) then VISIBILITY_FLAG = 1 gg.setVisible(false) end if VISIBILITY_FLAG == 1 then Main() end end  
    Happy scripting! ❤️😁 Your friend, Phantom Combat Venue.

    152 downloads

       (0 reviews)

    0 comments

    Submitted

  4. simple script loadlist example

    loadlist example

    329 downloads

       (0 reviews)

    0 comments

    Submitted

  5. Verification

    A simple verification for your script

    231 downloads

       (0 reviews)

    0 comments

    Submitted

  6. Script Template

    This sample makes working with il2cpp a lot easier, I have included examples in the script you can check out.

    537 downloads

       (0 reviews)

    0 comments

    Submitted

  7. Patch or Restore with hex on lib

    Restore or patcher for lib
     
    Added Restore function 
    using Patch() code you can edit offsets with hex codes
    For Restore 
    Lib and offset is enough it will set the hex to original before edit
     
    Check file for usage eg
     
     
    Found any bug
    Contact me here
    Or in telegram
    Tg link :- https://t.me/DRAGON_SCRIPTER

    430 downloads

       (0 reviews)

    0 comments

    Submitted

  8. Unskippable Alert Dialog

    A Simple alert function that can't be skipped by the user. It will only close when the time is up.

    221 downloads

       (0 reviews)

    0 comments

    Submitted

  9. Target Abi Checker

    The simplest and the fastest way to check the target ABI

    89 downloads

       (0 reviews)

    0 comments

    Submitted

  10. A Template Using Class Name And Method Name To Find New Offset in libil2cpp.so After The Game Update

    This Script Is Made With GGIL2CPP Made by @Kruvcraft. It A Simple Script Find New Offset After The Game Update By Using Class Name And Method Name. And The Game I Using For Example Is War Commander Rogue Assault. To Use It You Just Need To Enter The Class Name And Method Name. This Is The First Script I Make Hope it Help. 
    W.C Rogue Assault Auto Update Offset.lua

    751 downloads

       (0 reviews)

    0 comments

    Updated

  11. MENU ON/OFF TEMPLATE

    This script is designed to create a feature menu with toggleable options for memory editing in GameGuardian. It allows users to turn on and off different features by modifying memory values. The script defines functions for each feature to turn them on and off and organizes them into three groups. The script also defines a function to toggle the state of a given feature in the menu, which checks whether the feature is currently turned on or off and calls the appropriate on or off function accordingly. The state of each feature is stored in a boolean array, and the script displays a feature menu that allows users to toggle the state of each feature. The script also includes a main menu function that allows users to either display the feature menu or exit the script.

    610 downloads

       (0 reviews)

    0 comments

    Submitted

  12. FreeToEditScript.lua

    Edit Template the script by Vloyoht Gaming YT BG about script talk to me in discord VloyohtGamingYT#7098

    354 downloads

       (0 reviews)

    0 comments

    Submitted

  13. Advanced lib patcher

    Advanced lib patcher template (ALP)
    This is a template for advanced lib patcher. This template allow you to patch libs with a lot of features.
    It is intended to make updating offsets more easier. And also use the same script for multiple abi ( armeabi-v7a, arm64-v8a ) at the same time.
    Support
    Telegram

    612 downloads

       (0 reviews)

    0 comments

    Updated

  14. ARM PATCH

    Arm patch
     
     

    1,035 downloads

       (0 reviews)

    0 comments

    Updated

  15. Simple multiple online password with using php

    I had nothing to do again, so this was born.
    The use is quite simple, there is an example of use in the file and the php code itself (because you can only upload lua files).

    327 downloads

       (0 reviews)

    0 comments

    Updated

  16. metadata_fields_modifier

    Template for automatic finding of the values to modify from the class strings and fields offsets
    This gameguardian script to help automatize fields modifications, from the info you have found into the global-metadata file.

    have been tested only in this configuration:
    - original phone android 11, no-root
    - virtualxposed + gameguardian

    Now it help me as a base when I try a new game
    -> only need to indicate the classes and fields names I want to look for
    Notes:
    - to use it you need to edit the script and adapt it for your specific game -> it is a template
    - must know what is global-metadata file + a bit of lua script language (not too much)
    - it is searching the fields into the anonymous A region (often in my android phone fields values are there)
    - if the game upgrade, possible that classes names and fields offsets are modified so you must upgrade your script too
     
    How to use and modify the template
     1. open the global-metada file [see below to know how to get it], and find the classes and fields you are interested in -> it is the hard stuff

    in this example are selected two fields I want to alterate the values:
    - classname is LockDrillerMinigameParameters
    - field SafeAngle, that is a float, with offset 0x40
    - field ShakeModifierIncreasingRate, a float too, offset 0x44
     
    2. edit the metadata_fields_modifier script (on the phone I use Acode), but to be faster can be done on the PC (open with notepad and copy-paste the data directly from global-metadata)
    from line 55 in the script, modify the classes_and_fields to fit your data, the example gives:

    (before it was line 20 but now line 55)
    local classes_and_fields = {
      LockDrillerMinigameParameters=
      {fields={
        {'SafeAngle' , gg.TYPE_FLOAT, 0x40 , 32},
        {'ShakeModifier' , gg.TYPE_FLOAT , 0x44 , 0.001}
      }},
    }

    for each field you have:
    {'field name', data type, offset, eventual replaced value}
    data type possibilities, according what global-metadata indicates
      -- gg.TYPE_FLOAT for float
      -- gg.TYPE_BYTE for bool
      -- gg.TYPE_DWORD for int

    Note:
    -> "replaced value" is optional, can put only {'SafeAngle',gg.TYPE_FLOAT,0x40}
       a) indeed at the beginning you do not know what field is impacting the game, so with this script you can put many classes (ex: 10) and all the int/float fields that seems interesting (ex: 5 for each classes)
       b) then running the script in the game, it will find and load each field in gameguardian without modification
       c) next you can try to modify the value of each of these fields to look for the best to use, and what values to put
       d) edit the script again and this time you can specify the "replaced value" at the end like in my example {'SafeAngle',gg.TYPE_FLOAT,0x40 , 0x32}
     
    3. open the game + run the metadata_fields_modifier script in the game
    -> it will ask you what class to search for
    Then if successful, the results class and fields data, will be loaded in the gameguardian interface (save tab) so you can check what has be done and modified

     
    => Hope this script will help you make some great modifications on the games you like.
     
    Extra info about getting global-metadata
    - I use the great libil2cpp.so and metadata.dat dumping script (LibDumper by @Lover1500) -> get both needed files (script can be found on this site)
    https://gameguardian.net/forum/files/file/2740-libil2cppso-and-metadatadat-dumping-script/?tab=comments#comment-9358
    - then I use "il2cppdumper gui" on my phone (dont remember where I found the app apk) to convert both files -> finally got the global-metdata file (named dump.cs)
    - seeing it is a very big file not easily readable on the phone -> I send it to the PC to search for some interesting classes to alterate


     



    702 downloads

       (0 reviews)

    14 comments

    Updated

  17. GameGuardian a master script (For learn)

    For help, you can join my discord server

    1,114 downloads

       (0 reviews)

    1 comment

    Updated

  18. Language Select V1

    Language select easy to edit.
     
    You can add more languages 
     
    -- contact --
    Telegram : https://t.me/learn_lua
    Facebook : Avartar Icecream
    Youtube : https://www.youtube.com/learnlua

    508 downloads

       (0 reviews)

    0 comments

    Updated

  19. Script (Timer) os.clock to Add in your Script


    Script  (Timer) os.clock to Add in your Script

    438 downloads

       (0 reviews)

    0 comments

    Submitted

  20. Script os.date to Add in your Script

    📆🕛⏳
    Script Date and Time to Add in your Script
    📆🕛⏳

    655 downloads

       (0 reviews)

    0 comments

    Submitted

  21. USER & PASSWORD / Expire CODE BY PRO XD

    EN 🇺🇸  
    ABOUT THIS FILE 
    1- ADD EXPIRE DATE Script 🙂
    2- ADD USER & NAME TO YOUR SCRIPT :-)
    .....
    AR عربي 🇦🇪
    عن هذا ملف
    1 - اضافة تاريخ وقت انتهاء سكربت
    2 - اضافة اسم مستخدم و كلمة مرور لي اضافته إلى سكربت خاص بك
    ......
    FILE BY PRO XD
    YT : XD محترف

    837 downloads

       (0 reviews)

    0 comments

    Submitted

  22. Simple patch offset

    Patch offset with value

    1,011 downloads

       (0 reviews)

    0 comments

    Submitted

  23. Jad3d : Framework

    Jad3d is a basic mod framework. 
    Features
    Menus Buttons Toasts Functions Menu transitions Attach/Read/Write Multi language support Feedback is appreciated. Many changes to come!
     

    291 downloads

       (0 reviews)

    2 comments

    Submitted

  24. GameGuardian Script Tutorial (Detailed)

    Hello Everyone! You can make your own Script file with simple methods! Files in Description. You can watch video tutorials!
    Tutorial Videos here!

    1,591 downloads

       (0 reviews)

    0 comments

    Updated

       (0 reviews)

    0 comments

    Submitted


  • 113579 What virtual space do you use?

    1. 1. What virtual space do you use?


      • Parallel Space (best choice)
      • VirtualXposed
      • Parallel Space Lite
      • GO Multiple
      • Dr. Clone
      • Virtual Space
      • ES Parallel Accounts
      • NoxApp+
      • DualSpace
      • Octopus
      • AppBox
      • DualSpace Blue
      • DualSpace Lite
      • 2Face
      • Other virtual space
      • I have a root
      • Multiple Space
      • clonneapp
      • Parallel Accounts
      • APP Cloner
      • App Hider
      • Calculator+
      • Multi
      • App Hider Lite
      • Dual App
      • Phone (Dialer Vault)
      • Notepad
      • Parallel Space Pro
      • VMOS
      • Clone App
    2. 2. Do you use the Internet?


      • No, I don't.
      • Yes, I do.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.