Jump to content

Question

Posted

I'm new to this area, I'm creating a basic script for the game called "robot colony", I can change the energy values without any problems, but when I change the value of the ore ( minério ), it ends up changing the energy ( energia ) value...

 

code:

function start()

gg.alert(" YOO V1 " )

menu = gg.choice({"ENERGIA", "MINÉRIO", "SAIR"}, nil, "MENU PRINCIPAL")

 

if menu == 1 then

local offsetenerg = "7BDF23F948"

local tipooffset1 = gg.TYPE_DWORD

 

busca1 = gg.searchNumber(offsetenerg, tipooffset)

resultado = gg.getResults(5)

alt = gg.prompt({"ESCOLHA PARA QUANTO DESEJA MUDAR"}, {""}, {"number"})[1]

gg.editAll(alt, tipooffset1)

gg.toast("Energia alterada com sucesso!")

end

 

 

if menu == 2 then

local offsetmin = "7BDF23F94C"

local tipooffset2 = gg.TYPE_DWORD

 

busca2 = gg.searchNumber(offsetmin, tipooffset2)

resultado2 = gg.getResults(5)

alt2 = gg.prompt({"ESCOLHA PARA QUANTO DESEJA MUDAR"}, {""}, {"number"})[1]

gg.editAll(alt2, tipooffset2)

gg.toast("Minério alterado com sucesso")

end

end

while true do

if gg.isVisible(true) then

gg.setVisible(false)

start()

end

end

 

 

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.