Jump to content
laolw

Need help to make a script.

Recommended Posts

Hi, I need help for a script, I wanna create a script and in this script I wanna that the user write something, and the thing that he writes is used somewhere at the end of the script, I mean, example, I start the script, text box appears, I write 'nano' and at the end of the script its 'set nickname "text user" (<- nano)'

Sorry if I am incomprehensible, I don t speak well English.

Share this post


Link to post
Share on other sites

On 10/23/2018 at 7:00 AM, goldenkaramel said:

U Need first write ur lua script then can Help u 

--Function
function searchText(text)
    local bytes = gg.bytes(text, 'UTF-8')
    local ret = ''
    for i, b in ipairs(bytes) do
        ret = ret .. ';' .. b
    end
    ret = ret:sub(2)..'::'..#bytes
    return gg.searchNumber(ret, gg.TYPE_BYTE)
end

function replaceText(text)
    local bytes = gg.bytes(text, 'UTF-8')
    local all = gg.getResults(100000)
    local len = #bytes
    for i, t in ipairs(all) do
        t.value = bytes[((i - 1) % len) + 1]
    end
    return gg.setValues(all)
end

--command
gg.clearResults()
Command user type text ( <- what I search)
gg.searchText('example')
gg.replaceText('UserTypedText')

Share this post


Link to post
Share on other sites

Use prompt

Share this post


Link to post
Share on other sites
On 10/23/2018 at 10:00 AM, goldenkaramel said:

U Need first write ur lua script then can Help u 

Bro create script bia3

Share this post


Link to post
Share on other sites
val = gg.prompt({'Value1','Value2','Exp Point'},{[1] = 0,[2] = 0,[3] = 100},{"0","0","100"})
if val == nil then os.exit()
elseif val then 
gsearch = val[1]..';'..val[2]
gg.searchNumber(gsearch, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber(val[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(100)
gg.editAll(val[3], gg.TYPE_DWORD)
end
gg.clearResults()
gg.processResume()
gg.toast('Hack Success')

 

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

  • Similar Content

    • By Pro_Cheater
      HELP ME ???? ...
    • By Kriptihaxxx
      Best war mafia hacks by me password is kriptihaxxx    HAVE FUN! MORE MODS COMING SOON!   NEW MODS LATER!! 
      Updates: GOD MODE!
      Join my discord!! https://discord.gg/U4A9TfX
    • By Kriptihaxxx
      View File UPDATE! War mafia kriptihaxxx
      Best war mafia hacks by me password is kriptihaxxx    HAVE FUN! MORE MODS COMING SOON!   NEW MODS LATER!! 
      Updates: GOD MODE!
      Join my discord!! https://discord.gg/U4A9TfX
      Submitter Kriptihaxxx Submitted 01/24/19 Category LUA scripts  
    • By DarkingCheater
      View File File - Encode String
      And there I personally made an encode string where it hides the string of some word you want to hide pass in my video to learn how to use it and that's itHello everyone I made an encode string where it hides the string of some word you want to hide, look at my video to learn how to use it and that's it
       
       
      Submitter DarkingCheater Submitted 01/08/19 Category Tools  
    • By DarkingCheater
      And there I personally made an encode string where it hides the string of some word you want to hide pass in my video to learn how to use it and that's itHello everyone I made an encode string where it hides the string of some word you want to hide, look at my video to learn how to use it and that's it
       
       
×
×
  • Create New...