Jump to content
  • 0

Need help to make a script.


laolw

Question

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.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

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')

Link to comment
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')

 

Link to comment
Share on other sites

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.