Jump to content
  • 0

Unkilled LUA help


Isti888

Question

Something is wrong, pls help

.---

-- Script generated by GameGuardian 78.0 (14833) at 2019-05-19 01:06:49 for Unkilled [com.madfingergames.unkilled 2.0.5 (20500005)]
-- Lua help: http://gameguardian.net/help/

-- options
local scriptName = [=====[Script for Unkilled 2.0.5]=====]
local scriptVersion = '1.0.0'
local scriptAuthor = 'User'
local startToast = ''
-- 0 - no check; 1 - check package only, 2 - check package and build
local checkTarget = 0

local targetName = [=====[Unkilled]=====]
local targetPkg = 'com.madfingergames.unkilled'
local targetVersion = [=====[2.0.5]=====]
local targetBuild = 20500005

-- functions

-- init
gg.require('78.0', 14833)

if startToast ~= '' then startToast = '\n'..startToast end
gg.toast(scriptName..' v'..scriptVersion..' by '..scriptAuthor..startToast)

if checkTarget ~= 0 then
    local info = gg.getTargetInfo()
    local check = false
    local current = false
    if checkTarget >= 1 then
        check = targetPkg
        current = info.packageName
    end
    if checkTarget >= 2 then
        check = check..' '..targetVersion..' ('..targetBuild..')'
        current = current..' '..info.versionName..' ('..info.versionCode..')'
    end
    if check ~= current then
        gg.alert('This script for "'..targetName..'" ['..check..'].\nYou select "'..info.label..'" ['..current..'].\nNow script exit.')
        os.exit()
    end
end
local revert = nil

-- main code

gg.clearResults()
gg.searchNumber('"238"', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()
gg.processResume()
gg.refineNumber('"255"', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()
 

---------------------------------------

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Something is wrong, pls help

.---
-- Script generated by GameGuardian 78.0 (14833) at 2019-05-19 01:06:49 for Unkilled [com.madfingergames.unkilled 2.0.5 (20500005)]
-- Lua help: http://gameguardian.net/help/
-- options
local scriptName = [=====[script for Unkilled 2.0.5]=====]
local scriptVersion = '1.0.0'
local scriptAuthor = 'User'
local startToast = ''
-- 0 - no check; 1 - check package only, 2 - check package and build
local checkTarget = 0
local targetName = [=====[unkilled]=====]
local targetPkg = 'com.madfingergames.unkilled'
local targetVersion = [=====[2.0.5]=====]
local targetBuild = 20500005
-- functions
-- init
gg.require('78.0', 14833)
if startToast ~= '' then startToast = '\n'..startToast end
gg.toast(scriptName..' v'..scriptVersion..' by '..scriptAuthor..startToast)
if checkTarget ~= 0 then
    local info = gg.getTargetInfo()
    local check = false
    local current = false
    if checkTarget >= 1 then
        check = targetPkg
        current = info.packageName
    end
    if checkTarget >= 2 then
        check = check..' '..targetVersion..' ('..targetBuild..')'
        current = current..' '..info.versionName..' ('..info.versionCode..')'
    end
    if check ~= current then
        gg.alert('This script for "'..targetName..'" ['..check..'].\nYou select "'..info.label..'" ['..current..'].\nNow script exit.')
        os.exit()
    end
end
local revert = nil
-- main code
gg.clearResults()
gg.searchNumber('"238"', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()
gg.processResume()
gg.refineNumber('"255"', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()
 
---------------------------------------
 
Write scripts dont use gg for it

Sent from my Redmi Y1 Lite using Tapatalk

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.