Jump to content
  • 0

script| 2 different types of script but in one function


nio04
 Share

Question

the main code is 

function kk()
gg.toast('BR WEPON ENHANCE STARTING SOOn')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1000.0F;1.4012985e-45F;-1.0F;0.10000000149F;1000.0F;10.0F;1.2~3F;", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()
gg.refineNumber("1.2~3", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(5000, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0.3", gg.TYPE_FLOAT)
---this is not written in main script, but here... the above code maintain fast reload. the below code maintain RECOIL
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1,000.0F;10.0F;1.4012985e-45F::9" , gg.TYPE_FLOAT) ---your group search value / or your search number
gg.refineNumber("1000.0", gg.TYPE_FLOAT) ---saving the results count
p = gg.getResultCount()                -- saving the results count
q = gg.getResults(p)                 -- saving the results
for i = 1,p do
          local  r = {}
			r[i] = {}
			        r[i].address = q[i].address + 452   -- address the offset(ex :- 4) to the refined result
				    r[i].flags = 16               -- data type in which you want to edit the value at offset (4 = DWORD)
					r[i].value = 0              -- enter the edit value to make the hack
gg.setValues(r)
gg.toast('BR WEPON enhance applied')
end
end

 

i just want this both code in same function. the first one - 'fast reload' works but the second one 'recoil' doesnt works.

 

i mean - the recoil code searching.. but it doeant edit value to 0 for recoil. if i put the recoil code in different function, then, 'no recoil' works....

 

why is this happening? how to solve?

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0
59 minutes ago, MonkeySAN said:

did you clearResults after the first one...i dont see any.

or

the second one actually search from results you got from the first one?

no.. they r ofcourse different. 

 

i thought - clearResualts wasnot very important.

 

ok, i m trying again

Link to comment
Share on other sites

  • 0
On 12/16/2020 at 12:18 AM, MonkeySAN said:

👍👍👍👍👍

troubled again... u can see the last toast message...? its not showing...

 

this mean - the last offset code, somethings wrong here... (no recoil, isnot working)

 

function u()
gg.toast('MP wepon enhance starting soon')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("0.10000000149F;1.4012985e-45F;-1.0F;350.0F;10.0F;1.0F;1.5~3", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()
gg.processResume()
gg.refineNumber("1.5~3", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(5000, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll(".1", gg.TYPE_FLOAT)



gg.setRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber("1133903872D;1D;-1082130432D;1135542272D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()
gg.refineNumber("1", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(10000, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("-1", gg.TYPE_DWORD)



gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber("0.10000000149F;350.0F;1.4012985e-45F;1.0F;10.0F::85" , gg.TYPE_FLOAT)
gg.refineNumber("10", gg.TYPE_FLOAT) 
p = gg.getResultCount()                
q = gg.getResults(p)               


for i = 1,p do
          local  r = {}
			r[i] = {}
			        r[i].address = q[i].address + 392  
				    r[i].flags = 16              
					r[i].value = 0            
gg.setValues(r)
gg.toast('MP wepon enhance stopped, go HAVE fun')
end
end

 

Link to comment
Share on other sites

  • 0

hmm..seem legit to me like how you write it before in the first post..maybe the codes are wrong somehow..

had you double or triple check it..or

its just the toast message didnt appear but everything else work just fine..

i dont know man...its yours.

Edited by MonkeySAN
Link to comment
Share on other sites

  • 0
17 minutes ago, MonkeySAN said:

hmm..seem legit to me like how you write it before in the first post..maybe the codes are wrong somehow..

had you double or triple check it..or

its just the toast message didnt appear but everything else work just fine..

i dont know man...its yours.

ahh... i re-check the offset...

 

after executed, checked recoil, its still 1.0😑

 

so, u mean, the structureis okay, huh?

Link to comment
Share on other sites

  • 0

present your work here in this forum..

only then you will get many help from others too...not just me.

receiving inputs from alot of other people will widen and improve your knowledges more than a single input from one person.

you will get many ideas or ways to approach just about anything.

Edited by MonkeySAN
Link to comment
Share on other sites

  • 0
4 minutes ago, MonkeySAN said:

present your work here in this forum..

only then you will get many help from others too...not just me.

receiving inputs from alot of other people will widen your knowledges more than a single person.

you will get many ideas or ways to approach just about anything.

u are right. 

 

well, the tool, i wanna mess with belongs to akram raja (previously active person in this forum)

 

will it occurs any problem?

Edited by nio04
Link to comment
Share on other sites

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
 Share

×
×
  • 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.