- 0
Robot Colony
-
Similar Content
-
War robots
By Ghgegah,
- 0 replies
- 1,233 views
-
- 5 comments
- 93,152 views
-
- 0 comments
- 5,798 views
-
- 1 reply
- 3,101 views
-
- 0 replies
- 3,148 views
-
By Ghgegah,
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
Wit4
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
Link to comment
Share on other sites
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 accountSign in
Already have an account? Sign in here.
Sign In Now