Jump to content
  • 0

help health


blocx

Question

Posted

hi all i want to know how work an script for make search each time i change a level ? ( good exemple is with real racing 3 with autowin script the script not close and each time you enter in race gg execute the search ) i know my health value but each level need to make search again thanks

7 answers to this question

Recommended Posts

Posted

Does the old value of the health turn into 0 after every level?

*search and save results as a table*
local function waiter()
for i, v in pairs(*results table*)
local oldaddress = v.address
local endaddress = v.address + 0x19 -- going to need an end address for the search nearby so I used a hex to decimal converter so we can go 25 bytes from this address
if v.value == 0 then do searcher()
end
end
local function searcher()
gg.searchNumber(gg.searchNumber("Your Health Search", gg.TYPE_WHATEVER, false, gg.SIGN_EQUAL, oldaddress, endaddress, 0)
*your edit*
      return waiter()
end

or if you could find the value you for the lever you could have a function wait for a change in the level value to do the search and edit for health 

 

My Lua is still a little spotty please be weary of errors

Posted

i have 2 float values for each level need to freeze at the one become 0,485

and the other turn into negative and when i restart a game those 2 value cant still be used need again search

Posted
7 minutes ago, blocx said:

i have 2 float values for each level need to freeze at the one become 0,485

and the other turn into negative and when i restart a game those 2 value cant still be used need again search

So they don't still equal the same amount when they change addresses? Search nearby won't work?

Posted

sorry just need one and no freeze if i make search in stage screen

i dont understand nearby ?

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.