local scriptName = [=====[Script for Shadow Of Death 1.53.0.0]=====]
local scriptVersion = '1.0.5'
local scriptAuthor = 'Unpeakable_hacker090'
local startToast = ''
-- 0 - no check; 1 - check package only, 2 - check package and build
local checkTarget = 0
local targetName = [=====[Shadow Of Death]=====]
local targetPkg = 'com.Zonmob.ShadowofDeath.FightingGames'
local targetVersion = [=====[1.53.0.0]=====]
local targetBuild = 139
-- functions
-- init
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 = true
local current = true
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
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.
Question
g1doz
anyone explain me this code
local scriptName = [=====[Script for Shadow Of Death 1.53.0.0]=====]
local scriptVersion = '1.0.5'
local scriptAuthor = 'Unpeakable_hacker090'
local startToast = ''
-- 0 - no check; 1 - check package only, 2 - check package and build
local checkTarget = 0
local targetName = [=====[Shadow Of Death]=====]
local targetPkg = 'com.Zonmob.ShadowofDeath.FightingGames'
local targetVersion = [=====[1.53.0.0]=====]
local targetBuild = 139
-- functions
-- init
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 = true
local current = true
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
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.