Jump to content
Sign in to follow this  
Krojzanovic

How to add function doaction() ?

Recommended Posts

3 hours ago, bukandewa said:

I am recommend to use function(). In any case, ::label:: have a limitation. Especially if you want to create more complex scripts.

but I don't understand all the code ? I can't write lua code from code 0. above I use someone else's code to create the script

Share this post


Link to post
Share on other sites

1 hour ago, Krojzanovic said:

but I don't understand all the code ? I can't write lua code from code 0. above I use someone else's code to create the script

CmP explained y9u can not do anything about that. So now just focus on the scripting.

5 hours ago, Krojzanovic said:

when I run the script, when I click on the gg icon it looks like this, how do I protect it? is there any other way?

Screenshot_2018-11-14-07-23-20-412_com.rhmsoft.edit.pro.png

 

_______________________________________________
added 2 minutes later
1 minute ago, XxhentaixX said:

CmP explained y9u can not do anything about that. So now just focus on the scripting.

 

CmP explained y9u can not do anything about that. So now just focus on the scripting.

Share this post


Link to post
Share on other sites
5 hours ago, Krojzanovic said:

when I run the script, when I click on the gg icon it looks like this, how do I protect it? is there any other way?

Screenshot_2018-11-14-07-23-20-412_com.rhmsoft.edit.pro.png

You can't protect this bcz gg api not have hide searching process function and lua run in line by line not have multithread

Share this post


Link to post
Share on other sites
20 minutes ago, XxhentaixX said:

CmP explained y9u can not do anything about that. So now just focus on the scripting.

 

_______________________________________________
added 2 minutes later

CmP explained y9u can not do anything about that. So now just focus on the scripting.

Ok sir , Thanks for reply ?

 

8 minutes ago, Revoxtical said:

You can't protect this bcz gg api not have hide searching process function and lua run in line by line not have multithread

Ok sir , thanks for reply?

Share this post


Link to post
Share on other sites

(Somthing was bugging)

 

Btw just saying its better that you inmput the region that your searching in so that the script is faster finished. Your GG is set Ca, A and Xa but im kind of sure that that this recoil of yours is region A: Anonymous. So it has to search only in the region anyonymous so you have to type it like this:

local old = gg.getRanges();
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('1.29999995232F;0.60000002384F;1.5F;1.29999995232F;1.0F;1.29999995232F;1.0F:53', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(15)
gg.editAll('0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.setRanges(old) 
--[the rest of that block]

 

Now what it says in short is that gameguardian will search in the region anonymous only, and afther its done editing (at the end of your function it will set the ranges back to the previous way they were. So in your case your ranges are now Ca, A and Xa

Gameguardian will only search in A: anonymous, then when it is done editing it will return back to your original range = gg.setRanges(old)

 

As for function() you just have to adjust your menu a lil bit.

Everywere were you putted for examble:

 

::norecoil::

 

you change it to:

 

function norecoil()

 

so you understand?(i can not explain very detailed)

You remove every "goto sdone"

And you replace it with "end"

Examble: 

 

FAULT!!

::jumphack::

gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(100)
gg.editAll('25', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
goto START

 

CORRECT!!

function jumphack()

gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT)
gg.getResults(100)
gg.editAll(25, gg.TYPE_FLOAT)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
end

But this only works when your menu js done good to. Every goto has to be removed

Your menu has to be done like this:

 

FAULT!!

if menu == 1 then goto norecoil end
if menu == 2 then goto jumphack end
if menu == 3 then goto ammo end
if menu == 4 then goto sdone end
if menu == nil then goto sdone end

 

CORRECT!!

if menu == 1 then norecoil() end
if menu == 2 then jumphack() end
if menu == 3 then ammo() end
if menu == 4 then os.exit() end
if menu == nil then os.exit() end

 

know what i mean?

you script needs a full change but with

notepad ++ this is quicky done..

 

i think this is the correct way...i still dont get why you would want to exit the script when they are on nil to. 

 

Edited by XxhentaixX

Share this post


Link to post
Share on other sites
11 minutes ago, XxhentaixX said:

(Somthing was bugging)

 

Btw just saying its better that you inmput the region that your searching in so that the script is faster finished. Your GG is set Ca, A and Xa but im kind of sure that that this recoil of yours is region A: Anonymous. So it has to search only in the region anyonymous so you have to type it like this:


local old = gg.getRanges();
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('1.29999995232F;0.60000002384F;1.5F;1.29999995232F;1.0F;1.29999995232F;1.0F:53', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(15)
gg.editAll('0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.setRanges(old) 
--[the rest of that block]

 

Now what it says in short is that gameguardian will search in the region anonymous only, and afther its done editing (at the end of your function it will set the ranges back to the previous way they were. So in your case your ranges are now Ca, A and Xa

Gameguardian will only search in A: anonymous, then when it is done editing it will return back to your original range = gg.setRanges(old)

 

As for function() you just have to adjust your menu a lil bit.

Everywere were you putted for examble:

 

::norecoil::

 

you change it to:

 

function norecoil()

 

so you understand?(i can not explain very detailed)

You remove every "goto sdone"

And you replace it with "end"

Examble: 

 

FAULT!!


::jumphack::

gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(100)
gg.editAll('25', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
goto START

 

CORRECT!!


function jumphack()

gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT)
gg.getResults(100)
gg.editAll(25, gg.TYPE_FLOAT)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
end

But this only works when your menu js done good to. Every goto has to be removed

Your menu has to be done like this:

 

FAULT!!


if menu == 1 then goto norecoil end
if menu == 2 then goto jumphack end
if menu == 3 then goto ammo end
if menu == 4 then goto sdone end
if menu == nil then goto sdone end

 

CORRECT!!


if menu == 1 then norecoil() end
if menu == 2 then jumphack() end
if menu == 3 then ammo() end
if menu == 4 then os.exit() end
if menu == nil then os.exit() end

 

know what i mean?

you script needs a full change but with

notepad ++ this is quicky done..

 

i think this is the correct way...i still dont get why you would want to exit the script when they are on nil to. 

 

ok i understand, i will try this !. thank you for helping me

Share this post


Link to post
Share on other sites
18 minutes ago, XxhentaixX said:

(Somthing was bugging)

 

Btw just saying its better that you inmput the region that your searching in so that the script is faster finished. Your GG is set Ca, A and Xa but im kind of sure that that this recoil of yours is region A: Anonymous. So it has to search only in the region anyonymous so you have to type it like this:


local old = gg.getRanges();
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('1.29999995232F;0.60000002384F;1.5F;1.29999995232F;1.0F;1.29999995232F;1.0F:53', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(15)
gg.editAll('0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.setRanges(old) 
--[the rest of that block]

 

Now what it says in short is that gameguardian will search in the region anonymous only, and afther its done editing (at the end of your function it will set the ranges back to the previous way they were. So in your case your ranges are now Ca, A and Xa

Gameguardian will only search in A: anonymous, then when it is done editing it will return back to your original range = gg.setRanges(old)

 

As for function() you just have to adjust your menu a lil bit.

Everywere were you putted for examble:

 

::norecoil::

 

you change it to:

 

function norecoil()

 

so you understand?(i can not explain very detailed)

You remove every "goto sdone"

And you replace it with "end"

Examble: 

 

FAULT!!


::jumphack::

gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(100)
gg.editAll('25', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
goto START

 

CORRECT!!


function jumphack()

gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT)
gg.getResults(100)
gg.editAll(25, gg.TYPE_FLOAT)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
end

But this only works when your menu js done good to. Every goto has to be removed

Your menu has to be done like this:

 

FAULT!!


if menu == 1 then goto norecoil end
if menu == 2 then goto jumphack end
if menu == 3 then goto ammo end
if menu == 4 then goto sdone end
if menu == nil then goto sdone end

 

CORRECT!!


if menu == 1 then norecoil() end
if menu == 2 then jumphack() end
if menu == 3 then ammo() end
if menu == 4 then os.exit() end
if menu == nil then os.exit() end

 

know what i mean?

you script needs a full change but with

notepad ++ this is quicky done..

 

i think this is the correct way...i still dont get why you would want to exit the script when they are on nil to. 

 

Whats wrong ? :3 

 

gg.toast('☆Call Of Heroes Hacks v.1☆ By Krojzanovic')
print(' ☆Call Of Heroes Hacks v.1 Made By Krojzanovic☆') 
gg.alert('New Hacks')
gg.alert('Call Of Heroes Hacks v.1 ')



if gg.isVisible(true) then

gg.setVisible(false) 
end 
gg.clearResults()
goto START
::START::


menu = gg.choice({'♥️No Recoil [ New ] ALLEN ONLY♥️','♥️Jump Hack [ New ] FOR ALL♥️','♥️Ammo++ Up [ NEW ] ALLEN ONLY♥️ ( Activate on europe map, 50% Work)','EXIT'},nil,'☆CALL OF HEROES HACKS☆                        ☆Credit By Krojzanovic☆ ')

if menu == 1 then norecoil() end
if menu == 2 then jumphack() end
if menu == 3 then ammo() end
if menu == 4 then os.exit() end
if menu == nil then os.exit() end


function norecoil()
gg.searchNumber('1.29999995232F;0.60000002384F;1.5F;1.29999995232F;1.0F;1.29999995232F;1.0F:53', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(15)
gg.editAll('0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.alert('No Recoil Active')
gg.toast('Credit By Krojzanovic☆')
end

function jumphack()
gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT)
gg.getResults(100)
gg.editAll(25, gg.TYPE_FLOAT)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
end


function ammo()
gg.searchNumber('107.374.182.425Q;25Q;-3.589.115.740.461.989.888Q:9', gg.TYPE_QWORD)
gg.getResults(100)
gg.editAll('2000', gg.TYPE_QWORD)
gg.clearResults()
gg.alert('look at the ammunition below')
gg.alert('if it works then this will work for all maps')
gg.alert('Ammo++ Active')
gg.toast('Credit By Krojzanovic☆')
end


::sdone::
print('>>Krojzanovic')
print('>Subscribe and share for more')
print('>Youtube.com/krojzanovic')
print('>When you broke my heart')
print('>We will broke ur security ')
gg.toast('Credit By Krojzanovic')
os.exit()

::noselect::
print('')

::update::
print('Follow me on instagram @krojzanovic')
gg.toast('U not Sellect')

Look this , whats wrong bro :3 

Screenshot_2018-11-14-13-50-00-596_com.rhmsoft.edit.pro.png

Share this post


Link to post
Share on other sites
21 minutes ago, Krojzanovic said:

Whats wrong ? :3 

 


gg.toast('☆Call Of Heroes Hacks v.1☆ By Krojzanovic')
print(' ☆Call Of Heroes Hacks v.1 Made By Krojzanovic☆') 
gg.alert('New Hacks')
gg.alert('Call Of Heroes Hacks v.1 ')



if gg.isVisible(true) then

gg.setVisible(false) 
end 
gg.clearResults()
goto START
::START::


menu = gg.choice({'No Recoil [ New ] ALLEN ONLY','Jump Hack [ New ] FOR ALL','Ammo++ Up [ NEW ] ALLEN ONLY ( Activate on europe map, 50% Work)','EXIT'},nil,'☆CALL OF HEROES HACKS☆                        ☆Credit By Krojzanovic☆ ')

if menu == 1 then norecoil() end
if menu == 2 then jumphack() end
if menu == 3 then ammo() end
if menu == 4 then os.exit() end
if menu == nil then os.exit() end


function norecoil()
gg.searchNumber('1.29999995232F;0.60000002384F;1.5F;1.29999995232F;1.0F;1.29999995232F;1.0F:53', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(15)
gg.editAll('0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.alert('No Recoil Active')
gg.toast('Credit By Krojzanovic☆')
end

function jumphack()
gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT)
gg.getResults(100)
gg.editAll(25, gg.TYPE_FLOAT)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
end


function ammo()
gg.searchNumber('107.374.182.425Q;25Q;-3.589.115.740.461.989.888Q:9', gg.TYPE_QWORD)
gg.getResults(100)
gg.editAll('2000', gg.TYPE_QWORD)
gg.clearResults()
gg.alert('look at the ammunition below')
gg.alert('if it works then this will work for all maps')
gg.alert('Ammo++ Active')
gg.toast('Credit By Krojzanovic☆')
end


::sdone::
print('>>Krojzanovic')
print('>Subscribe and share for more')
print('>Youtube.com/krojzanovic')
print('>When you broke my heart')
print('>We will broke ur security ')
gg.toast('Credit By Krojzanovic')
os.exit()

::noselect::
print('')

::update::
print('Follow me on instagram @krojzanovic')
gg.toast('U not Sellect')

Look this , whats wrong bro :3 

Screenshot_2018-11-14-13-50-00-596_com.rhmsoft.edit.pro.png

if you use a function you have to put the script that runs first at the end of the script

Example :

With dot :

::home:: -- Always first run
	-- Your code
	goto exit -- Call function
	
::exit:: -- function
	os.exit()

With function :

function home() -- This is not run before you call this
	-- Your code
	exit() -- Call function
end -- Add 'end' for finish function

function exit() -- function
	os.exit()
end 

home() -- Call function in the end of the script for first run

 

Share this post


Link to post
Share on other sites
1 hour ago, Krojzanovic said:

Whats wrong ? :3 

 


gg.toast('☆Call Of Heroes Hacks v.1☆ By Krojzanovic')
print(' ☆Call Of Heroes Hacks v.1 Made By Krojzanovic☆') 
gg.alert('New Hacks')
gg.alert('Call Of Heroes Hacks v.1 ')



if gg.isVisible(true) then

gg.setVisible(false) 
end 
gg.clearResults()
goto START
::START::


menu = gg.choice({'No Recoil [ New ] ALLEN ONLY','Jump Hack [ New ] FOR ALL','Ammo++ Up [ NEW ] ALLEN ONLY ( Activate on europe map, 50% Work)','EXIT'},nil,'☆CALL OF HEROES HACKS☆                        ☆Credit By Krojzanovic☆ ')

if menu == 1 then norecoil() end
if menu == 2 then jumphack() end
if menu == 3 then ammo() end
if menu == 4 then os.exit() end
if menu == nil then os.exit() end


function norecoil()
gg.searchNumber('1.29999995232F;0.60000002384F;1.5F;1.29999995232F;1.0F;1.29999995232F;1.0F:53', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(15)
gg.editAll('0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.alert('No Recoil Active')
gg.toast('Credit By Krojzanovic☆')
end

function jumphack()
gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT)
gg.getResults(100)
gg.editAll(25, gg.TYPE_FLOAT)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
end


function ammo()
gg.searchNumber('107.374.182.425Q;25Q;-3.589.115.740.461.989.888Q:9', gg.TYPE_QWORD)
gg.getResults(100)
gg.editAll('2000', gg.TYPE_QWORD)
gg.clearResults()
gg.alert('look at the ammunition below')
gg.alert('if it works then this will work for all maps')
gg.alert('Ammo++ Active')
gg.toast('Credit By Krojzanovic☆')
end


::sdone::
print('>>Krojzanovic')
print('>Subscribe and share for more')
print('>Youtube.com/krojzanovic')
print('>When you broke my heart')
print('>We will broke ur security ')
gg.toast('Credit By Krojzanovic')
os.exit()

::noselect::
print('')

::update::
print('Follow me on instagram @krojzanovic')
gg.toast('U not Sellect')

Look this , whats wrong bro :3 

Screenshot_2018-11-14-13-50-00-596_com.rhmsoft.edit.pro.png

This is can fix your script :

  1. You use not standart character. check your script if you copy paste from other script
  2. Remove 'goto START' then put the function ::START:: above ::sdone::

 

aa.jpg

Edited by Revoxtical

Share this post


Link to post
Share on other sites

Wont deny there are alot of errors my friend

 

Happend afther i outted eveything in function

Screenshot_20181114-094452.png

Share this post


Link to post
Share on other sites
5 minutes ago, XxhentaixX said:

Wont deny there are alot of errors my friend

 

Happend afther i outted eveything in function

Screenshot_20181114-094452.png

check my picture

 

36 minutes ago, Revoxtical said:

This is can fix your script :

  1. You use not standart character. check your script if you copy paste from other script
  2. Remove 'goto START' then put the function ::START:: above ::sdone::

 

aa.jpg

gg in your script is not use standart character

Share this post


Link to post
Share on other sites

 

38 minutes ago, Revoxtical said:

check my picture

 

gg in your script is not use standart character

yes, welli just modificated his script, take a look. I rewrided the letters to its standard and also the gg.searchNumber that was copied and everything is in function now and its modificated so that when hack is finished the script wont close

testing.lua

Share this post


Link to post
Share on other sites
3 hours ago, Krojzanovic said:

Whats wrong ? :3 

 


gg.toast('☆Call Of Heroes Hacks v.1☆ By Krojzanovic')
print(' ☆Call Of Heroes Hacks v.1 Made By Krojzanovic☆') 
gg.alert('New Hacks')
gg.alert('Call Of Heroes Hacks v.1 ')



if gg.isVisible(true) then

gg.setVisible(false) 
end 
gg.clearResults()
goto START
::START::


menu = gg.choice({'No Recoil [ New ] ALLEN ONLY','Jump Hack [ New ] FOR ALL','Ammo++ Up [ NEW ] ALLEN ONLY ( Activate on europe map, 50% Work)','EXIT'},nil,'☆CALL OF HEROES HACKS☆                        ☆Credit By Krojzanovic☆ ')

if menu == 1 then norecoil() end
if menu == 2 then jumphack() end
if menu == 3 then ammo() end
if menu == 4 then os.exit() end
if menu == nil then os.exit() end


function norecoil()
gg.searchNumber('1.29999995232F;0.60000002384F;1.5F;1.29999995232F;1.0F;1.29999995232F;1.0F:53', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(15)
gg.editAll('0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.alert('No Recoil Active')
gg.toast('Credit By Krojzanovic☆')
end

function jumphack()
gg.searchNumber('10.0F;0.03999999911F:21', gg.TYPE_FLOAT)
gg.getResults(100)
gg.editAll(25, gg.TYPE_FLOAT)
gg.clearResults()
gg.alert('Jump Hack Active')
gg.toast('Credit By Krojzanovic☆')
end


function ammo()
gg.searchNumber('107.374.182.425Q;25Q;-3.589.115.740.461.989.888Q:9', gg.TYPE_QWORD)
gg.getResults(100)
gg.editAll('2000', gg.TYPE_QWORD)
gg.clearResults()
gg.alert('look at the ammunition below')
gg.alert('if it works then this will work for all maps')
gg.alert('Ammo++ Active')
gg.toast('Credit By Krojzanovic☆')
end


::sdone::
print('>>Krojzanovic')
print('>Subscribe and share for more')
print('>Youtube.com/krojzanovic')
print('>When you broke my heart')
print('>We will broke ur security ')
gg.toast('Credit By Krojzanovic')
os.exit()

::noselect::
print('')

::update::
print('Follow me on instagram @krojzanovic')
gg.toast('U not Sellect')

Look this , whats wrong bro :3 

Screenshot_2018-11-14-13-50-00-596_com.rhmsoft.edit.pro.png

Dont copy paste text from forum. It will copy 'invisible char' in your text editor.

About way to 'hide' value, you can try a simple trick in your code use gg.getResultCount API. Below is just for example

function A()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber('1;2;3', gg.TYPE_FLOAT)
local count = gg.getResultCount()
if count == 0 then
  gg.toast(count..' Result found')
  else
  gg.toast(count..' Result found')
  gg.searchNumber('2', gg.TYPE_FLOAT)
  gg.getResults(100)
  gg.editAll('0', gg.TYPE_FLOAT)
  gg.toast('success')
  gg.clearResults()
  end
end
end

If you try to call the function not in game, the process will discontinue, because searchNumber is 0 result, so you only can see half of code in the call log. 

But, it is just a simple trick, if you wont let your code copy by others, the best way is use by yourself and dont share.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...