Jump to content
  • 0

Help Script Code


goldenkaramel

Question

can someone help me to know what is wrong here?

İ can't do this ?

 

-- Script generated by GameGuardian 8.65.1 (12354) at 2018-10-14 13:26:01 for TowerConquest [com.sgiggle.towerconquest 22.00.42g (1500000069)]
-- Lua help: http://gameguardian.net/help/

-- options
local scriptName = [=====[Script for TowerConquest 22.00.42g]=====]
local scriptVersion = '1.0.0'
local scriptAuthor = 'Fuat'
local startToast = ''
-- 0 - no check; 1 - check package only, 2 - check package and build
local checkTarget = 0

local targetName = [=====[TowerConquest]=====]
local targetPkg = 'com.sgiggle.towerconquest'
local targetVersion = [=====[22.00.42g]=====]
local targetBuild = 1500000069

-- functions

-- init
gg.require('8.65.1', 12354)

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.processResume()
val = gg.prompt({v1='İlk Değer',v2='2.Değer'}, {v1='0', v2 ='0'})
if val == nil then goto error end

gg.searchNumber("val.p[1];val.p[2]", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber("val.p[1]", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(100)
gg.editAll("4000", gg.TYPE_DWORD)
gg.processResume()

::error::
print('Hata !')
os.exit()

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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.