Jump to content

Archived

This topic is now archived and is closed to further replies.

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

  • Similar Content

    • By RikiVeron
      gg.setRanges(32)
      gg.searchNumber("256;100F;30F::65", 4, false, 536870912, 0, -1)
      gg.getResults(1)
      gg.searchNumber("256", 4, false, 536870912, 0, -1)
      gg.getResults(1)
      gg.setValues({ -- table(f0daf39)
          [1] = { -- table(34d297e)
              ['address'] = 0xabf68a54,
              ['flags'] = 4, -- gg.TYPE_DWORD
              ['value'] = 1,
          },
      })
      gg.addListItems({ -- table(ff33edf)
          [1] = { -- table(733e72c)
              ['address'] = 0xabf68a54,
              ['flags'] = 4, -- gg.TYPE_DWORD
              ['freeze'] = true,
              ['value'] = 1,
          },
          [2] = { -- table(99105f5)
              ['address'] = 0xabf68a60,
              ['flags'] = 4, -- gg.TYPE_DWORD
              ['freeze'] = true,
              ['value'] = 0,
          },
      })
       
      PM me= rikiveron44@gmail.com
      Because i rarely online in game guardian forum. Thanks
      Please help me...
    • By ThienTeakee
      Hi guys, I'm new at GG
      I have a script like this
      gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber('1.014.350.479;1.012.202.996;1.083.179.008;1.050.253.722;1.031.127.695;1.065.353.216;1.065.353.216;1.067.282.596:61', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(5000) I want to change "1.014.350.479" to "1.011.011.011" and "1.050.253.722;1.031.127.695" to "1". Because I only know how to edit all of them with "editAll()", not know how to group them like this.
      Thanks for your help
    • By nio04
      First, i am very beginning at this lua script hacking. And i am running sooo trouble doing every search (group, basic search, finding stuff)
       
      The reason i knock -- i hope someone here, can help me, how should i run these codes!!! or how to do these stuff (practical). or basic rules, how things should be done
       
      the tuts r here... is direct. impossiblefor me, to understand
       
      if someone r so friendly amd know about how to find stuff and modify them then plz knock here. i will install any other social media to join and have some conversation with you about it. 
       
      plz i do it for my curious. only education purpose. 
       
      And lastly, veryy soory for my bad English.
    • By PremiumAlliance
      View File RR2 (ZuixAlias™)
      THIS SCRIPT IS OUTDATED. TO REQUEST NEW ROYAL REVOLT 2 CHEAT OR ANY OTHER GAME CHEAT MESSAGE ME:
      WhatsApp + Telegram : +91 9560302784
      Discord Server : https://discord.gg/SwQbGgU
      Telegram Channel : https://t.me/ZuixT
      Email :-  ZuixAlias@gmail.com
      SCRIPTS FOR BOTH PC(Cheat Engine) AND PHONE(Game Guardian) FOR THE GAME ROYAL REVOLT 2 AND ANY OTHER GAME.
       
      This is the first ever script developed for Royal Revolt 2 by "ZuixAlias".
      Password : **** (If you wish to use this cheat then get full script for free from me. Contact details are mentioned above.)
      ------------------------------------------------Cheat Demonstration------------------------------------------------
       
      -----------------------------------------------------------------------------------------------------
      Script Features :-
      ####OUTDATED####
      🔸Troops Hack ( Ultimate Speed + Attack Rate + Range )
      🔸 Spells Hack ( Increased Range + Duration + One Hit Destruction)
      About:
      • This is a demo version just for introduction purposes.
      • Full Features Script Requires Payment.
      ##################
      Submitter PremiumAlliance Submitted 03/24/2019 Category LUA scripts  
    • By PremiumAlliance
      THIS SCRIPT IS OUTDATED. TO REQUEST NEW ROYAL REVOLT 2 CHEAT OR ANY OTHER GAME CHEAT MESSAGE ME:
      WhatsApp + Telegram : +91 9560302784
      Discord Server : https://discord.gg/SwQbGgU
      Telegram Channel : https://t.me/ZuixT
      Email :-  ZuixAlias@gmail.com
      SCRIPTS FOR BOTH PC(Cheat Engine) AND PHONE(Game Guardian) FOR THE GAME ROYAL REVOLT 2 AND ANY OTHER GAME.
       
      This is the first ever script developed for Royal Revolt 2 by "ZuixAlias".
      Password : **** (If you wish to use this cheat then get full script for free from me. Contact details are mentioned above.)
      ------------------------------------------------Cheat Demonstration------------------------------------------------
       
      -----------------------------------------------------------------------------------------------------
      Script Features :-
      ####OUTDATED####
      🔸Troops Hack ( Ultimate Speed + Attack Rate + Range )
      🔸 Spells Hack ( Increased Range + Duration + One Hit Destruction)
      About:
      • This is a demo version just for introduction purposes.
      • Full Features Script Requires Payment.
      ##################
×
×
  • Create New...