Jump to content
  • 0

Super Tank Rumble - help script


StepanK

Question

Posted

I have a problem, the thing is that the script should take values and write them to input[1] ( or 2 or 3), but it only looks for values 2 1 3 although it should take them and insert them instead of input[*]

Spoiler

У меня проблема , дело в том , что скрипт должен принимать значения и писать их в input[1] ( или 2 или 3) , но он ищет значения только 2 1 3 хотя должен принять их и вставить вместо input[*] === для русскоязычной аудитории

here is the code

-- Script generated by GameGuardian 101.1 (16142) at 2021-05-31 23:03:20 for SuperTank [com.stove.supertank.google 4.6.8 (236)]
-- Lua help: http://gameguardian.net/help/

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

local targetName = [=====[SuperTank]=====]
local targetPkg = 'com.stove.supertank.google'
local targetVersion = [=====[4.6.8]=====]
local targetBuild = 236

-- functions

-- init
gg.require('101.1', 16142)

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
function performance()
gg.sleep(2000)
input=gg.prompt({'Колличество-хп'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('Ты-')
	os.exit()
	end
	gg.sleep(2000)
	input=gg.prompt({'Колличество-патрон'},
	{[2]='0'},
	{[2]='number'})
	if input==nil then
	gg.alert('Ты-')
	os.exit()
	end
	gg.sleep(2000)
	input=gg.prompt({'ЛВЛ-оружия'},
	{[3]='0'},
	{[3]='number'})
	if input==nil then
	gg.alert('Ты-')
	os.exit()
	end 
	end


gg.searchNumber("40A00000h;40000000h;input[2];input[1];input[3]",gg.TYPE_DWORD) -- Here, instead of the values input[1], there should be a value entered by the user
gg.refineNumber("1", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
revert = gg.getResults(5000, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("35", gg.TYPE_DWORD)

local t = gg.getResults(5000, nil, nil, nil, nil, nil, nil, nil, nil)
gg.addListItems(t)
t = nil

Somebody help please!

com.stove.supertank.google3.lua

6 answers to this question

Recommended Posts

Posted
7 hours ago, MonkeySAN said:

try this..


gg.searchNumber("40A00000h;40000000h;"..input[2]..";"..input[1]..";"..input[3],gg.TYPE_DWORD)

 

I would like it to work , but as I didn't rewrite the code, it doesn't work ( P. S-I'm a PyKoJILon )

Posted
20 hours ago, MonkeySAN said:

тогда почему бы не спросить человека, написавшего коды?

если вы не имеете в виду что-то еще.

I would ask, but I recently registered and do not know people who write any codes, scripts.But if you know - please tell me their nicknames.

 

Posted

Thank you for your help , but everything was solved a little easier than I wanted ... So the solution to the problem is found

Posted

sorry , but the problem, as mentioned earlier, I have already solved , but a new one has arisen, the fact is that I need the values that I saved to be rolled back when calling this function (rolled back - it's like going back to the values before they were changed )(but I translate by translator, so sorry ) 

 

	function func5()
	


	end

 

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.